Inheritance: IMapConverter
Esempio n. 1
0
        public static XDataLayer LoadFromStream(Stream stream)
        {
            BinaryReader br         = new BinaryReader(stream);
            string       layerName  = MapXMap.ReadString(br);
            int          layerSize  = br.ReadInt32();
            int          layerFlags = br.ReadInt32();

            return(new XDataLayer(layerName, layerFlags, layerSize, stream));
        }
Esempio n. 2
0
        public void SaveToStream(Stream stream)
        {
            BinaryWriter writer = new BinaryWriter(stream);

            MapXMap.WriteString(writer, Name);
            if (writeRaw)
            {
            }
            else
            {
            }
        }