2016-05-08 15:39:49 +10:00

23 lines
805 B
C#

// ClassicalSharp copyright 2014-2016 UnknownShadow200 | Licensed under MIT
using System;
using System.IO;
namespace ClassicalSharp.Map {
/// <summary> Imports a world and metadata associated
/// with it from a particular file format. </summary>
public interface IMapFormatImporter {
/// <summary> Replaces the current world from a stream that contains a world in this format. </summary>
byte[] Load( Stream stream, Game game, out int width, out int height, out int length );
}
/// <summary> Exports the current world and metadata associated
/// with it to a particular file format. </summary>
public interface IMapFormatExporter {
/// <summary> Exports the current world to a file in this format. </summary>
void Save( Stream stream, Game game );
}
}