Ejemplo n.º 1
0
        public static TileGuide Load(BinaryReader reader)
        {
            TileGuide fullGuide = new TileGuide();
            int       count     = reader.ReadInt32();

            for (int ii = 0; ii < count; ii++)
            {
                string        id   = reader.ReadString();
                TileIndexNode node = TileIndexNode.Load(reader);
                fullGuide.Nodes[id] = node;
            }
            return(fullGuide);
        }
Ejemplo n.º 2
0
        public static TileIndexNode Load(BinaryReader reader)
        {
            TileIndexNode node = new TileIndexNode();

            node.TileSize = reader.ReadInt32();
            int count = reader.ReadInt32();

            for (int ii = 0; ii < count; ii++)
            {
                Loc  id       = new Loc(reader.ReadInt32(), reader.ReadInt32());
                long position = reader.ReadInt64();
                node.Positions[id] = position;
            }
            return(node);
        }