using System; using System.Collections.Generic; using SOTF_Struct.Data; namespace SOTF_Struct.Generic { public class Structure { /// /// The structures ID /// public int Id { get; set; } /// /// The structure Position /// public Position Pos { get; set; } /// /// The structure rotation /// public Rotation Rot { get; set; } /// /// The structures storage /// public List Storages { get; set; } /// /// How many ressources have been used to build this structure /// This is only used during the blue print. /// public int? Added { get; set; } = null; /// /// Returns the Display Name for this structure /// /// String with the Display Name. If the Structure Type wasn't found, it returns 'STRUCTURE_id' 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(); } } }