diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 337 |
1 files changed, 162 insertions, 175 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 297d796..002fc5d 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -38,186 +38,236 @@ namespace OpenSim.Region.Environment.Scenes | |||
38 | /// </summary> | 38 | /// </summary> |
39 | public class EventManager | 39 | public class EventManager |
40 | { | 40 | { |
41 | #region Delegates | 41 | public delegate void OnFrameDelegate(); |
42 | |||
43 | public delegate void AvatarEnteringNewParcel(ScenePresence avatar, int localLandID, LLUUID regionID); | ||
44 | 42 | ||
45 | public delegate void ClientClosed(LLUUID clientID); | 43 | public event OnFrameDelegate OnFrame; |
46 | 44 | ||
47 | public delegate void ClientMovement(ScenePresence client); | 45 | public delegate void ClientMovement(ScenePresence client); |
48 | 46 | ||
49 | /// <summary> | 47 | public event ClientMovement OnClientMovement; |
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); | ||
54 | |||
55 | public delegate void LandBuy(Object sender, LandBuyArgs e); | ||
56 | |||
57 | public delegate void LandObjectAdded(ILandObject newParcel); | ||
58 | |||
59 | public delegate void LandObjectRemoved(LLUUID globalID); | ||
60 | |||
61 | public delegate void MoneyTransferEvent(Object sender, MoneyTransferArgs e); | ||
62 | |||
63 | public delegate void NewGridInstantMessage(GridInstantMessage message); | ||
64 | |||
65 | public delegate void NewInventoryItemUploadComplete(LLUUID avatarID, LLUUID assetID, string name, int userlevel); | ||
66 | |||
67 | public delegate void NewRezScript(uint localID, LLUUID itemID, string script); | ||
68 | 48 | ||
69 | public delegate void ObjectDeGrabDelegate(uint localID, IClientAPI remoteClient); | 49 | public delegate void OnTerrainTickDelegate(); |
70 | 50 | ||
71 | public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient); | 51 | public event OnTerrainTickDelegate OnTerrainTick; |
72 | 52 | ||
73 | public delegate void OnBackupDelegate(IRegionDataStore datastore); | 53 | public delegate void OnBackupDelegate(IRegionDataStore datastore); |
74 | 54 | ||
75 | public delegate void OnFrameDelegate(); | 55 | public event OnBackupDelegate OnBackup; |
76 | 56 | ||
77 | public delegate void OnNewClientDelegate(IClientAPI client); | 57 | public delegate void OnNewClientDelegate(IClientAPI client); |
78 | 58 | ||
79 | public delegate void OnNewPresenceDelegate(ScenePresence presence); | 59 | public event OnNewClientDelegate OnNewClient; |
80 | |||
81 | public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj); | ||
82 | |||
83 | public delegate void OnParcelPrimCountUpdateDelegate(); | ||
84 | 60 | ||
85 | public delegate void OnPermissionErrorDelegate(LLUUID user, string reason); | 61 | public delegate void OnNewPresenceDelegate(ScenePresence presence); |
86 | 62 | ||
87 | public delegate void OnPluginConsoleDelegate(string[] args); | 63 | public event OnNewPresenceDelegate OnNewPresence; |
88 | 64 | ||
89 | public delegate void OnRemovePresenceDelegate(LLUUID agentId); | 65 | public delegate void OnRemovePresenceDelegate(LLUUID agentId); |
90 | 66 | ||
91 | public delegate void OnShutdownDelegate(); | 67 | public event OnRemovePresenceDelegate OnRemovePresence; |
92 | |||
93 | public delegate void OnTerrainTickDelegate(); | ||
94 | |||
95 | /// <summary> | ||
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); | ||
101 | |||
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 | 68 | ||
153 | public event ClientMovement OnClientMovement; | 69 | public delegate void OnParcelPrimCountUpdateDelegate(); |
154 | 70 | ||
155 | public event OnTerrainTickDelegate OnTerrainTick; | 71 | public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate; |
156 | 72 | ||
157 | public event OnBackupDelegate OnBackup; | 73 | public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj); |
158 | 74 | ||
159 | public event OnNewClientDelegate OnNewClient; | 75 | public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; |
160 | 76 | ||
161 | public event OnNewPresenceDelegate OnNewPresence; | 77 | public delegate void OnPluginConsoleDelegate(string[] args); |
162 | 78 | ||
163 | public event OnRemovePresenceDelegate OnRemovePresence; | 79 | public event OnPluginConsoleDelegate OnPluginConsole; |
164 | 80 | ||
165 | public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate; | 81 | public delegate void OnShutdownDelegate(); |
166 | 82 | ||
167 | public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; | 83 | public event OnShutdownDelegate OnShutdown; |
168 | 84 | ||
169 | public event OnPluginConsoleDelegate OnPluginConsole; | 85 | public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient); |
86 | public delegate void ObjectDeGrabDelegate(uint localID, IClientAPI remoteClient); | ||
170 | 87 | ||
171 | public event OnShutdownDelegate OnShutdown; | 88 | public delegate void OnPermissionErrorDelegate(LLUUID user, string reason); |
172 | 89 | ||
173 | public event ObjectGrabDelegate OnObjectGrab; | 90 | public event ObjectGrabDelegate OnObjectGrab; |
174 | public event ObjectDeGrabDelegate OnObjectDeGrab; | 91 | public event ObjectDeGrabDelegate OnObjectDeGrab; |
175 | 92 | ||
176 | public event OnPermissionErrorDelegate OnPermissionError; | 93 | public event OnPermissionErrorDelegate OnPermissionError; |
177 | 94 | ||
95 | public delegate void NewRezScript(uint localID, LLUUID itemID, string script); | ||
96 | |||
178 | public event NewRezScript OnRezScript; | 97 | public event NewRezScript OnRezScript; |
179 | 98 | ||
99 | public delegate void RemoveScript(uint localID, LLUUID itemID); | ||
100 | |||
180 | public event RemoveScript OnRemoveScript; | 101 | public event RemoveScript OnRemoveScript; |
181 | 102 | ||
103 | public delegate bool SceneGroupMoved(LLUUID groupID, LLVector3 delta); | ||
104 | |||
182 | public event SceneGroupMoved OnSceneGroupMove; | 105 | public event SceneGroupMoved OnSceneGroupMove; |
183 | 106 | ||
107 | public delegate void SceneGroupGrabed(LLUUID groupID, LLVector3 offset, LLUUID userID); | ||
108 | |||
184 | public event SceneGroupGrabed OnSceneGroupGrab; | 109 | public event SceneGroupGrabed OnSceneGroupGrab; |
185 | 110 | ||
111 | public delegate void LandObjectAdded(ILandObject newParcel); | ||
112 | |||
186 | public event LandObjectAdded OnLandObjectAdded; | 113 | public event LandObjectAdded OnLandObjectAdded; |
187 | 114 | ||
115 | public delegate void LandObjectRemoved(LLUUID globalID); | ||
116 | |||
188 | public event LandObjectRemoved OnLandObjectRemoved; | 117 | public event LandObjectRemoved OnLandObjectRemoved; |
189 | 118 | ||
119 | public delegate void AvatarEnteringNewParcel(ScenePresence avatar, int localLandID, LLUUID regionID); | ||
120 | |||
190 | public event AvatarEnteringNewParcel OnAvatarEnteringNewParcel; | 121 | public event AvatarEnteringNewParcel OnAvatarEnteringNewParcel; |
191 | 122 | ||
192 | 123 | ||
124 | public delegate void NewGridInstantMessage(GridInstantMessage message); | ||
125 | |||
193 | public event NewGridInstantMessage OnGridInstantMessageToIMModule; | 126 | public event NewGridInstantMessage OnGridInstantMessageToIMModule; |
194 | 127 | ||
195 | public event NewGridInstantMessage OnGridInstantMessageToFriendsModule; | 128 | public event NewGridInstantMessage OnGridInstantMessageToFriendsModule; |
196 | 129 | ||
197 | public event NewGridInstantMessage OnGridInstantMessageToGroupsModule; | 130 | public event NewGridInstantMessage OnGridInstantMessageToGroupsModule; |
198 | 131 | ||
132 | public delegate void ClientClosed(LLUUID clientID); | ||
133 | |||
199 | public event ClientClosed OnClientClosed; | 134 | public event ClientClosed OnClientClosed; |
200 | 135 | ||
136 | public delegate void ScriptChangedEvent(uint localID, uint change); | ||
137 | |||
201 | public event ScriptChangedEvent OnScriptChangedEvent; | 138 | public event ScriptChangedEvent OnScriptChangedEvent; |
202 | 139 | ||
140 | public delegate void ScriptAtTargetEvent(uint localID, uint handle, LLVector3 targetpos, LLVector3 atpos); | ||
141 | |||
203 | public event ScriptAtTargetEvent OnScriptAtTargetEvent; | 142 | public event ScriptAtTargetEvent OnScriptAtTargetEvent; |
204 | 143 | ||
144 | public delegate void ScriptNotAtTargetEvent(uint localID); | ||
145 | |||
205 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; | 146 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; |
206 | 147 | ||
207 | public event OnNewPresenceDelegate OnMakeChildAgent; | 148 | public event OnNewPresenceDelegate OnMakeChildAgent; |
208 | 149 | ||
150 | public delegate void NewInventoryItemUploadComplete(LLUUID avatarID, LLUUID assetID, string name, int userlevel); | ||
151 | |||
209 | public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete; | 152 | public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete; |
210 | 153 | ||
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); | ||
211 | public event RegisterCapsEvent OnRegisterCaps; | 160 | public event RegisterCapsEvent OnRegisterCaps; |
212 | 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); | ||
213 | public event DeregisterCapsEvent OnDeregisterCaps; | 166 | public event DeregisterCapsEvent OnDeregisterCaps; |
214 | 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 | |||
228 | public delegate void LandBuy(Object sender, LandBuyArgs e); | ||
229 | |||
215 | public event MoneyTransferEvent OnMoneyTransfer; | 230 | public event MoneyTransferEvent OnMoneyTransfer; |
216 | public event LandBuy OnLandBuy; | 231 | public event LandBuy OnLandBuy; |
217 | public event LandBuy OnValidateLandBuy; | 232 | public event LandBuy OnValidateLandBuy; |
218 | 233 | ||
219 | /* Designated Event Deletage Instances */ | 234 | /* Designated Event Deletage Instances */ |
220 | 235 | ||
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 | |||
221 | public void TriggerOnScriptChangedEvent(uint localID, uint change) | 271 | public void TriggerOnScriptChangedEvent(uint localID, uint change) |
222 | { | 272 | { |
223 | handlerScriptChangedEvent = OnScriptChangedEvent; | 273 | handlerScriptChangedEvent = OnScriptChangedEvent; |
@@ -293,7 +343,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
293 | if (handlerParcelPrimCountUpdate != null) | 343 | if (handlerParcelPrimCountUpdate != null) |
294 | { | 344 | { |
295 | handlerParcelPrimCountUpdate(); | 345 | handlerParcelPrimCountUpdate(); |
296 | } | 346 | } |
297 | } | 347 | } |
298 | 348 | ||
299 | public void TriggerMoneyTransfer(Object sender, MoneyTransferArgs e) | 349 | public void TriggerMoneyTransfer(Object sender, MoneyTransferArgs e) |
@@ -442,6 +492,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
442 | { | 492 | { |
443 | handlerGridInstantMessageToFriends(message); | 493 | handlerGridInstantMessageToFriends(message); |
444 | } | 494 | } |
495 | |||
445 | } | 496 | } |
446 | } | 497 | } |
447 | 498 | ||
@@ -463,7 +514,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
463 | } | 514 | } |
464 | } | 515 | } |
465 | 516 | ||
466 | public void TriggerOnRegisterCaps(LLUUID agentID, Caps caps) | 517 | public void TriggerOnRegisterCaps(LLUUID agentID, Caps caps) |
467 | { | 518 | { |
468 | handlerRegisterCaps = OnRegisterCaps; | 519 | handlerRegisterCaps = OnRegisterCaps; |
469 | if (handlerRegisterCaps != null) | 520 | if (handlerRegisterCaps != null) |
@@ -472,7 +523,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
472 | } | 523 | } |
473 | } | 524 | } |
474 | 525 | ||
475 | public void TriggerOnDeregisterCaps(LLUUID agentID, Caps caps) | 526 | public void TriggerOnDeregisterCaps(LLUUID agentID, Caps caps) |
476 | { | 527 | { |
477 | handlerDeregisterCaps = OnDeregisterCaps; | 528 | handlerDeregisterCaps = OnDeregisterCaps; |
478 | if (handlerDeregisterCaps != null) | 529 | if (handlerDeregisterCaps != null) |
@@ -489,8 +540,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
489 | handlerNewInventoryItemUpdateComplete(agentID, AssetID, AssetName, userlevel); | 540 | handlerNewInventoryItemUpdateComplete(agentID, AssetID, AssetName, userlevel); |
490 | } | 541 | } |
491 | } | 542 | } |
492 | 543 | public void TriggerLandBuy (Object sender, LandBuyArgs e) | |
493 | public void TriggerLandBuy(Object sender, LandBuyArgs e) | ||
494 | { | 544 | { |
495 | handlerLandBuy = OnLandBuy; | 545 | handlerLandBuy = OnLandBuy; |
496 | if (handlerLandBuy != null) | 546 | if (handlerLandBuy != null) |
@@ -498,7 +548,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
498 | handlerLandBuy(sender, e); | 548 | handlerLandBuy(sender, e); |
499 | } | 549 | } |
500 | } | 550 | } |
501 | |||
502 | public void TriggerValidateLandBuy(Object sender, LandBuyArgs e) | 551 | public void TriggerValidateLandBuy(Object sender, LandBuyArgs e) |
503 | { | 552 | { |
504 | handlerValidateLandBuy = OnValidateLandBuy; | 553 | handlerValidateLandBuy = OnValidateLandBuy; |
@@ -507,7 +556,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
507 | handlerValidateLandBuy(sender, e); | 556 | handlerValidateLandBuy(sender, e); |
508 | } | 557 | } |
509 | } | 558 | } |
510 | 559 | ||
511 | public void TriggerAtTargetEvent(uint localID, uint handle, LLVector3 targetpos, LLVector3 currentpos) | 560 | public void TriggerAtTargetEvent(uint localID, uint handle, LLVector3 targetpos, LLVector3 currentpos) |
512 | { | 561 | { |
513 | handlerScriptAtTargetEvent = OnScriptAtTargetEvent; | 562 | handlerScriptAtTargetEvent = OnScriptAtTargetEvent; |
@@ -525,67 +574,5 @@ namespace OpenSim.Region.Environment.Scenes | |||
525 | handlerScriptNotAtTargetEvent(localID); | 574 | handlerScriptNotAtTargetEvent(localID); |
526 | } | 575 | } |
527 | } | 576 | } |
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 | ||
590 | } | 577 | } |
591 | } \ No newline at end of file | 578 | } |