29 using System.Reflection;
33 using OpenSim.Framework;
35 using OpenSim.Region.Framework.Interfaces;
36 using OpenSim.Region.Framework.Scenes;
37 using OpenSim.Services.Interfaces;
43 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"GesturesModule")]
46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
58 m_scene.EventManager.OnNewClient += OnNewClient;
67 m_scene.EventManager.OnNewClient -= OnNewClient;
72 public string Name {
get {
return "Gestures Module"; } }
74 public Type ReplaceableInterface
90 item = invService.GetItem(item);
94 invService.UpdateItem(item);
98 "[GESTURES]: Unable to find gesture {0} to activate for {1}", gestureId, client.Name);
106 item = invService.GetItem(item);
109 item.Flags &= ~(uint)1;
110 invService.UpdateItem(item);
114 "[GESTURES]: Unable to find gesture to deactivate {0} for {1}", gestureId, client.Name);
delegate void ActivateGesture(IClientAPI client, UUID gestureid, UUID assetId)
virtual void ActivateGesture(IClientAPI client, UUID assetId, UUID gestureId)
void AddRegion(Scene scene)
This is called whenever a Scene is added. For shared modules, this can happen several times...
Inventory Item - contains all the properties associated with an individual inventory piece...
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 Initialise(IConfigSource source)
This is called to initialize the region module. For shared modules, this is called exactly once...
Interactive OpenSim region server
delegate void DeactivateGesture(IClientAPI client, UUID gestureid)
virtual void DeactivateGesture(IClientAPI client, UUID gestureId)
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...