29 using System.Reflection;
33 using OpenSim.Region.Framework.Interfaces;
34 using OpenSim.Region.Framework.Scenes;
42 namespace OpenSim.Region.OptionalModules.Example.BareBonesShared
61 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
63 public string Name {
get {
return "Bare Bones Shared Module"; } }
65 public Type ReplaceableInterface {
get {
return null; } }
69 m_log.DebugFormat(
"[BARE BONES SHARED]: INITIALIZED MODULE");
74 m_log.DebugFormat(
"[BARE BONES SHARED]: POST INITIALIZED MODULE");
79 m_log.DebugFormat(
"[BARE BONES SHARED]: CLOSED MODULE");
84 m_log.DebugFormat(
"[BARE BONES SHARED]: REGION {0} ADDED", scene.RegionInfo.RegionName);
89 m_log.DebugFormat(
"[BARE BONES SHARED]: REGION {0} REMOVED", scene.RegionInfo.RegionName);
94 m_log.DebugFormat(
"[BARE BONES SHARED]: REGION {0} LOADED", scene.RegionInfo.RegionName);
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 RegionLoaded(Scene scene)
This will be called once for every scene loaded. In a shared module this will be multiple times in on...
Simplest possible example of a shared region module.
Interactive OpenSim region server
void Initialise(IConfigSource source)
This is called to initialize the region module. For shared modules, this is called exactly once...
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
void PostInitialise()
This is called exactly once after all the shared region-modules have been instanciated and IRegionMod...