29 using System.Collections;
30 using System.Collections.Generic;
31 using System.Diagnostics;
32 using System.Reflection;
37 using OpenMetaverse.StructuredData;
38 using OpenMetaverse.Messages.Linden;
40 using OpenSim.Framework;
41 using OpenSim.Framework.Capabilities;
42 using OpenSim.Framework.Console;
43 using OpenSim.Framework.Servers;
44 using OpenSim.Framework.Servers.HttpServer;
45 using OpenSim.Region.CoreModules.Framework.InterfaceCommander;
46 using OpenSim.Region.Framework.Interfaces;
47 using OpenSim.Region.Framework.Scenes;
48 using OpenSim.Region.PhysicsModules.SharedBase;
49 using OpenSim.Services.Interfaces;
55 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"DefaultDwellModule")]
58 private Scene m_scene;
59 private IConfigSource m_Config;
60 private bool m_Enabled =
false;
62 public Type ReplaceableInterface
69 get {
return "DefaultDwellModule"; }
76 IConfig DwellConfig = m_Config.Configs [
"Dwell"];
78 if (DwellConfig == null) {
82 m_Enabled = (DwellConfig.GetString (
"DwellModule",
"DefaultDwellModule") ==
"DefaultDwellModule");
92 m_scene.EventManager.OnNewClient += OnNewClient;
109 client.OnParcelDwellRequest += ClientOnParcelDwellRequest;
112 private void ClientOnParcelDwellRequest(
int localID,
IClientAPI client)
114 ILandObject parcel = m_scene.LandChannel.GetLandObject(localID);
118 client.SendParcelDwellReply(localID, parcel.LandData.GlobalID, parcel.LandData.Dwell);
void Initialise(IConfigSource source)
This is called to initialize the region module. For shared modules, this is called exactly once...
int GetDwell(UUID parcelID)
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...
OpenSim.Services.Interfaces.GridRegion GridRegion
OpenSim.Framework.Capabilities.Caps Caps
Interactive OpenSim region server
void AddRegion(Scene scene)
This is called whenever a Scene is added. For shared modules, this can happen several times...
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
void RegionLoaded(Scene scene)
This will be called once for every scene loaded. In a shared module this will be multiple times in on...
void OnNewClient(IClientAPI client)