Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public MessageFromUserEventArgs(IUser user, ClientToGameServerMessage type)
 {
     User        = user;
     MessageType = type;
 }
Esempio n. 3
0
 public MessageFromHeadServerEventArgs(ClientToGameServerMessage type)
 {
     MessageType = type;
 }