29 using System.Reflection;
33 using OpenSim.Region.Framework.Interfaces;
34 using OpenSim.Region.Framework.Scenes;
42 namespace OpenSim.Region.OptionalModules.Example.BareBonesNonShared
61 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
63 public string Name {
get {
return "Bare Bones Non Shared Module"; } }
65 public Type ReplaceableInterface {
get {
return null; } }
69 m_log.DebugFormat(
"[BARE BONES NON SHARED]: INITIALIZED MODULE");
74 m_log.DebugFormat(
"[BARE BONES NON SHARED]: CLOSED MODULE");
79 m_log.DebugFormat(
"[BARE BONES NON SHARED]: REGION {0} ADDED", scene.RegionInfo.RegionName);
84 m_log.DebugFormat(
"[BARE BONES NON SHARED]: REGION {0} REMOVED", scene.RegionInfo.RegionName);
89 m_log.DebugFormat(
"[BARE BONES NON SHARED]: REGION {0} LOADED", scene.RegionInfo.RegionName);
void Initialise(IConfigSource source)
This is called to initialize the region module. For shared modules, this is called exactly once...
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...
void AddRegion(Scene scene)
This is called whenever a Scene is added. For shared modules, this can happen several times...
Simplest possible example of a non-shared region module.
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...
Interactive OpenSim region server