From 7d5a21ddbf738c51197a98bef11a52ceb85fe907 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Sun, 29 Jun 2008 19:21:43 +0000
Subject: * Allow terrains to be loaded and saved from streams as well as
directly to and from files * Should be making use of this in the next
revisions
---
.../Modules/World/Terrain/ITerrainModule.cs | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
(limited to 'OpenSim/Region/Environment/Modules/World/Terrain/ITerrainModule.cs')
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/ITerrainModule.cs b/OpenSim/Region/Environment/Modules/World/Terrain/ITerrainModule.cs
index 6ab2372..e255515 100644
--- a/OpenSim/Region/Environment/Modules/World/Terrain/ITerrainModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Terrain/ITerrainModule.cs
@@ -25,12 +25,33 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+using System.IO;
+
namespace OpenSim.Region.Environment.Modules.World.Terrain
{
public interface ITerrainModule
{
void LoadFromFile(string filename);
void SaveToFile(string filename);
+
+ ///
+ /// Load a terrain from a stream.
+ ///
+ ///
+ /// Only required here to identify the image type. Not otherwise used in the loading itself.
+ ///
+ ///
+ void LoadFromStream(string filename, Stream stream);
+
+ ///
+ /// Save a terrain to a stream.
+ ///
+ ///
+ /// Only required here to identify the image type. Not otherwise used in the saving itself.
+ ///
+ ///
+ void SaveToStream(string filename, Stream stream);
+
void InstallPlugin(string name, ITerrainEffect plug);
}
}
--
cgit v1.1