Exemple #1
0
        private Game(Rules rules, GameData gameData, LoadedGameObjects objects, string[] rulesetPaths,
                     IPlayer localPlayer)
            : this(new [] { objects.Map }, rules, objects.Civilizations, new Options(gameData.OptionsArray), rulesetPaths, gameData.DifficultyLevel, localPlayer)
        {
            //_civsInPlay = SAVgameData.CivsInPlay;
            _gameVersion = gameData.GameVersion;

            TurnNumber            = gameData.TurnNumber;
            TurnNumberForGameYear = gameData.TurnNumberForGameYear;
            _barbarianActivity    = gameData.BarbarianActivity;
            PollutionAmount       = gameData.PollutionAmount;

            GlobalTempRiseOccured = gameData.GlobalTempRiseOccured;
            NoOfTurnsOfPeace      = gameData.NoOfTurnsOfPeace;

            if (objects.ActiveUnit is { Dead : false })
Exemple #2
0
 public static void Create(Rules rules, GameData gameData, LoadedGameObjects objects, Ruleset ruleset,
                           IPlayer localPlayer)
 {
     _instance = new Game(rules, gameData, objects, ruleset.Paths, localPlayer);
 }