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