示例#1
0
 public GameMaster(World world)
 {
     this.World       = world;
     pendingResources = new Dictionary <string, float>();
     GlobalInventory  = new Inventory(-1);
     pendingResources = new Dictionary <string, float>();
     cities           = new List <City>();
     globalModifiers  = new ResourceModifiers();
 }
示例#2
0
        public District(string tier, int buildingSlots, Dictionary <string, int> baseCost, string[] InvalidTiles, string name = null) : base(tier, baseCost)
        {
            ResourceMods = new ResourceModifiers();
            Buildings    = new List <Building>();
            invalidTiles = new HashSet <string>();
            foreach (string s in InvalidTiles)
            {
                invalidTiles.Add(s);
            }

            Name          = name;
            BuildingSlots = buildingSlots;
        }
示例#3
0
文件: City.cs 项目: VictorWen/Colonia
        public City(string name, Vector3Int position)
        {
            Name          = name;
            this.Position = position;

            //TODO: TEMPORARY POPULATION IMPLEMENTATION, REMOVE
            population    = 150;
            idlePop       = population;
            workingPop    = 0;
            popGrowthRate = 0.01f;

            ResourceMods    = new ResourceModifiers();
            construction    = new CityConstruction(this);
            nextTurnEffects = new List <CityNextTurnEffect>();
            Districts       = new List <District>()
            {
                new District("city center", 5, new Dictionary <string, int>(), new string[0], "Test City Center")
            };
        }