コード例 #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;
 }
コード例 #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);
            }
        }
コード例 #3
0
ファイル: Building.cs プロジェクト: Morr0/Project-RTS-Core
 // CONSTRUCTION
 public Building(StructureSize size) : base(ref size)
 {
 }
コード例 #4
0
 // CONSTRUCTION
 public TickProgressableBuilding(StructureSize size) : base(size)
 {
     this.size = size;
 }
コード例 #5
0
ファイル: Structure.cs プロジェクト: Morr0/Project-RTS-Core
 public Structure(ref StructureSize size)
 {
     this.size = size;
 }
コード例 #6
0
 public StorageBuilding(StructureSize size) : base(size)
 {
     MaxCapacity = ((byte)size) * MINIMUM_CAPACITY;
 }