mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-10-06 12:37:28 -04:00
23 lines
805 B
C#
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 );
|
|
}
|
|
}
|