private string StringifyType(ClientToGameServerMessage type) { switch (type) { case ClientToGameServerMessage.ReqConnect: return("REQUEST CONNECT"); case ClientToGameServerMessage.ReqConfig: return("REQUEST CONFIG"); case ClientToGameServerMessage.ReqDisconnect: return("REQUEST DISCONNECT"); case ClientToGameServerMessage.SelectDie: return("REQUEST SELECT DIE"); case ClientToGameServerMessage.GetScoreOfSelection: return("CALCULATE SCORE OF SELECTED"); case ClientToGameServerMessage.SubmitDice: return("SUBMIT DICE"); case ClientToGameServerMessage.EndTurn: return("END OF TURN"); case ClientToGameServerMessage.Dummy: return("<DEBUG MSG>"); } return(null); }
public MessageFromUserEventArgs(IUser user, ClientToGameServerMessage type) { User = user; MessageType = type; }
public MessageFromHeadServerEventArgs(ClientToGameServerMessage type) { MessageType = type; }