public override string ToString() { var result = "{\r\n \"Max\": " + (Max == null ? "null" : Max.ToString().ToLower()) + ",\r\n" + "\"Eval\": " + Eval + ",\r\n" + "\"Choix\": \"" + Choix + "\",\r\n" + "\"Profondeur\": " + Profondeur + ",\r\n" + "\"Childrens\" : ["; if (Childrens != null && Childrens.Any()) { result += "\r\n"; foreach (var item in Childrens) { if (item != Childrens.First()) { result += ","; } result += item.ToString(); } } result += "] \r\n}\r\n"; return(result); }
public RoomOffsetTable GetLOFF() { return((RoomOffsetTable)Childrens.First(x => x.GetType() == typeof(RoomOffsetTable))); }
public PaletteOffset GetOFFS() { return((PaletteOffset)Childrens.First(x => x.GetType() == typeof(PaletteOffset))); }