diff options
author | Charles Krinke | 2008-03-02 22:28:48 +0000 |
---|---|---|
committer | Charles Krinke | 2008-03-02 22:28:48 +0000 |
commit | 7794fc3766a71f6c708b53674064f69279434d1e (patch) | |
tree | 0a0f8ec8f81f2afa68dfaaa8450c08f0b203d77c /OpenSim/Region/Environment/Scenes/SceneEvents.cs | |
parent | Thank you kindly, Ahzzmandius for adding (diff) | |
download | opensim-SC-7794fc3766a71f6c708b53674064f69279434d1e.zip opensim-SC-7794fc3766a71f6c708b53674064f69279434d1e.tar.gz opensim-SC-7794fc3766a71f6c708b53674064f69279434d1e.tar.bz2 opensim-SC-7794fc3766a71f6c708b53674064f69279434d1e.tar.xz |
Change handler001 through handler009 to more
appropriate names consisten with their use.
All done with all 94 handlers from handler001
through handler094. Hopefully we can move
forward without numbered handlers.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 96b3ccb..ac8f91e 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -164,15 +164,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
164 | 164 | ||
165 | /* Designated Event Deletage Instances */ | 165 | /* Designated Event Deletage Instances */ |
166 | 166 | ||
167 | private ScriptChangedEvent handler001 = null; //OnScriptChangedEvent; | 167 | private ScriptChangedEvent handlerScriptChangedEvent = null; //OnScriptChangedEvent; |
168 | private ClientMovement handler002 = null; //OnClientMovement; | 168 | private ClientMovement handlerClientMovement = null; //OnClientMovement; |
169 | private OnPermissionErrorDelegate handler003 = null; //OnPermissionError; | 169 | private OnPermissionErrorDelegate handlerPermissionError = null; //OnPermissionError; |
170 | private OnPluginConsoleDelegate handler004 = null; //OnPluginConsole; | 170 | private OnPluginConsoleDelegate handlerPluginConsole = null; //OnPluginConsole; |
171 | private OnFrameDelegate handler005 = null; //OnFrame; | 171 | private OnFrameDelegate handlerFrame = null; //OnFrame; |
172 | private OnNewClientDelegate handler006 = null; //OnNewClient; | 172 | private OnNewClientDelegate handlerNewClient = null; //OnNewClient; |
173 | private OnNewPresenceDelegate handler007 = null; //OnNewPresence; | 173 | private OnNewPresenceDelegate handlerNewPresence = null; //OnNewPresence; |
174 | private OnRemovePresenceDelegate handler008 = null; //OnRemovePresence; | 174 | private OnRemovePresenceDelegate handlerRemovePresence = null; //OnRemovePresence; |
175 | private OnBackupDelegate handler009 = null; //OnBackup; | 175 | private OnBackupDelegate handlerBackup = null; //OnBackup; |
176 | private OnParcelPrimCountUpdateDelegate handlerParcelPrimCountUpdate = null; //OnParcelPrimCountUpdate; | 176 | private OnParcelPrimCountUpdateDelegate handlerParcelPrimCountUpdate = null; //OnParcelPrimCountUpdate; |
177 | private MoneyTransferEvent handlerMoneyTransfer = null; //OnMoneyTransfer; | 177 | private MoneyTransferEvent handlerMoneyTransfer = null; //OnMoneyTransfer; |
178 | private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = null; //OnParcelPrimCountAdd; | 178 | private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = null; //OnParcelPrimCountAdd; |
@@ -192,70 +192,70 @@ namespace OpenSim.Region.Environment.Scenes | |||
192 | 192 | ||
193 | public void TriggerOnScriptChangedEvent(uint localID, uint change) | 193 | public void TriggerOnScriptChangedEvent(uint localID, uint change) |
194 | { | 194 | { |
195 | handler001 = OnScriptChangedEvent; | 195 | handlerScriptChangedEvent = OnScriptChangedEvent; |
196 | if (handler001 != null) | 196 | if (handlerScriptChangedEvent != null) |
197 | handler001(localID, change); | 197 | handlerScriptChangedEvent(localID, change); |
198 | } | 198 | } |
199 | 199 | ||
200 | public void TriggerOnClientMovement(ScenePresence avatar) | 200 | public void TriggerOnClientMovement(ScenePresence avatar) |
201 | { | 201 | { |
202 | handler002 = OnClientMovement; | 202 | handlerClientMovement = OnClientMovement; |
203 | if (handler002 != null) | 203 | if (handlerClientMovement != null) |
204 | handler002(avatar); | 204 | handlerClientMovement(avatar); |
205 | } | 205 | } |
206 | 206 | ||
207 | public void TriggerPermissionError(LLUUID user, string reason) | 207 | public void TriggerPermissionError(LLUUID user, string reason) |
208 | { | 208 | { |
209 | handler003 = OnPermissionError; | 209 | handlerPermissionError = OnPermissionError; |
210 | if (handler003 != null) | 210 | if (handlerPermissionError != null) |
211 | handler003(user, reason); | 211 | handlerPermissionError(user, reason); |
212 | } | 212 | } |
213 | 213 | ||
214 | public void TriggerOnPluginConsole(string[] args) | 214 | public void TriggerOnPluginConsole(string[] args) |
215 | { | 215 | { |
216 | handler004 = OnPluginConsole; | 216 | handlerPluginConsole = OnPluginConsole; |
217 | if (handler004 != null) | 217 | if (handlerPluginConsole != null) |
218 | handler004(args); | 218 | handlerPluginConsole(args); |
219 | } | 219 | } |
220 | 220 | ||
221 | public void TriggerOnFrame() | 221 | public void TriggerOnFrame() |
222 | { | 222 | { |
223 | handler005 = OnFrame; | 223 | handlerFrame = OnFrame; |
224 | if (handler005 != null) | 224 | if (handlerFrame != null) |
225 | { | 225 | { |
226 | handler005(); | 226 | handlerFrame(); |
227 | } | 227 | } |
228 | } | 228 | } |
229 | 229 | ||
230 | public void TriggerOnNewClient(IClientAPI client) | 230 | public void TriggerOnNewClient(IClientAPI client) |
231 | { | 231 | { |
232 | handler006 = OnNewClient; | 232 | handlerNewClient = OnNewClient; |
233 | if (handler006 != null) | 233 | if (handlerNewClient != null) |
234 | handler006(client); | 234 | handlerNewClient(client); |
235 | } | 235 | } |
236 | 236 | ||
237 | public void TriggerOnNewPresence(ScenePresence presence) | 237 | public void TriggerOnNewPresence(ScenePresence presence) |
238 | { | 238 | { |
239 | handler007 = OnNewPresence; | 239 | handlerNewPresence = OnNewPresence; |
240 | if (handler007 != null) | 240 | if (handlerNewPresence != null) |
241 | handler007(presence); | 241 | handlerNewPresence(presence); |
242 | } | 242 | } |
243 | 243 | ||
244 | public void TriggerOnRemovePresence(LLUUID agentId) | 244 | public void TriggerOnRemovePresence(LLUUID agentId) |
245 | { | 245 | { |
246 | handler008 = OnRemovePresence; | 246 | handlerRemovePresence = OnRemovePresence; |
247 | if (handler008 != null) | 247 | if (handlerRemovePresence != null) |
248 | { | 248 | { |
249 | handler008(agentId); | 249 | handlerRemovePresence(agentId); |
250 | } | 250 | } |
251 | } | 251 | } |
252 | 252 | ||
253 | public void TriggerOnBackup(IRegionDataStore dstore) | 253 | public void TriggerOnBackup(IRegionDataStore dstore) |
254 | { | 254 | { |
255 | handler009 = OnBackup; | 255 | handlerBackup = OnBackup; |
256 | if (handler009 != null) | 256 | if (handlerBackup != null) |
257 | { | 257 | { |
258 | handler009(dstore); | 258 | handlerBackup(dstore); |
259 | } | 259 | } |
260 | } | 260 | } |
261 | 261 | ||