31 using System.Collections.Generic;
32 using System.Reflection;
34 using OpenSim.Framework;
35 using OpenSim.Services.Connectors;
36 using OpenSim.Region.Framework.Interfaces;
37 using OpenSim.Region.Framework.Scenes;
38 using OpenSim.Services.Interfaces;
39 using OpenSim.Server.Base;
43 namespace OpenSim.
Region.CoreModules.ServiceConnectorsOut.
Land
45 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"RemoteLandServicesConnector")]
49 private static readonly ILog m_log =
51 MethodBase.GetCurrentMethod().DeclaringType);
53 private bool m_Enabled =
false;
56 public Type ReplaceableInterface
63 get {
return "RemoteLandServicesConnector"; }
68 IConfig moduleConfig = source.Configs[
"Modules"];
69 if (moduleConfig != null)
71 string name = moduleConfig.GetString(
"LandServices",
"");
78 m_log.Info(
"[LAND CONNECTOR]: Remote Land connector enabled");
96 m_LocalService.AddRegion(scene);
103 m_LocalService.RemoveRegion(scene);
109 m_GridService = scene.GridService;
115 public override LandData GetLandData(UUID scopeID, ulong regionHandle, uint x, uint y, out byte regionAccess)
117 LandData land = m_LocalService.GetLandData(scopeID, regionHandle, x, y, out regionAccess);
121 return base.GetLandData(scopeID, regionHandle, x, y, out regionAccess);
124 #endregion ILandService
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 PostInitialise()
This is called exactly once after all the shared region-modules have been instanciated and IRegionMod...
Details of a Parcel of land
void AddRegion(Scene scene)
This is called whenever a Scene is added. For shared modules, this can happen several times...
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...
void Initialise(IConfigSource source)
This is called to initialize the region module. For shared modules, this is called exactly once...
override LandData GetLandData(UUID scopeID, ulong regionHandle, uint x, uint y, out byte regionAccess)
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...