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)); }
public void SaveToStream(Stream stream) { BinaryWriter writer = new BinaryWriter(stream); MapXMap.WriteString(writer, Name); if (writeRaw) { } else { } }