aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World/Terrain/ITerrainModule.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-06-29 19:21:43 +0000
committerJustin Clarke Casey2008-06-29 19:21:43 +0000
commit7d5a21ddbf738c51197a98bef11a52ceb85fe907 (patch)
treeb45ce6542acb9b6d17824983fb8d135560e8d3f8 /OpenSim/Region/Environment/Modules/World/Terrain/ITerrainModule.cs
parent* Fix for http://opensimulator.org/mantis/view.php?id=1512 (diff)
downloadopensim-SC_OLD-7d5a21ddbf738c51197a98bef11a52ceb85fe907.zip
opensim-SC_OLD-7d5a21ddbf738c51197a98bef11a52ceb85fe907.tar.gz
opensim-SC_OLD-7d5a21ddbf738c51197a98bef11a52ceb85fe907.tar.bz2
opensim-SC_OLD-7d5a21ddbf738c51197a98bef11a52ceb85fe907.tar.xz
* 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
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Terrain/ITerrainModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Terrain/ITerrainModule.cs21
1 files changed, 21 insertions, 0 deletions
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 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System.IO;
29
28namespace OpenSim.Region.Environment.Modules.World.Terrain 30namespace OpenSim.Region.Environment.Modules.World.Terrain
29{ 31{
30 public interface ITerrainModule 32 public interface ITerrainModule
31 { 33 {
32 void LoadFromFile(string filename); 34 void LoadFromFile(string filename);
33 void SaveToFile(string filename); 35 void SaveToFile(string filename);
36
37 /// <summary>
38 /// Load a terrain from a stream.
39 /// </summary>
40 /// <param name="filename">
41 /// Only required here to identify the image type. Not otherwise used in the loading itself.
42 /// </param>
43 /// <param name="stream"></param>
44 void LoadFromStream(string filename, Stream stream);
45
46 /// <summary>
47 /// Save a terrain to a stream.
48 /// </summary>
49 /// <param name="filename">
50 /// Only required here to identify the image type. Not otherwise used in the saving itself.
51 /// </param>
52 /// <param name="stream"></param>
53 void SaveToStream(string filename, Stream stream);
54
34 void InstallPlugin(string name, ITerrainEffect plug); 55 void InstallPlugin(string name, ITerrainEffect plug);
35 } 56 }
36} 57}