netserver/Miscutils.hs
changeset 1383 d20e6e8928e3
parent 1382 b6ab9fea22fe
child 1391 735f6d43780b
equal deleted inserted replaced
1382:b6ab9fea22fe 1383:d20e6e8928e3
    48 		gamemap :: String,
    48 		gamemap :: String,
    49 		gameinprogress :: Bool,
    49 		gameinprogress :: Bool,
    50 		params :: Map.Map String [String]
    50 		params :: Map.Map String [String]
    51 	}
    51 	}
    52 createRoom = (RoomInfo "" "" 0 [] "+rnd+" False Map.empty)
    52 createRoom = (RoomInfo "" "" 0 [] "+rnd+" False Map.empty)
    53 
       
    54 data GlobalInfo =
       
    55 	GlobalInfo
       
    56 	{
       
    57 		isDedicated :: Bool,
       
    58 		serverMessage :: String
       
    59 	}
       
    60 
    53 
    61 type ClientsTransform = [ClientInfo] -> [ClientInfo]
    54 type ClientsTransform = [ClientInfo] -> [ClientInfo]
    62 type RoomsTransform = [RoomInfo] -> [RoomInfo]
    55 type RoomsTransform = [RoomInfo] -> [RoomInfo]
    63 type HandlesSelector = ClientInfo -> [ClientInfo] -> [RoomInfo] -> [Handle]
    56 type HandlesSelector = ClientInfo -> [ClientInfo] -> [RoomInfo] -> [Handle]
    64 type CmdHandler = ClientInfo -> [ClientInfo] -> [RoomInfo] -> [String] -> (ClientsTransform, RoomsTransform, [(HandlesSelector, [String])])
    57 type CmdHandler = ClientInfo -> [ClientInfo] -> [RoomInfo] -> [String] -> (ClientsTransform, RoomsTransform, [(HandlesSelector, [String])])