From 4a8c1e4393ac64c84b03aeb16bacb9ddd0a2fae6 Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Wed, 30 Apr 2008 21:22:29 +0000
Subject: * Commiting a bunch of missed files.
---
.../Environment/Modules/Framework/Commander.cs | 308 ++++++
.../Modules/Framework/CommanderTestModule.cs | 89 ++
.../Environment/Modules/World/Land/LandChannel.cs | 1008 ++++++++++++++++++++
.../Modules/World/Land/LandManagementModule.cs | 86 ++
.../Environment/Modules/World/Land/LandObject.cs | 943 ++++++++++++++++++
.../Modules/World/Serialiser/IFileSerialiser.cs | 36 +
.../Modules/World/Serialiser/IRegionSerialiser.cs | 37 +
.../Modules/World/Serialiser/SerialiseObjects.cs | 123 +++
.../Modules/World/Serialiser/SerialiseTerrain.cs | 53 +
.../Modules/World/Serialiser/SerialiserModule.cs | 169 ++++
.../Modules/World/Terrain/Effects/CookieCutter.cs | 124 +++
.../Terrain/Effects/DefaultTerrainGenerator.cs | 55 ++
.../Modules/World/Terrain/FileLoaders/BMP.cs | 62 ++
.../Modules/World/Terrain/FileLoaders/GIF.cs | 48 +
.../Terrain/FileLoaders/GenericSystemDrawing.cs | 172 ++++
.../Modules/World/Terrain/FileLoaders/JPEG.cs | 94 ++
.../Modules/World/Terrain/FileLoaders/LLRAW.cs | 148 +++
.../Modules/World/Terrain/FileLoaders/PNG.cs | 48 +
.../Modules/World/Terrain/FileLoaders/RAW32.cs | 153 +++
.../Modules/World/Terrain/FileLoaders/TIFF.cs | 48 +
.../Modules/World/Terrain/FileLoaders/Terragen.cs | 127 +++
.../World/Terrain/FloodBrushes/FlattenArea.cs | 71 ++
.../World/Terrain/FloodBrushes/LowerArea.cs | 54 ++
.../World/Terrain/FloodBrushes/NoiseArea.cs | 56 ++
.../World/Terrain/FloodBrushes/RaiseArea.cs | 53 +
.../World/Terrain/FloodBrushes/RevertArea.cs | 60 ++
.../World/Terrain/FloodBrushes/SmoothArea.cs | 114 +++
.../Modules/World/Terrain/ITerrainEffect.cs | 36 +
.../Modules/World/Terrain/ITerrainFloodEffect.cs | 37 +
.../Modules/World/Terrain/ITerrainLoader.cs | 39 +
.../Modules/World/Terrain/ITerrainModule.cs | 8 +
.../World/Terrain/ITerrainPaintableEffect.cs | 36 +
.../Modules/World/Terrain/MapImageModule.cs | 168 ++++
.../World/Terrain/PaintBrushes/ErodeSphere.cs | 312 ++++++
.../World/Terrain/PaintBrushes/FlattenSphere.cs | 127 +++
.../World/Terrain/PaintBrushes/LowerSphere.cs | 67 ++
.../World/Terrain/PaintBrushes/NoiseSphere.cs | 70 ++
.../World/Terrain/PaintBrushes/OlsenSphere.cs | 225 +++++
.../World/Terrain/PaintBrushes/RaiseSphere.cs | 67 ++
.../World/Terrain/PaintBrushes/RevertSphere.cs | 82 ++
.../World/Terrain/PaintBrushes/SmoothSphere.cs | 93 ++
.../World/Terrain/PaintBrushes/WeatherSphere.cs | 207 ++++
.../Modules/World/Terrain/TerrainChannel.cs | 157 +++
.../Modules/World/Terrain/TerrainException.cs | 46 +
.../Modules/World/Terrain/TerrainModule.cs | 737 ++++++++++++++
.../Modules/World/Terrain/TerrainUtil.cs | 133 +++
46 files changed, 6986 insertions(+)
create mode 100644 OpenSim/Region/Environment/Modules/Framework/Commander.cs
create mode 100644 OpenSim/Region/Environment/Modules/Framework/CommanderTestModule.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Serialiser/IFileSerialiser.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Serialiser/SerialiseObjects.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Serialiser/SerialiseTerrain.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/Effects/CookieCutter.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/Effects/DefaultTerrainGenerator.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/BMP.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/GIF.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/GenericSystemDrawing.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/JPEG.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/PNG.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/RAW32.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/TIFF.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/Terragen.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FloodBrushes/FlattenArea.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FloodBrushes/LowerArea.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FloodBrushes/NoiseArea.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FloodBrushes/RaiseArea.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FloodBrushes/RevertArea.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/FloodBrushes/SmoothArea.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/ITerrainEffect.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/ITerrainFloodEffect.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/ITerrainLoader.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/ITerrainModule.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/ITerrainPaintableEffect.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/MapImageModule.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/ErodeSphere.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/FlattenSphere.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/LowerSphere.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/NoiseSphere.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/OlsenSphere.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/RaiseSphere.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/RevertSphere.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/WeatherSphere.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/TerrainChannel.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/TerrainException.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs
create mode 100644 OpenSim/Region/Environment/Modules/World/Terrain/TerrainUtil.cs
(limited to 'OpenSim/Region')
diff --git a/OpenSim/Region/Environment/Modules/Framework/Commander.cs b/OpenSim/Region/Environment/Modules/Framework/Commander.cs
new file mode 100644
index 0000000..6cf8298
--- /dev/null
+++ b/OpenSim/Region/Environment/Modules/Framework/Commander.cs
@@ -0,0 +1,308 @@
+/*
+ * Copyright (c) Contributors, http://opensimulator.org/
+ * See CONTRIBUTORS.TXT for a full list of copyright holders.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of the OpenSim Project nor the
+ * names of its contributors may be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Reflection;
+using System.Text;
+using log4net;
+using OpenSim.Framework;
+using OpenSim.Region.Environment.Interfaces;
+
+namespace OpenSim.Region.Environment.Modules.Framework
+{
+ ///
+ /// A single function call encapsulated in a class which enforces arguments when passing around as Object[]'s.
+ /// Used for console commands and script API generation
+ ///
+ public class Command : ICommand
+ {
+ private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
+ private List m_args = new List();
+
+ private Action