gameServer/HandlerUtils.hs
changeset 3501 a3159a410e5c
parent 3500 af8390d807d6
child 3542 f216b24aeb7f
equal deleted inserted replaced
3500:af8390d807d6 3501:a3159a410e5c
    26     (ci, rnc) <- ask
    26     (ci, rnc) <- ask
    27     return $ [sendChan (rnc `client` ci)]
    27     return $ [sendChan (rnc `client` ci)]
    28 
    28 
    29 answerClient :: [B.ByteString] -> Reader (ClientIndex, IRnC) [Action]
    29 answerClient :: [B.ByteString] -> Reader (ClientIndex, IRnC) [Action]
    30 answerClient msg = thisClientChans >>= return . (: []) . flip AnswerClients msg
    30 answerClient msg = thisClientChans >>= return . (: []) . flip AnswerClients msg
       
    31 
       
    32 allRoomInfos :: Reader (a, IRnC) [RoomInfo]
       
    33 allRoomInfos = liftM ((\irnc -> map (room irnc) $ allRooms irnc) . snd) ask