diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/EventManager.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs index 1c345ba..6cecb6d 100644 --- a/OpenSim/Region/Environment/Scenes/EventManager.cs +++ b/OpenSim/Region/Environment/Scenes/EventManager.cs | |||
@@ -217,6 +217,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
217 | /// </summary> | 217 | /// </summary> |
218 | public delegate void ChatFromWorldEvent(Object sender, ChatFromViewerArgs chat); | 218 | public delegate void ChatFromWorldEvent(Object sender, ChatFromViewerArgs chat); |
219 | public event ChatFromWorldEvent OnChatFromWorld; | 219 | public event ChatFromWorldEvent OnChatFromWorld; |
220 | /// <summary> | ||
221 | /// ChatBroadcastEvent is called via Scene when a broadcast chat message | ||
222 | /// from world comes in (chat from viewer is available via client.OnChatFromViewer). | ||
223 | /// </summary> | ||
224 | public delegate void ChatBroadcastEvent(Object sender, ChatFromViewerArgs chat); | ||
225 | public event ChatBroadcastEvent OnChatBroadcast; | ||
220 | 226 | ||
221 | public class MoneyTransferArgs : EventArgs | 227 | public class MoneyTransferArgs : EventArgs |
222 | { | 228 | { |
@@ -320,6 +326,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
320 | private RegisterCapsEvent handlerRegisterCaps = null; // OnRegisterCaps; | 326 | private RegisterCapsEvent handlerRegisterCaps = null; // OnRegisterCaps; |
321 | private DeregisterCapsEvent handlerDeregisterCaps = null; // OnDeregisterCaps; | 327 | private DeregisterCapsEvent handlerDeregisterCaps = null; // OnDeregisterCaps; |
322 | private ChatFromWorldEvent handlerChatFromWorld = null; // OnChatFromWorld; | 328 | private ChatFromWorldEvent handlerChatFromWorld = null; // OnChatFromWorld; |
329 | private ChatBroadcastEvent handlerChatBroadcast = null; // OnChatBroadcast; | ||
323 | private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null; | 330 | private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null; |
324 | private RequestChangeWaterHeight handlerRequestChangeWaterHeight = null; //OnRequestChangeWaterHeight | 331 | private RequestChangeWaterHeight handlerRequestChangeWaterHeight = null; //OnRequestChangeWaterHeight |
325 | private ScriptControlEvent handlerScriptControlEvent = null; | 332 | private ScriptControlEvent handlerScriptControlEvent = null; |
@@ -699,6 +706,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
699 | } | 706 | } |
700 | } | 707 | } |
701 | 708 | ||
709 | public void TriggerOnChatBroadcast(Object sender, ChatFromViewerArgs chat) | ||
710 | { | ||
711 | handlerChatBroadcast = OnChatBroadcast; | ||
712 | if (handlerChatBroadcast != null) | ||
713 | { | ||
714 | handlerChatBroadcast(sender, chat); | ||
715 | } | ||
716 | } | ||
717 | |||
702 | internal void TriggerControlEvent(uint p, LLUUID scriptUUID, LLUUID avatarID, uint held, uint _changed) | 718 | internal void TriggerControlEvent(uint p, LLUUID scriptUUID, LLUUID avatarID, uint held, uint _changed) |
703 | { | 719 | { |
704 | handlerScriptControlEvent = OnScriptControlEvent; | 720 | handlerScriptControlEvent = OnScriptControlEvent; |