Moved ITerrainModule and ITerainEffect to OpenSim.Region.Framework.Interfaces and added a TaintTerrain method

0.6.5-rc1
Homer Horwitz 2009-04-19 13:33:46 +00:00
parent 716e1fe0e1
commit 9c3ec87b97
3 changed files with 16 additions and 5 deletions

View File

@ -82,7 +82,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
private Dictionary<string, ITerrainEffect> m_plugineffects;
private ITerrainChannel m_revert;
private Scene m_scene;
private bool m_tainted;
private volatile bool m_tainted;
#region ICommandableModule Members
@ -327,6 +327,11 @@ namespace OpenSim.Region.CoreModules.World.Terrain
}
}
public void TaintTerrain ()
{
CheckForTerrainUpdates();
}
#region Plugin Loading Methods
private void LoadPlugins()
@ -1080,6 +1085,8 @@ namespace OpenSim.Region.CoreModules.World.Terrain
m_scene.RegisterModuleCommander(m_commander);
}
#endregion
}
}

View File

@ -25,9 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using OpenSim.Region.Framework.Interfaces;
namespace OpenSim.Region.CoreModules.World.Terrain
namespace OpenSim.Region.Framework.Interfaces
{
public interface ITerrainEffect
{

View File

@ -29,13 +29,19 @@
using System.IO;
using OpenMetaverse;
namespace OpenSim.Region.CoreModules.World.Terrain
namespace OpenSim.Region.Framework.Interfaces
{
public interface ITerrainModule
{
void LoadFromFile(string filename);
void SaveToFile(string filename);
void ModifyTerrain(UUID user, Vector3 pos, byte size, byte action, UUID agentId);
/// <summary>
/// Taint the terrain. This will lead to sending the terrain data to the clients again.
/// Use this if you change terrain data outside of the terrain module (e.g. in osTerrainSetHeight)
/// </summary>
void TaintTerrain();
/// <summary>
/// Load a terrain from a stream.