Beispiel #1
0
 public StructureData(StructureSize size, int x1, int y1, StructureType type = StructureType.Other)
 {
     this.Size     = size;
     this.X1       = x1;
     this.Y1       = y1;
     this.Cost     = new Dictionary <Resource.ResourceType, int>();
     this.Type     = type;
     this.Rotation = Rotation.Normal;
     IsRoad        = false;
 }
Beispiel #2
0
        public CraftBuilding(StructureSize size, CraftType craft) : base(size)
        {
            Craft = craft;

            // Hardcoded construction of workable materials
            usableItems = new List <ItemType>();

            if (craft == CraftType.CARPENTERY)
            {
                usableItems.Add(ItemType.WOOD_PINE);
            }
        }
Beispiel #3
0
 // CONSTRUCTION
 public Building(StructureSize size) : base(ref size)
 {
 }
Beispiel #4
0
 // CONSTRUCTION
 public TickProgressableBuilding(StructureSize size) : base(size)
 {
     this.size = size;
 }
Beispiel #5
0
 public Structure(ref StructureSize size)
 {
     this.size = size;
 }
 public StorageBuilding(StructureSize size) : base(size)
 {
     MaxCapacity = ((byte)size) * MINIMUM_CAPACITY;
 }