aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneEvents.cs
diff options
context:
space:
mode:
authorlbsa712007-09-19 00:30:55 +0000
committerlbsa712007-09-19 00:30:55 +0000
commit8f0b03597b0bc8ea6873af9a55495407fae1ec56 (patch)
treef9f4de38379aebf2223ad4cb10a3d9ebcfa52a4f /OpenSim/Region/Environment/Scenes/SceneEvents.cs
parent* Moved SendLogoutPacket back to IClientAPI. (diff)
downloadopensim-SC_OLD-8f0b03597b0bc8ea6873af9a55495407fae1ec56.zip
opensim-SC_OLD-8f0b03597b0bc8ea6873af9a55495407fae1ec56.tar.gz
opensim-SC_OLD-8f0b03597b0bc8ea6873af9a55495407fae1ec56.tar.bz2
opensim-SC_OLD-8f0b03597b0bc8ea6873af9a55495407fae1ec56.tar.xz
* Modernized ScriptManager to new interface-based module calls.
* 'remove redundant this qualifier' ftw
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneEvents.cs21
1 files changed, 18 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
index a86a1bc..a5d8667 100644
--- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
@@ -1,5 +1,6 @@
1using libsecondlife; 1using libsecondlife;
2using OpenSim.Framework.Interfaces; 2using OpenSim.Framework.Interfaces;
3using OpenSim.Region.Environment.Interfaces;
3 4
4namespace OpenSim.Region.Environment.Scenes 5namespace OpenSim.Region.Environment.Scenes
5{ 6{
@@ -9,41 +10,54 @@ namespace OpenSim.Region.Environment.Scenes
9 public class EventManager 10 public class EventManager
10 { 11 {
11 public delegate void OnFrameDelegate(); 12 public delegate void OnFrameDelegate();
13
12 public event OnFrameDelegate OnFrame; 14 public event OnFrameDelegate OnFrame;
13 15
14 public delegate void OnBackupDelegate(Interfaces.IRegionDataStore datastore); 16 public delegate void OnBackupDelegate(IRegionDataStore datastore);
17
15 public event OnBackupDelegate OnBackup; 18 public event OnBackupDelegate OnBackup;
16 19
17 public delegate void OnNewClientDelegate(IClientAPI client); 20 public delegate void OnNewClientDelegate(IClientAPI client);
21
18 public event OnNewClientDelegate OnNewClient; 22 public event OnNewClientDelegate OnNewClient;
19 23
20 public delegate void OnNewPresenceDelegate(ScenePresence presence); 24 public delegate void OnNewPresenceDelegate(ScenePresence presence);
25
21 public event OnNewPresenceDelegate OnNewPresence; 26 public event OnNewPresenceDelegate OnNewPresence;
22 27
23 public delegate void OnRemovePresenceDelegate(LLUUID uuid); 28 public delegate void OnRemovePresenceDelegate(LLUUID uuid);
29
24 public event OnRemovePresenceDelegate OnRemovePresence; 30 public event OnRemovePresenceDelegate OnRemovePresence;
25 31
26 public delegate void OnParcelPrimCountUpdateDelegate(); 32 public delegate void OnParcelPrimCountUpdateDelegate();
33
27 public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate; 34 public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate;
28 35
29 public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj); 36 public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj);
37
30 public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; 38 public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd;
31 39
32 public delegate void OnScriptConsoleDelegate(string[] args); 40 public delegate void OnScriptConsoleDelegate(string[] args);
41
33 public event OnScriptConsoleDelegate OnScriptConsole; 42 public event OnScriptConsoleDelegate OnScriptConsole;
34 43
35 public delegate void OnShutdownDelegate(); 44 public delegate void OnShutdownDelegate();
45
36 public event OnShutdownDelegate OnShutdown; 46 public event OnShutdownDelegate OnShutdown;
37 47
38 public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient); 48 public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient);
49
39 public delegate void OnPermissionErrorDelegate(LLUUID user, string reason); 50 public delegate void OnPermissionErrorDelegate(LLUUID user, string reason);
51
40 public event ObjectGrabDelegate OnObjectGrab; 52 public event ObjectGrabDelegate OnObjectGrab;
41 public event OnPermissionErrorDelegate OnPermissionError; 53 public event OnPermissionErrorDelegate OnPermissionError;
42 54
43 public delegate void NewRezScript(uint localID, LLUUID itemID, string script); 55 public delegate void NewRezScript(uint localID, LLUUID itemID, string script);
56
44 public event NewRezScript OnRezScript; 57 public event NewRezScript OnRezScript;
45 58
46 public delegate void RemoveScript(uint localID, LLUUID itemID); 59 public delegate void RemoveScript(uint localID, LLUUID itemID);
60
47 public event RemoveScript OnRemoveScript; 61 public event RemoveScript OnRemoveScript;
48 62
49 public void TriggerPermissionError(LLUUID user, string reason) 63 public void TriggerPermissionError(LLUUID user, string reason)
@@ -86,7 +100,7 @@ namespace OpenSim.Region.Environment.Scenes
86 } 100 }
87 } 101 }
88 102
89 public void TriggerOnBackup(Interfaces.IRegionDataStore dstore) 103 public void TriggerOnBackup(IRegionDataStore dstore)
90 { 104 {
91 if (OnBackup != null) 105 if (OnBackup != null)
92 { 106 {
@@ -101,6 +115,7 @@ namespace OpenSim.Region.Environment.Scenes
101 OnParcelPrimCountUpdate(); 115 OnParcelPrimCountUpdate();
102 } 116 }
103 } 117 }
118
104 public void TriggerParcelPrimCountAdd(SceneObjectGroup obj) 119 public void TriggerParcelPrimCountAdd(SceneObjectGroup obj)
105 { 120 {
106 if (OnParcelPrimCountAdd != null) 121 if (OnParcelPrimCountAdd != null)
@@ -137,4 +152,4 @@ namespace OpenSim.Region.Environment.Scenes
137 } 152 }
138 } 153 }
139 } 154 }
140} 155} \ No newline at end of file