Exemplo n.º 1
0
            void WriteGridSection()
            {
                var grids = new YamlSequenceNode();

                RootNode.Add("grids", grids);

                foreach (var grid in Grids)
                {
                    var entry = YamlGridSerializer.SerializeGrid(grid);
                    grids.Add(entry);
                }
            }
Exemplo n.º 2
0
        private YamlSequenceNode SaveBpNode(IMapGrid grid)
        {
            var root = new YamlSequenceNode();

            var node = YamlGridSerializer.SerializeGrid(grid);

            root.Add(node);

            var ents = new YamlEntitySerializer();

            _entityMan.SaveGridEntities(ents, grid.Index);
            root.Add(ents.GetRootNode());
            return(root);
        }