gameServer/HWProtoLobbyState.hs
changeset 4747 095398eba689
parent 4668 9d9523deb5e0
child 4904 0eab727d4717
equal deleted inserted replaced
4654:1cc14ece1486 4747:095398eba689
   100             roomClientsIDs
   100             roomClientsIDs
   101 
   101 
   102         toAnswer (paramName, paramStrs) = AnswerThisClient $ "CFG" : paramName : paramStrs
   102         toAnswer (paramName, paramStrs) = AnswerThisClient $ "CFG" : paramName : paramStrs
   103         
   103         
   104         answerFullConfig = map toAnswer ((Data.List.reverse . Data.List.sort $ leftConfigPart) ++ rightConfigPart)
   104         answerFullConfig = map toAnswer ((Data.List.reverse . Data.List.sort $ leftConfigPart) ++ rightConfigPart)
   105         (leftConfigPart, rightConfigPart) = partition (\(p, _) -> p == "MAP" || p == "MAPGEN") (Map.toList $ params jRoom)
   105         (leftConfigPart, rightConfigPart) = partition (\(p, _) -> p == "MAP" || p == "MAPGEN" || p == "SCHEME") (Map.toList $ params jRoom)
   106 
   106 
   107         watchRound = if not $ gameinprogress jRoom then
   107         watchRound = if not $ gameinprogress jRoom then
   108                     []
   108                     []
   109                 else
   109                 else
   110                     [AnswerThisClient  ["RUN_GAME"],
   110                     [AnswerThisClient  ["RUN_GAME"],