private PlayerData CreatePlayerData(BuildingCell startingCell) { var playerData = new PlayerData(null); playerData.Init(config); playerData.TurnNumber = 1; playerData.TechnologyData.AddTechnology(startingCell.Technology); var startingCurrency = startingCell.GetCurrencyBonus(); startingCurrency.supplies = config.startingSupply; playerData.CurrencyData.SetCurrency(startingCurrency); return(playerData); }
public override int CalculatePopulation(BuildingCell cell, PlayerData data) { return(cell.GetCurrencyBonus().production); }
public override int CalculateSupplies(BuildingCell cell, PlayerData data) { return(cell.GetCurrencyBonus().supplies); }