32 using System.Reflection;
33 using OpenSim.Region.Framework.Interfaces;
34 using OpenSim.Region.Framework.Scenes;
35 using OpenSim.Services.Interfaces;
36 using OpenSim.Services.Connectors;
38 namespace OpenSim.
Region.CoreModules.ServiceConnectorsOut.
Avatar
40 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"RemoteAvatarServicesConnector")]
44 private static readonly ILog m_log =
46 MethodBase.GetCurrentMethod().DeclaringType);
48 private bool m_Enabled =
false;
50 public Type ReplaceableInterface
57 get {
return "RemoteAvatarServicesConnector"; }
62 IConfig moduleConfig = source.Configs[
"Modules"];
63 if (moduleConfig != null)
65 string name = moduleConfig.GetString(
"AvatarServices",
"");
68 IConfig userConfig = source.Configs[
"AvatarService"];
69 if (userConfig == null)
71 m_log.Error(
"[AVATAR CONNECTOR]: AvatarService missing from OpenSim.ini");
77 base.Initialise(source);
79 m_log.Info(
"[AVATAR CONNECTOR]: Remote avatars enabled");
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...
void AddRegion(Scene scene)
This is called whenever a Scene is added. 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...
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
override void Initialise(IConfigSource source)