/// <summary> /// Initializes a new instance of the <see cref="Race"/> class. /// </summary> /// <param name="stat">The stat.</param> public Race(RaceStat stat) { Species = stat.Species; LeaderName = stat.LeaderName; ImageFilename = stat.ImageFilename; Description = stat.Description; Color = stat.Color; }
public Race(RaceStat stats) { RaceType = stats.Race; LeaderName = stats.LeaderName; Description = stats.Description; Color = stats.Color; //Traits = stats.Traits; }
private void InitiateNewGame() { int aiPlayerCount = UniverseSize.DefaultPlayerCount(); var aiPlayerRaces = new Race[aiPlayerCount]; for (int i = 0; i < aiPlayerCount; i++) { aiPlayerRaces[i] = new Race(_aiPlayersSpecies[i], _aiPlayerColors[i]); } var userRaceStat = new RaceStat(_userPlayerSpecies, "Maxii", TempGameValues.AnImageFilename, "Maxii description", _userPlayerColor); GameSettings settings = new GameSettings() { UniverseSize = UniverseSize, UserPlayerRace = new Race(userRaceStat), AIPlayerRaces = aiPlayerRaces, }; _gameMgr.InitiateNewGame(settings); }