feat(ui): Tie selection
Removed almost all printlines
This commit is contained in:
@@ -27,7 +27,6 @@ class UserSession(val user: User, val host: Boolean, val gameLobby: GameLobby) e
|
||||
case _ =>
|
||||
}
|
||||
websocketActor.foreach(_.solveRequests())
|
||||
println("EVENT which will get transmitted to client:" + event.id)
|
||||
websocketActor.foreach(_.transmitEventToClient(event))
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,6 @@ class UserWebsocketActor(
|
||||
}
|
||||
|
||||
def transmitEventToClient(event: SimpleEvent): Unit = {
|
||||
println("This event is getting transmitted to client (INSIDE transmitEventToClient")
|
||||
transmitJsonToClient(WebsocketEventMapper.toJson(event, session))
|
||||
}
|
||||
|
||||
|
||||
@@ -50,13 +50,11 @@ object WebsocketEventMapper {
|
||||
|
||||
def toJson(obj: SimpleEvent, session: UserSession): JsValue = {
|
||||
val data: Option[JsValue] = if (specialMappers.contains(obj.id)) {
|
||||
println("TEST1")
|
||||
Some(specialMappers(obj.id).toJson(obj, session))
|
||||
}else {
|
||||
println("TEST2")
|
||||
None
|
||||
}
|
||||
println(s"This is getting sent to client: EVENT: ${obj.id}, STATE: ${session.gameLobby.getLogic.getCurrentState.toString}, STATEDATA: ${stateToJson(session)}, DATA: ${data}")
|
||||
//println(s"This is getting sent to client: EVENT: ${obj.id}, STATE: ${session.gameLobby.getLogic.getCurrentState.toString}, STATEDATA: ${stateToJson(session)}, DATA: ${data}")
|
||||
Json.obj(
|
||||
"id" -> ("request-" + java.util.UUID.randomUUID().toString),
|
||||
"event" -> obj.id,
|
||||
|
||||
Reference in New Issue
Block a user