| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- using System;
- using System.Collections.Generic;
- using SOTF_Struct.Data;
- namespace SOTF_Struct.Generic {
- public class Structure {
- /// <summary>
- /// The structures ID
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// The structure Position
- /// </summary>
- public Position Pos { get; set; }
- /// <summary>
- /// The structure rotation
- /// </summary>
- public Rotation Rot { get; set; }
- /// <summary>
- /// The structures storage
- /// </summary>
- public List<ItemInstance> Storages { get; set; }
- /// <summary>
- /// How many ressources have been used to build this structure
- /// This is only used during the blue print.
- /// </summary>
- public int? Added { get; set; } = null;
- /// <summary>
- /// Returns the Display Name for this structure
- /// </summary>
- /// <returns>String with the Display Name. If the Structure Type wasn't found, it returns 'STRUCTURE_id'</returns>
- public string GetDisplayName() {
- if (this.Id == 0) return "Bird House";
- if (this.Id == 20) return "Chair";
- if (this.Id == 21) return "Bone maker trap";
- if (this.Id == 22) return "Bed";
- if (this.Id == 22) return "Wall planter";
- //if (this.Id == 23) return "";
- if (this.Id == 24) return "Bone Chandelier";
- if (this.Id == 25) return "Bone Chair";
- if (this.Id == 26) return "Lean to";
- if (this.Id == 27) return "Drying Rack";
- if (this.Id == 28) return "Tree shelter 2";
- if (this.Id == 29) return "Stick Storage";
- //if (this.Id == 30) return "";
- if (this.Id == 31) return "Stone Storage";
- if (this.Id == 32) return "Bone Storage";
- //if (this.Id == 33) return "";
- //if (this.Id == 34) return "Small log cabine"; (disappeard after building complete, from NodeStructure)
- if (this.Id == 35) return "Fish trap";
- if (this.Id == 36) return "Mannequin";
- if (this.Id == 37) return "Log Storage";
- if (this.Id == 38) return "Watch Tower";
- if (this.Id == 39) return "Scarecrow";
- if (this.Id == 40) return "Standing planter";
- if (this.Id == 41) return "Tree platform 2";
- if (this.Id == 42) return "Small animal trap";
- if (this.Id == 43) return "Tree platform 1";
- if (this.Id == 44) return "Tree shelter 1";
- if (this.Id == 45) return "Fly swatter trap";
- //if (this.Id == 46) return "";
- if (this.Id == 47) return "Hunting shelter";
- if (this.Id == 48) return "Table";
- if (this.Id == 49) return "Shelf";
- //if (this.Id == 50) return "";
- if (this.Id == 51) return "Wall Shelf";
- if (this.Id == 52) return "Bench";
- if (this.Id == 53) return "Torch";
- if (this.Id == 54) return "Skull Lamp";
- //if (this.Id == 55) return ""; // Storeage: 0
- if (this.Id == 56) return "Rain catcher"; // Storeage: 0
- return "STRUCTURE_" + Id.ToString();
- }
- }
- }
|