Add fourth player, add 4x4 maps

This commit is contained in:
v.holodov
2022-11-19 01:27:55 +03:00
parent 750ea483b6
commit dc228d82be
10 changed files with 83 additions and 7 deletions
+2 -1
View File
@@ -176,7 +176,8 @@ class UserActor(out: ActorRef,
val firstRace = (json \ "raceFirst").as[Int]
val secondRace = (json \ "raceSecond").as[Int]
val thirdRace = (json \ "raceThird").as[Int]
lobbieActor.foreach(lobby => lobby ! SelectedRaces(firstRace, secondRace, thirdRace))
val fourthRace = (json \ "raceFourth").as[Int]
lobbieActor.foreach(lobby => lobby ! SelectedRaces(firstRace, secondRace, thirdRace, fourthRace))
case Some("getLobbies") =>
logger.debug("Get all lobby request")