예제 #1
0
        public BattleSnakeGame(JObject payload)
        {
            mGameID = (string)payload["game"]["id"];
            mTurn   = (int)payload["turn"];

            mBoard = new Board(payload);

            mPlayer = new PlayerSnake(Program.ProtoypeSnake, payload);
        }
예제 #2
0
 public PlayerSnake(PlayerSnake other, JObject payload)
 {
     InitialisePlayerSnake(payload);
     mPersonalisation = other.GetPersonalisation();
 }