Beispiel #1
0
        internal Building(string name, BuildingType atype, BuildingRole arole)
        {
            Name = name;
            type = atype;
            role = arole;
            switch (arole)
            {
            case BuildingRole.Production:
                availableProducts = new ObjectInventory <string, int>();
                Ready             = DateTime.UtcNow;
                break;

            case BuildingRole.Stats:
                stats = new SandBoxStats();
                break;
            }
        }
Beispiel #2
0
 public BuildingBuilder(Random random, uint id, string symbol, BuildingRole role)
     : base(random, id, symbol)
 {
     Role = role;
     Name = "Unnamed building";
 }