Exemple #1
0
        public JsonRoot GetJson()
        {
            JsonRoot root = new JsonRoot();

            root.AddObjects(BaseStructure.GetJson("base"));
            root.AddObjects(PlayfieldStructure.GetJson("playfield"));
            root.AddObjects(LinesStructure.GetJson("lines"));

            return root;
        }
 public JsonRoot Save()
 {
     var elements = _list.Select(et => et.Value.GetJson()).ToList();
     var root = new JsonRoot();
     root.AddObjects(new JsonArray("game_elemets", elements));
     return root;
 }