示例#1
0
 public GameManagementState(GameManagementStatus status, long playerKey, ApiShipMatter shipMatter, ApiCreateGameResponse creationResponse, ApiGameResponse gameResponse, ApiInfoResponse infoResponse, V managementMenuPosition, long countdownTicks)
 {
     Status                 = status;
     PlayerKey              = playerKey;
     ShipMatter             = shipMatter;
     CreationResponse       = creationResponse;
     GameResponse           = gameResponse;
     InfoResponse           = infoResponse;
     ManagementMenuPosition = managementMenuPosition;
     CountdownTicks         = countdownTicks;
 }
示例#2
0
 public static PlanetWarsState InitialForContinueGame(long playerKey, ApiGameResponse gameResponse)
 {
     return(new PlanetWarsState(
                level: 0,
                PlanetWarsStatus.InitialForContinueGame,
                playerKey,
                gameResponse.GameInfo.PlayerRole,
                totalScore: 0,
                ApiPlayerStatus.ReadyToGo,
                selectedShip: null,
                commands: null,
                ApiCommandType.None,
                universe: gameResponse.Universe,
                gameJoinInfo: gameResponse.GameInfo,
                gameLog: null,
                shipMatter: null));
 }