public BattleSnakeGame(JObject payload) { mGameID = (string)payload["game"]["id"]; mTurn = (int)payload["turn"]; mBoard = new Board(payload); mPlayer = new PlayerSnake(Program.ProtoypeSnake, payload); }
public PlayerSnake(PlayerSnake other, JObject payload) { InitialisePlayerSnake(payload); mPersonalisation = other.GetPersonalisation(); }