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; } }
internal void Remove(SandBoxStats stats) { MaximumPopulation -= stats.MaximumPopulation; StorageSpace -= stats.StorageSpace; Defenses -= stats.Defenses; }
internal void Add(SandBoxStats stats) { MaximumPopulation += stats.MaximumPopulation; StorageSpace += stats.StorageSpace; Defenses += stats.Defenses; }