diff options
author | Adam Frisby | 2008-05-01 16:35:00 +0000 |
---|---|---|
committer | Adam Frisby | 2008-05-01 16:35:00 +0000 |
commit | 13526097f24b7a8ad63b1d482c44b44397fa055f (patch) | |
tree | 7a82c20ed7c63e2aea5ad3863325e37f64e1cbea /OpenSim/Region/Environment/Scenes/SceneEvents.cs | |
parent | * Breaking all the code, breaking all the code..! (diff) | |
download | opensim-SC-13526097f24b7a8ad63b1d482c44b44397fa055f.zip opensim-SC-13526097f24b7a8ad63b1d482c44b44397fa055f.tar.gz opensim-SC-13526097f24b7a8ad63b1d482c44b44397fa055f.tar.bz2 opensim-SC-13526097f24b7a8ad63b1d482c44b44397fa055f.tar.xz |
* Spring cleaning on Region.Environment.
* Converted a large number of read-only fields to be actually, readonly.
* Reformatted code sections.
* Removed redundant code.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 337 |
1 files changed, 175 insertions, 162 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 002fc5d..297d796 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -38,194 +38,179 @@ namespace OpenSim.Region.Environment.Scenes | |||
38 | /// </summary> | 38 | /// </summary> |
39 | public class EventManager | 39 | public class EventManager |
40 | { | 40 | { |
41 | public delegate void OnFrameDelegate(); | 41 | #region Delegates |
42 | 42 | ||
43 | public event OnFrameDelegate OnFrame; | 43 | public delegate void AvatarEnteringNewParcel(ScenePresence avatar, int localLandID, LLUUID regionID); |
44 | |||
45 | public delegate void ClientClosed(LLUUID clientID); | ||
44 | 46 | ||
45 | public delegate void ClientMovement(ScenePresence client); | 47 | public delegate void ClientMovement(ScenePresence client); |
46 | 48 | ||
47 | public event ClientMovement OnClientMovement; | 49 | /// <summary> |
50 | /// DeregisterCapsEvent is called by Scene when the caps | ||
51 | /// handler for an agent are removed. | ||
52 | /// </summary> | ||
53 | public delegate void DeregisterCapsEvent(LLUUID agentID, Caps caps); | ||
48 | 54 | ||
49 | public delegate void OnTerrainTickDelegate(); | 55 | public delegate void LandBuy(Object sender, LandBuyArgs e); |
50 | 56 | ||
51 | public event OnTerrainTickDelegate OnTerrainTick; | 57 | public delegate void LandObjectAdded(ILandObject newParcel); |
52 | 58 | ||
53 | public delegate void OnBackupDelegate(IRegionDataStore datastore); | 59 | public delegate void LandObjectRemoved(LLUUID globalID); |
54 | 60 | ||
55 | public event OnBackupDelegate OnBackup; | 61 | public delegate void MoneyTransferEvent(Object sender, MoneyTransferArgs e); |
56 | 62 | ||
57 | public delegate void OnNewClientDelegate(IClientAPI client); | 63 | public delegate void NewGridInstantMessage(GridInstantMessage message); |
58 | 64 | ||
59 | public event OnNewClientDelegate OnNewClient; | 65 | public delegate void NewInventoryItemUploadComplete(LLUUID avatarID, LLUUID assetID, string name, int userlevel); |
60 | 66 | ||
61 | public delegate void OnNewPresenceDelegate(ScenePresence presence); | 67 | public delegate void NewRezScript(uint localID, LLUUID itemID, string script); |
62 | 68 | ||
63 | public event OnNewPresenceDelegate OnNewPresence; | 69 | public delegate void ObjectDeGrabDelegate(uint localID, IClientAPI remoteClient); |
64 | 70 | ||
65 | public delegate void OnRemovePresenceDelegate(LLUUID agentId); | 71 | public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient); |
66 | 72 | ||
67 | public event OnRemovePresenceDelegate OnRemovePresence; | 73 | public delegate void OnBackupDelegate(IRegionDataStore datastore); |
68 | 74 | ||
69 | public delegate void OnParcelPrimCountUpdateDelegate(); | 75 | public delegate void OnFrameDelegate(); |
70 | 76 | ||
71 | public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate; | 77 | public delegate void OnNewClientDelegate(IClientAPI client); |
78 | |||
79 | public delegate void OnNewPresenceDelegate(ScenePresence presence); | ||
72 | 80 | ||
73 | public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj); | 81 | public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj); |
74 | 82 | ||
75 | public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; | 83 | public delegate void OnParcelPrimCountUpdateDelegate(); |
84 | |||
85 | public delegate void OnPermissionErrorDelegate(LLUUID user, string reason); | ||
76 | 86 | ||
77 | public delegate void OnPluginConsoleDelegate(string[] args); | 87 | public delegate void OnPluginConsoleDelegate(string[] args); |
78 | 88 | ||
79 | public event OnPluginConsoleDelegate OnPluginConsole; | 89 | public delegate void OnRemovePresenceDelegate(LLUUID agentId); |
80 | 90 | ||
81 | public delegate void OnShutdownDelegate(); | 91 | public delegate void OnShutdownDelegate(); |
82 | 92 | ||
83 | public event OnShutdownDelegate OnShutdown; | 93 | public delegate void OnTerrainTickDelegate(); |
84 | 94 | ||
85 | public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient); | 95 | /// <summary> |
86 | public delegate void ObjectDeGrabDelegate(uint localID, IClientAPI remoteClient); | 96 | /// RegisterCapsEvent is called by Scene after the Caps object |
97 | /// has been instantiated and before it is return to the | ||
98 | /// client and provides region modules to add their caps. | ||
99 | /// </summary> | ||
100 | public delegate void RegisterCapsEvent(LLUUID agentID, Caps caps); | ||
87 | 101 | ||
88 | public delegate void OnPermissionErrorDelegate(LLUUID user, string reason); | 102 | public delegate void RemoveScript(uint localID, LLUUID itemID); |
103 | |||
104 | public delegate void SceneGroupGrabed(LLUUID groupID, LLVector3 offset, LLUUID userID); | ||
105 | |||
106 | public delegate bool SceneGroupMoved(LLUUID groupID, LLVector3 delta); | ||
107 | |||
108 | public delegate void ScriptAtTargetEvent(uint localID, uint handle, LLVector3 targetpos, LLVector3 atpos); | ||
109 | |||
110 | public delegate void ScriptChangedEvent(uint localID, uint change); | ||
111 | |||
112 | public delegate void ScriptNotAtTargetEvent(uint localID); | ||
113 | |||
114 | #endregion | ||
115 | |||
116 | private AvatarEnteringNewParcel handlerAvatarEnteringNewParcel; //OnAvatarEnteringNewParcel; | ||
117 | private OnBackupDelegate handlerBackup; //OnBackup; | ||
118 | private ClientClosed handlerClientClosed; //OnClientClosed; | ||
119 | private ClientMovement handlerClientMovement; //OnClientMovement; | ||
120 | private DeregisterCapsEvent handlerDeregisterCaps; // OnDeregisterCaps; | ||
121 | private OnFrameDelegate handlerFrame; //OnFrame; | ||
122 | private NewGridInstantMessage handlerGridInstantMessageToFriends; //OnGridInstantMessageToFriendsModule; | ||
123 | private NewGridInstantMessage handlerGridInstantMessageToIM; //OnGridInstantMessageToIMModule; | ||
124 | private LandBuy handlerLandBuy; | ||
125 | private LandObjectAdded handlerLandObjectAdded; //OnLandObjectAdded; | ||
126 | private LandObjectRemoved handlerLandObjectRemoved; //OnLandObjectRemoved; | ||
127 | private OnNewPresenceDelegate handlerMakeChildAgent; //OnMakeChildAgent; | ||
128 | private MoneyTransferEvent handlerMoneyTransfer; //OnMoneyTransfer; | ||
129 | private OnNewClientDelegate handlerNewClient; //OnNewClient; | ||
130 | private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete; | ||
131 | private OnNewPresenceDelegate handlerNewPresence; //OnNewPresence; | ||
132 | private ObjectDeGrabDelegate handlerObjectDeGrab; //OnObjectDeGrab; | ||
133 | private ObjectGrabDelegate handlerObjectGrab; //OnObjectGrab; | ||
134 | private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd; //OnParcelPrimCountAdd; | ||
135 | private OnParcelPrimCountUpdateDelegate handlerParcelPrimCountUpdate; //OnParcelPrimCountUpdate; | ||
136 | private OnPermissionErrorDelegate handlerPermissionError; //OnPermissionError; | ||
137 | private OnPluginConsoleDelegate handlerPluginConsole; //OnPluginConsole; | ||
138 | private RegisterCapsEvent handlerRegisterCaps; // OnRegisterCaps; | ||
139 | private OnRemovePresenceDelegate handlerRemovePresence; //OnRemovePresence; | ||
140 | private RemoveScript handlerRemoveScript; //OnRemoveScript; | ||
141 | private NewRezScript handlerRezScript; //OnRezScript; | ||
142 | private SceneGroupGrabed handlerSceneGroupGrab; //OnSceneGroupGrab; | ||
143 | private SceneGroupMoved handlerSceneGroupMove; //OnSceneGroupMove; | ||
144 | private ScriptAtTargetEvent handlerScriptAtTargetEvent; | ||
145 | private ScriptChangedEvent handlerScriptChangedEvent; //OnScriptChangedEvent; | ||
146 | private ScriptNotAtTargetEvent handlerScriptNotAtTargetEvent; | ||
147 | private OnShutdownDelegate handlerShutdown; //OnShutdown; | ||
148 | private OnTerrainTickDelegate handlerTerrainTick; // OnTerainTick; | ||
149 | private LandBuy handlerValidateLandBuy; | ||
150 | |||
151 | public event OnFrameDelegate OnFrame; | ||
152 | |||
153 | public event ClientMovement OnClientMovement; | ||
154 | |||
155 | public event OnTerrainTickDelegate OnTerrainTick; | ||
156 | |||
157 | public event OnBackupDelegate OnBackup; | ||
158 | |||
159 | public event OnNewClientDelegate OnNewClient; | ||
160 | |||
161 | public event OnNewPresenceDelegate OnNewPresence; | ||
162 | |||
163 | public event OnRemovePresenceDelegate OnRemovePresence; | ||
164 | |||
165 | public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate; | ||
166 | |||
167 | public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; | ||
168 | |||
169 | public event OnPluginConsoleDelegate OnPluginConsole; | ||
170 | |||
171 | public event OnShutdownDelegate OnShutdown; | ||
89 | 172 | ||
90 | public event ObjectGrabDelegate OnObjectGrab; | 173 | public event ObjectGrabDelegate OnObjectGrab; |
91 | public event ObjectDeGrabDelegate OnObjectDeGrab; | 174 | public event ObjectDeGrabDelegate OnObjectDeGrab; |
92 | 175 | ||
93 | public event OnPermissionErrorDelegate OnPermissionError; | 176 | public event OnPermissionErrorDelegate OnPermissionError; |
94 | 177 | ||
95 | public delegate void NewRezScript(uint localID, LLUUID itemID, string script); | ||
96 | |||
97 | public event NewRezScript OnRezScript; | 178 | public event NewRezScript OnRezScript; |
98 | 179 | ||
99 | public delegate void RemoveScript(uint localID, LLUUID itemID); | ||
100 | |||
101 | public event RemoveScript OnRemoveScript; | 180 | public event RemoveScript OnRemoveScript; |
102 | 181 | ||
103 | public delegate bool SceneGroupMoved(LLUUID groupID, LLVector3 delta); | ||
104 | |||
105 | public event SceneGroupMoved OnSceneGroupMove; | 182 | public event SceneGroupMoved OnSceneGroupMove; |
106 | 183 | ||
107 | public delegate void SceneGroupGrabed(LLUUID groupID, LLVector3 offset, LLUUID userID); | ||
108 | |||
109 | public event SceneGroupGrabed OnSceneGroupGrab; | 184 | public event SceneGroupGrabed OnSceneGroupGrab; |
110 | 185 | ||
111 | public delegate void LandObjectAdded(ILandObject newParcel); | ||
112 | |||
113 | public event LandObjectAdded OnLandObjectAdded; | 186 | public event LandObjectAdded OnLandObjectAdded; |
114 | 187 | ||
115 | public delegate void LandObjectRemoved(LLUUID globalID); | ||
116 | |||
117 | public event LandObjectRemoved OnLandObjectRemoved; | 188 | public event LandObjectRemoved OnLandObjectRemoved; |
118 | 189 | ||
119 | public delegate void AvatarEnteringNewParcel(ScenePresence avatar, int localLandID, LLUUID regionID); | ||
120 | |||
121 | public event AvatarEnteringNewParcel OnAvatarEnteringNewParcel; | 190 | public event AvatarEnteringNewParcel OnAvatarEnteringNewParcel; |
122 | 191 | ||
123 | 192 | ||
124 | public delegate void NewGridInstantMessage(GridInstantMessage message); | ||
125 | |||
126 | public event NewGridInstantMessage OnGridInstantMessageToIMModule; | 193 | public event NewGridInstantMessage OnGridInstantMessageToIMModule; |
127 | 194 | ||
128 | public event NewGridInstantMessage OnGridInstantMessageToFriendsModule; | 195 | public event NewGridInstantMessage OnGridInstantMessageToFriendsModule; |
129 | 196 | ||
130 | public event NewGridInstantMessage OnGridInstantMessageToGroupsModule; | 197 | public event NewGridInstantMessage OnGridInstantMessageToGroupsModule; |
131 | 198 | ||
132 | public delegate void ClientClosed(LLUUID clientID); | ||
133 | |||
134 | public event ClientClosed OnClientClosed; | 199 | public event ClientClosed OnClientClosed; |
135 | 200 | ||
136 | public delegate void ScriptChangedEvent(uint localID, uint change); | ||
137 | |||
138 | public event ScriptChangedEvent OnScriptChangedEvent; | 201 | public event ScriptChangedEvent OnScriptChangedEvent; |
139 | 202 | ||
140 | public delegate void ScriptAtTargetEvent(uint localID, uint handle, LLVector3 targetpos, LLVector3 atpos); | ||
141 | |||
142 | public event ScriptAtTargetEvent OnScriptAtTargetEvent; | 203 | public event ScriptAtTargetEvent OnScriptAtTargetEvent; |
143 | 204 | ||
144 | public delegate void ScriptNotAtTargetEvent(uint localID); | ||
145 | |||
146 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; | 205 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; |
147 | 206 | ||
148 | public event OnNewPresenceDelegate OnMakeChildAgent; | 207 | public event OnNewPresenceDelegate OnMakeChildAgent; |
149 | 208 | ||
150 | public delegate void NewInventoryItemUploadComplete(LLUUID avatarID, LLUUID assetID, string name, int userlevel); | ||
151 | |||
152 | public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete; | 209 | public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete; |
153 | 210 | ||
154 | /// <summary> | ||
155 | /// RegisterCapsEvent is called by Scene after the Caps object | ||
156 | /// has been instantiated and before it is return to the | ||
157 | /// client and provides region modules to add their caps. | ||
158 | /// </summary> | ||
159 | public delegate void RegisterCapsEvent(LLUUID agentID, Caps caps); | ||
160 | public event RegisterCapsEvent OnRegisterCaps; | 211 | public event RegisterCapsEvent OnRegisterCaps; |
161 | /// <summary> | ||
162 | /// DeregisterCapsEvent is called by Scene when the caps | ||
163 | /// handler for an agent are removed. | ||
164 | /// </summary> | ||
165 | public delegate void DeregisterCapsEvent(LLUUID agentID, Caps caps); | ||
166 | public event DeregisterCapsEvent OnDeregisterCaps; | ||
167 | |||
168 | public class MoneyTransferArgs : EventArgs | ||
169 | { | ||
170 | public LLUUID sender; | ||
171 | public LLUUID receiver; | ||
172 | |||
173 | // Always false. The SL protocol sucks. | ||
174 | public bool authenticated = false; | ||
175 | |||
176 | public int amount; | ||
177 | public int transactiontype; | ||
178 | public string description; | ||
179 | |||
180 | public MoneyTransferArgs(LLUUID asender, LLUUID areceiver, int aamount, int atransactiontype, string adescription) { | ||
181 | sender = asender; | ||
182 | receiver = areceiver; | ||
183 | amount = aamount; | ||
184 | transactiontype = atransactiontype; | ||
185 | description = adescription; | ||
186 | } | ||
187 | } | ||
188 | |||
189 | public class LandBuyArgs : EventArgs | ||
190 | { | ||
191 | public LLUUID agentId = LLUUID.Zero; | ||
192 | |||
193 | public LLUUID groupId = LLUUID.Zero; | ||
194 | |||
195 | public LLUUID parcelOwnerID = LLUUID.Zero; | ||
196 | |||
197 | public bool final = false; | ||
198 | public bool groupOwned = false; | ||
199 | public bool removeContribution = false; | ||
200 | public int parcelLocalID = 0; | ||
201 | public int parcelArea = 0; | ||
202 | public int parcelPrice = 0; | ||
203 | public bool authenticated = false; | ||
204 | public bool landValidated = false; | ||
205 | public bool economyValidated = false; | ||
206 | public int transactionID = 0; | ||
207 | public int amountDebited = 0; | ||
208 | |||
209 | |||
210 | public LandBuyArgs(LLUUID pagentId, LLUUID pgroupId, bool pfinal, bool pgroupOwned, | ||
211 | bool premoveContribution, int pparcelLocalID, int pparcelArea, int pparcelPrice, | ||
212 | bool pauthenticated) | ||
213 | { | ||
214 | agentId = pagentId; | ||
215 | groupId = pgroupId; | ||
216 | final = pfinal; | ||
217 | groupOwned = pgroupOwned; | ||
218 | removeContribution = premoveContribution; | ||
219 | parcelLocalID = pparcelLocalID; | ||
220 | parcelArea = pparcelArea; | ||
221 | parcelPrice = pparcelPrice; | ||
222 | authenticated = pauthenticated; | ||
223 | } | ||
224 | } | ||
225 | |||
226 | public delegate void MoneyTransferEvent(Object sender, MoneyTransferArgs e); | ||
227 | 212 | ||
228 | public delegate void LandBuy(Object sender, LandBuyArgs e); | 213 | public event DeregisterCapsEvent OnDeregisterCaps; |
229 | 214 | ||
230 | public event MoneyTransferEvent OnMoneyTransfer; | 215 | public event MoneyTransferEvent OnMoneyTransfer; |
231 | public event LandBuy OnLandBuy; | 216 | public event LandBuy OnLandBuy; |
@@ -233,41 +218,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
233 | 218 | ||
234 | /* Designated Event Deletage Instances */ | 219 | /* Designated Event Deletage Instances */ |
235 | 220 | ||
236 | private ScriptChangedEvent handlerScriptChangedEvent = null; //OnScriptChangedEvent; | ||
237 | private ScriptAtTargetEvent handlerScriptAtTargetEvent = null; | ||
238 | private ScriptNotAtTargetEvent handlerScriptNotAtTargetEvent = null; | ||
239 | private ClientMovement handlerClientMovement = null; //OnClientMovement; | ||
240 | private OnPermissionErrorDelegate handlerPermissionError = null; //OnPermissionError; | ||
241 | private OnPluginConsoleDelegate handlerPluginConsole = null; //OnPluginConsole; | ||
242 | private OnFrameDelegate handlerFrame = null; //OnFrame; | ||
243 | private OnNewClientDelegate handlerNewClient = null; //OnNewClient; | ||
244 | private OnNewPresenceDelegate handlerNewPresence = null; //OnNewPresence; | ||
245 | private OnRemovePresenceDelegate handlerRemovePresence = null; //OnRemovePresence; | ||
246 | private OnBackupDelegate handlerBackup = null; //OnBackup; | ||
247 | private OnParcelPrimCountUpdateDelegate handlerParcelPrimCountUpdate = null; //OnParcelPrimCountUpdate; | ||
248 | private MoneyTransferEvent handlerMoneyTransfer = null; //OnMoneyTransfer; | ||
249 | private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = null; //OnParcelPrimCountAdd; | ||
250 | private OnShutdownDelegate handlerShutdown = null; //OnShutdown; | ||
251 | private ObjectGrabDelegate handlerObjectGrab = null; //OnObjectGrab; | ||
252 | private ObjectDeGrabDelegate handlerObjectDeGrab = null; //OnObjectDeGrab; | ||
253 | private NewRezScript handlerRezScript = null; //OnRezScript; | ||
254 | private RemoveScript handlerRemoveScript = null; //OnRemoveScript; | ||
255 | private SceneGroupMoved handlerSceneGroupMove = null; //OnSceneGroupMove; | ||
256 | private SceneGroupGrabed handlerSceneGroupGrab = null; //OnSceneGroupGrab; | ||
257 | private LandObjectAdded handlerLandObjectAdded = null; //OnLandObjectAdded; | ||
258 | private LandObjectRemoved handlerLandObjectRemoved = null; //OnLandObjectRemoved; | ||
259 | private AvatarEnteringNewParcel handlerAvatarEnteringNewParcel = null; //OnAvatarEnteringNewParcel; | ||
260 | private NewGridInstantMessage handlerGridInstantMessageToIM = null; //OnGridInstantMessageToIMModule; | ||
261 | private NewGridInstantMessage handlerGridInstantMessageToFriends = null; //OnGridInstantMessageToFriendsModule; | ||
262 | private ClientClosed handlerClientClosed = null; //OnClientClosed; | ||
263 | private OnNewPresenceDelegate handlerMakeChildAgent = null; //OnMakeChildAgent; | ||
264 | private OnTerrainTickDelegate handlerTerrainTick = null; // OnTerainTick; | ||
265 | private RegisterCapsEvent handlerRegisterCaps = null; // OnRegisterCaps; | ||
266 | private DeregisterCapsEvent handlerDeregisterCaps = null; // OnDeregisterCaps; | ||
267 | private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null; | ||
268 | private LandBuy handlerLandBuy = null; | ||
269 | private LandBuy handlerValidateLandBuy = null; | ||
270 | |||
271 | public void TriggerOnScriptChangedEvent(uint localID, uint change) | 221 | public void TriggerOnScriptChangedEvent(uint localID, uint change) |
272 | { | 222 | { |
273 | handlerScriptChangedEvent = OnScriptChangedEvent; | 223 | handlerScriptChangedEvent = OnScriptChangedEvent; |
@@ -343,7 +293,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
343 | if (handlerParcelPrimCountUpdate != null) | 293 | if (handlerParcelPrimCountUpdate != null) |
344 | { | 294 | { |
345 | handlerParcelPrimCountUpdate(); | 295 | handlerParcelPrimCountUpdate(); |
346 | } | 296 | } |
347 | } | 297 | } |
348 | 298 | ||
349 | public void TriggerMoneyTransfer(Object sender, MoneyTransferArgs e) | 299 | public void TriggerMoneyTransfer(Object sender, MoneyTransferArgs e) |
@@ -492,7 +442,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
492 | { | 442 | { |
493 | handlerGridInstantMessageToFriends(message); | 443 | handlerGridInstantMessageToFriends(message); |
494 | } | 444 | } |
495 | |||
496 | } | 445 | } |
497 | } | 446 | } |
498 | 447 | ||
@@ -514,7 +463,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
514 | } | 463 | } |
515 | } | 464 | } |
516 | 465 | ||
517 | public void TriggerOnRegisterCaps(LLUUID agentID, Caps caps) | 466 | public void TriggerOnRegisterCaps(LLUUID agentID, Caps caps) |
518 | { | 467 | { |
519 | handlerRegisterCaps = OnRegisterCaps; | 468 | handlerRegisterCaps = OnRegisterCaps; |
520 | if (handlerRegisterCaps != null) | 469 | if (handlerRegisterCaps != null) |
@@ -523,7 +472,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
523 | } | 472 | } |
524 | } | 473 | } |
525 | 474 | ||
526 | public void TriggerOnDeregisterCaps(LLUUID agentID, Caps caps) | 475 | public void TriggerOnDeregisterCaps(LLUUID agentID, Caps caps) |
527 | { | 476 | { |
528 | handlerDeregisterCaps = OnDeregisterCaps; | 477 | handlerDeregisterCaps = OnDeregisterCaps; |
529 | if (handlerDeregisterCaps != null) | 478 | if (handlerDeregisterCaps != null) |
@@ -540,7 +489,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
540 | handlerNewInventoryItemUpdateComplete(agentID, AssetID, AssetName, userlevel); | 489 | handlerNewInventoryItemUpdateComplete(agentID, AssetID, AssetName, userlevel); |
541 | } | 490 | } |
542 | } | 491 | } |
543 | public void TriggerLandBuy (Object sender, LandBuyArgs e) | 492 | |
493 | public void TriggerLandBuy(Object sender, LandBuyArgs e) | ||
544 | { | 494 | { |
545 | handlerLandBuy = OnLandBuy; | 495 | handlerLandBuy = OnLandBuy; |
546 | if (handlerLandBuy != null) | 496 | if (handlerLandBuy != null) |
@@ -548,6 +498,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
548 | handlerLandBuy(sender, e); | 498 | handlerLandBuy(sender, e); |
549 | } | 499 | } |
550 | } | 500 | } |
501 | |||
551 | public void TriggerValidateLandBuy(Object sender, LandBuyArgs e) | 502 | public void TriggerValidateLandBuy(Object sender, LandBuyArgs e) |
552 | { | 503 | { |
553 | handlerValidateLandBuy = OnValidateLandBuy; | 504 | handlerValidateLandBuy = OnValidateLandBuy; |
@@ -556,7 +507,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
556 | handlerValidateLandBuy(sender, e); | 507 | handlerValidateLandBuy(sender, e); |
557 | } | 508 | } |
558 | } | 509 | } |
559 | 510 | ||
560 | public void TriggerAtTargetEvent(uint localID, uint handle, LLVector3 targetpos, LLVector3 currentpos) | 511 | public void TriggerAtTargetEvent(uint localID, uint handle, LLVector3 targetpos, LLVector3 currentpos) |
561 | { | 512 | { |
562 | handlerScriptAtTargetEvent = OnScriptAtTargetEvent; | 513 | handlerScriptAtTargetEvent = OnScriptAtTargetEvent; |
@@ -574,5 +525,67 @@ namespace OpenSim.Region.Environment.Scenes | |||
574 | handlerScriptNotAtTargetEvent(localID); | 525 | handlerScriptNotAtTargetEvent(localID); |
575 | } | 526 | } |
576 | } | 527 | } |
528 | |||
529 | #region Nested type: LandBuyArgs | ||
530 | |||
531 | public class LandBuyArgs : EventArgs | ||
532 | { | ||
533 | public LLUUID agentId = LLUUID.Zero; | ||
534 | public int amountDebited; | ||
535 | public bool authenticated; | ||
536 | public bool economyValidated; | ||
537 | |||
538 | public bool final; | ||
539 | public LLUUID groupId = LLUUID.Zero; | ||
540 | public bool groupOwned; | ||
541 | public bool landValidated; | ||
542 | public int parcelArea; | ||
543 | public int parcelLocalID; | ||
544 | public LLUUID parcelOwnerID = LLUUID.Zero; | ||
545 | public int parcelPrice; | ||
546 | public bool removeContribution; | ||
547 | public int transactionID; | ||
548 | |||
549 | |||
550 | public LandBuyArgs(LLUUID pagentId, LLUUID pgroupId, bool pfinal, bool pgroupOwned, | ||
551 | bool premoveContribution, int pparcelLocalID, int pparcelArea, int pparcelPrice, | ||
552 | bool pauthenticated) | ||
553 | { | ||
554 | agentId = pagentId; | ||
555 | groupId = pgroupId; | ||
556 | final = pfinal; | ||
557 | groupOwned = pgroupOwned; | ||
558 | removeContribution = premoveContribution; | ||
559 | parcelLocalID = pparcelLocalID; | ||
560 | parcelArea = pparcelArea; | ||
561 | parcelPrice = pparcelPrice; | ||
562 | authenticated = pauthenticated; | ||
563 | } | ||
564 | } | ||
565 | |||
566 | #endregion | ||
567 | |||
568 | #region Nested type: MoneyTransferArgs | ||
569 | |||
570 | public class MoneyTransferArgs : EventArgs | ||
571 | { | ||
572 | public int amount; | ||
573 | public bool authenticated; | ||
574 | public string description; | ||
575 | public LLUUID receiver; | ||
576 | public LLUUID sender; | ||
577 | public int transactiontype; | ||
578 | |||
579 | public MoneyTransferArgs(LLUUID asender, LLUUID areceiver, int aamount, int atransactiontype, string adescription) | ||
580 | { | ||
581 | sender = asender; | ||
582 | receiver = areceiver; | ||
583 | amount = aamount; | ||
584 | transactiontype = atransactiontype; | ||
585 | description = adescription; | ||
586 | } | ||
587 | } | ||
588 | |||
589 | #endregion | ||
577 | } | 590 | } |
578 | } | 591 | } \ No newline at end of file |