Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 public RoomOffsetTable GetLOFF()
 {
     return((RoomOffsetTable)Childrens.First(x => x.GetType() == typeof(RoomOffsetTable)));
 }
Exemplo n.º 3
0
 public PaletteOffset GetOFFS()
 {
     return((PaletteOffset)Childrens.First(x => x.GetType() == typeof(PaletteOffset)));
 }