32 using System.Collections.Generic;
33 using System.Reflection;
34 using OpenSim.Framework;
35 using OpenSim.Server.Base;
36 using OpenSim.Region.Framework.Interfaces;
37 using OpenSim.Region.Framework.Scenes;
38 using OpenSim.Services.Interfaces;
43 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"LocalLandServicesConnector")]
46 private static readonly ILog m_log =
48 MethodBase.GetCurrentMethod().DeclaringType);
50 private List<Scene> m_Scenes =
new List<Scene>();
52 private bool m_Enabled =
false;
63 #region ISharedRegionModule
65 public Type ReplaceableInterface
72 get {
return "LocalLandServicesConnector"; }
77 IConfig moduleConfig = source.Configs[
"Modules"];
78 if (moduleConfig != null)
80 string name = moduleConfig.GetString(
"LandServices", this.Name);
84 m_log.Info(
"[LAND CONNECTOR]: Local land connector enabled");
113 if (m_Scenes.Contains(scene))
114 m_Scenes.Remove(scene);
117 #endregion ISharedRegionModule
124 m_log.DebugFormat(
"[LAND CONNECTOR]: request for land data in {0} at {1}, {2}",
127 foreach (
Scene s
in m_Scenes)
131 LandData land = s.GetLandData(x, y);
132 regionAccess = s.RegionInfo.AccessLevel;
137 m_log.Debug(
"[LAND CONNECTOR]: didn't find land data locally.");
142 #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...
LocalLandServicesConnector(List< Scene > scenes)
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 Initialise(IConfigSource source)
This is called to initialize the region module. For shared modules, this is called exactly once...
LocalLandServicesConnector()
LandData GetLandData(UUID scopeID, ulong regionHandle, uint x, uint y, out byte regionAccess)
Details of a Parcel of land
Interactive OpenSim region server
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...
void PostInitialise()
This is called exactly once after all the shared region-modules have been instanciated and IRegionMod...
virtual RegionInfo RegionInfo