Ejemplo n.º 1
0
        public static TileDataWrapper Read(BinaryReader reader)
        {
            uint magicHeader = reader.ReadUInt32();

            if (magicHeader != 0x01)
            {
                throw new Exception("Unexpected tile header!");
            }

            TileDataWrapper wrapper = new TileDataWrapper();

            wrapper.Tile = TileData.Read(reader);

            return(wrapper);
        }
Ejemplo n.º 2
0
        public static void Write(TileDataWrapper data, BinaryWriter writer)
        {
            writer.Write(0x01);

            TileData.Write(data.Tile, writer);
        }