aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorCharles Krinke2008-03-02 22:28:48 +0000
committerCharles Krinke2008-03-02 22:28:48 +0000
commit7794fc3766a71f6c708b53674064f69279434d1e (patch)
tree0a0f8ec8f81f2afa68dfaaa8450c08f0b203d77c /OpenSim/Region/Environment
parentThank you kindly, Ahzzmandius for adding (diff)
downloadopensim-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/InnerScene.cs8
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneBase.cs6
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs64
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneEvents.cs72
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs8
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs8
-rw-r--r--OpenSim/Region/Environment/Scenes/SimStatsReporter.cs8
7 files changed, 87 insertions, 87 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index fea6b2b..860f5fb 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -47,7 +47,7 @@ namespace OpenSim.Region.Environment.Scenes
47 #region Events 47 #region Events
48 48
49 public event PhysicsCrash UnRecoverableError; 49 public event PhysicsCrash UnRecoverableError;
50 private PhysicsCrash handler001 = null; 50 private PhysicsCrash handlerPhysicsCrash = null;
51 51
52 #endregion 52 #endregion
53 53
@@ -716,10 +716,10 @@ namespace OpenSim.Region.Environment.Scenes
716 716
717 public void physicsBasedCrash() 717 public void physicsBasedCrash()
718 { 718 {
719 handler001 = UnRecoverableError; 719 handlerPhysicsCrash = UnRecoverableError;
720 if (handler001 != null) 720 if (handlerPhysicsCrash != null)
721 { 721 {
722 handler001(); 722 handlerPhysicsCrash();
723 } 723 }
724 } 724 }
725 725
diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs
index 3371912..3f7edfb 100644
--- a/OpenSim/Region/Environment/Scenes/SceneBase.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs
@@ -160,9 +160,9 @@ namespace OpenSim.Region.Environment.Scenes
160 public virtual void Restart(int seconds) 160 public virtual void Restart(int seconds)
161 { 161 {
162 m_log.Error("[REGION]: passing Restart Message up the namespace"); 162 m_log.Error("[REGION]: passing Restart Message up the namespace");
163 restart handler001 = OnRestart; 163 restart handlerPhysicsCrash = OnRestart;
164 if (handler001 != null) 164 if (handlerPhysicsCrash != null)
165 handler001(RegionInfo); 165 handlerPhysicsCrash(RegionInfo);
166 } 166 }
167 167
168 public virtual bool PresenceChildStatus(LLUUID avatarID) 168 public virtual bool PresenceChildStatus(LLUUID avatarID)
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
index 8678f7a..75e3cfd 100644
--- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
@@ -58,14 +58,14 @@ namespace OpenSim.Region.Environment.Scenes
58 public event ChildAgentUpdate OnChildAgentUpdate; 58 public event ChildAgentUpdate OnChildAgentUpdate;
59 public event RemoveKnownRegionsFromAvatarList OnRemoveKnownRegionFromAvatar; 59 public event RemoveKnownRegionsFromAvatarList OnRemoveKnownRegionFromAvatar;
60 60
61 private AgentCrossing handler001 = null; // OnAvatarCrossingIntoRegion; 61 private AgentCrossing handlerAvatarCrossingIntoRegion = null; // OnAvatarCrossingIntoRegion;
62 private ExpectUserDelegate handler002 = null; // OnExpectUser; 62 private ExpectUserDelegate handlerExpectUser = null; // OnExpectUser;
63 private ExpectPrimDelegate handler003 = null; // OnExpectPrim; 63 private ExpectPrimDelegate handlerExpectPrim = null; // OnExpectPrim;
64 private CloseAgentConnection handler004 = null; // OnCloseAgentConnection; 64 private CloseAgentConnection handlerCloseAgentConnection = null; // OnCloseAgentConnection;
65 private PrimCrossing handler005 = null; // OnPrimCrossingIntoRegion; 65 private PrimCrossing handlerPrimCrossingIntoRegion = null; // OnPrimCrossingIntoRegion;
66 private RegionUp handler006 = null; // OnRegionUp; 66 private RegionUp handlerRegionUp = null; // OnRegionUp;
67 private ChildAgentUpdate handler007 = null; // OnChildAgentUpdate; 67 private ChildAgentUpdate handlerChildAgentUpdate = null; // OnChildAgentUpdate;
68 private RemoveKnownRegionsFromAvatarList handler008 = null; // OnRemoveKnownRegionFromAvatar; 68 private RemoveKnownRegionsFromAvatarList handlerRemoveKnownRegionFromAvatar = null; // OnRemoveKnownRegionFromAvatar;
69 69
70 public KillObjectDelegate KillObject; 70 public KillObjectDelegate KillObject;
71 public string _debugRegionName = String.Empty; 71 public string _debugRegionName = String.Empty;
@@ -132,30 +132,30 @@ namespace OpenSim.Region.Environment.Scenes
132 /// 132 ///
133 protected void NewUserConnection(ulong regionHandle, AgentCircuitData agent) 133 protected void NewUserConnection(ulong regionHandle, AgentCircuitData agent)
134 { 134 {
135 handler002 = OnExpectUser; 135 handlerExpectUser = OnExpectUser;
136 if (handler002 != null) 136 if (handlerExpectUser != null)
137 { 137 {
138 //m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: OnExpectUser Fired for User:" + agent.firstname + " " + agent.lastname); 138 //m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: OnExpectUser Fired for User:" + agent.firstname + " " + agent.lastname);
139 handler002(regionHandle, agent); 139 handlerExpectUser(regionHandle, agent);
140 } 140 }
141 } 141 }
142 142
143 protected bool newRegionUp(RegionInfo region) 143 protected bool newRegionUp(RegionInfo region)
144 { 144 {
145 handler006 = OnRegionUp; 145 handlerRegionUp = OnRegionUp;
146 if (handler006 != null) 146 if (handlerRegionUp != null)
147 { 147 {
148 //m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: newRegionUp Fired for User:" + region.RegionName); 148 //m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: newRegionUp Fired for User:" + region.RegionName);
149 handler006(region); 149 handlerRegionUp(region);
150 } 150 }
151 return true; 151 return true;
152 } 152 }
153 153
154 protected bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData) 154 protected bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
155 { 155 {
156 handler007 = OnChildAgentUpdate; 156 handlerChildAgentUpdate = OnChildAgentUpdate;
157 if (handler007 != null) 157 if (handlerChildAgentUpdate != null)
158 handler007(regionHandle, cAgentData); 158 handlerChildAgentUpdate(regionHandle, cAgentData);
159 159
160 160
161 return true; 161 return true;
@@ -163,39 +163,39 @@ namespace OpenSim.Region.Environment.Scenes
163 163
164 protected void AgentCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying) 164 protected void AgentCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
165 { 165 {
166 handler001 = OnAvatarCrossingIntoRegion; 166 handlerAvatarCrossingIntoRegion = OnAvatarCrossingIntoRegion;
167 if (handler001 != null) 167 if (handlerAvatarCrossingIntoRegion != null)
168 { 168 {
169 handler001(regionHandle, agentID, position, isFlying); 169 handlerAvatarCrossingIntoRegion(regionHandle, agentID, position, isFlying);
170 } 170 }
171 } 171 }
172 172
173 protected void IncomingPrimCrossing(ulong regionHandle, LLUUID primID, String objXMLData) 173 protected void IncomingPrimCrossing(ulong regionHandle, LLUUID primID, String objXMLData)
174 { 174 {
175 handler003 = OnExpectPrim; 175 handlerExpectPrim = OnExpectPrim;
176 if (handler003 != null) 176 if (handlerExpectPrim != null)
177 { 177 {
178 handler003(regionHandle, primID, objXMLData); 178 handlerExpectPrim(regionHandle, primID, objXMLData);
179 } 179 }
180 180
181 } 181 }
182 182
183 protected void PrimCrossing(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical) 183 protected void PrimCrossing(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical)
184 { 184 {
185 handler005 = OnPrimCrossingIntoRegion; 185 handlerPrimCrossingIntoRegion = OnPrimCrossingIntoRegion;
186 if (handler005 != null) 186 if (handlerPrimCrossingIntoRegion != null)
187 { 187 {
188 handler005(regionHandle, primID, position, isPhysical); 188 handlerPrimCrossingIntoRegion(regionHandle, primID, position, isPhysical);
189 } 189 }
190 } 190 }
191 191
192 protected bool CloseConnection(ulong regionHandle, LLUUID agentID) 192 protected bool CloseConnection(ulong regionHandle, LLUUID agentID)
193 { 193 {
194 m_log.Info("[INTERREGION]: Incoming Agent Close Request for agent: " + agentID.ToString()); 194 m_log.Info("[INTERREGION]: Incoming Agent Close Request for agent: " + agentID.ToString());
195 handler004 = OnCloseAgentConnection; 195 handlerCloseAgentConnection = OnCloseAgentConnection;
196 if (handler004 != null) 196 if (handlerCloseAgentConnection != null)
197 { 197 {
198 return handler004(regionHandle, agentID); 198 return handlerCloseAgentConnection(regionHandle, agentID);
199 } 199 }
200 return false; 200 return false;
201 } 201 }
@@ -437,10 +437,10 @@ namespace OpenSim.Region.Environment.Scenes
437 // We remove the list of known regions from the agent's known region list through an event 437 // We remove the list of known regions from the agent's known region list through an event
438 // to scene, because, if an agent logged of, it's likely that there will be no scene presence 438 // to scene, because, if an agent logged of, it's likely that there will be no scene presence
439 // by the time we get to this part of the method. 439 // by the time we get to this part of the method.
440 handler008 = OnRemoveKnownRegionFromAvatar; 440 handlerRemoveKnownRegionFromAvatar = OnRemoveKnownRegionFromAvatar;
441 if (handler008 != null) 441 if (handlerRemoveKnownRegionFromAvatar != null)
442 { 442 {
443 handler008(agentID, regionlst); 443 handlerRemoveKnownRegionFromAvatar(agentID, regionlst);
444 } 444 }
445 } 445 }
446 446
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
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 713c3ba..4cc130e 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -54,7 +54,7 @@ namespace OpenSim.Region.Environment.Scenes
54 protected ulong m_regionHandle; 54 protected ulong m_regionHandle;
55 55
56 public event PrimCountTaintedDelegate OnPrimCountTainted; 56 public event PrimCountTaintedDelegate OnPrimCountTainted;
57 private PrimCountTaintedDelegate handler001 = null; 57 private PrimCountTaintedDelegate handlerPrimCountTainted = null;
58 58
59 /// <summary> 59 /// <summary>
60 /// Signal whether the non-inventory attributes of any prims in the group have changed 60 /// Signal whether the non-inventory attributes of any prims in the group have changed
@@ -1534,10 +1534,10 @@ namespace OpenSim.Region.Environment.Scenes
1534 /// </summary> 1534 /// </summary>
1535 public void TriggerTainted() 1535 public void TriggerTainted()
1536 { 1536 {
1537 handler001 = OnPrimCountTainted; 1537 handlerPrimCountTainted = OnPrimCountTainted;
1538 if (handler001 != null) 1538 if (handlerPrimCountTainted != null)
1539 { 1539 {
1540 handler001(); 1540 handlerPrimCountTainted();
1541 } 1541 }
1542 } 1542 }
1543 1543
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index ef23432..2c201ba 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -116,7 +116,7 @@ namespace OpenSim.Region.Environment.Scenes
116 private readonly List<ulong> m_knownChildRegions = new List<ulong>(); 116 private readonly List<ulong> m_knownChildRegions = new List<ulong>();
117 //neighbouring regions we have enabled a child agent in 117 //neighbouring regions we have enabled a child agent in
118 118
119 private SignificantClientMovement handler001 = null; //OnSignificantClientMovement; 119 private SignificantClientMovement handlerSignificantClientMovement = null; //OnSignificantClientMovement;
120 120
121 121
122 /// <summary> 122 /// <summary>
@@ -1484,10 +1484,10 @@ namespace OpenSim.Region.Environment.Scenes
1484 if (Util.GetDistanceTo(AbsolutePosition, posLastSignificantMove) > 0.5) 1484 if (Util.GetDistanceTo(AbsolutePosition, posLastSignificantMove) > 0.5)
1485 { 1485 {
1486 posLastSignificantMove = AbsolutePosition; 1486 posLastSignificantMove = AbsolutePosition;
1487 handler001 = OnSignificantClientMovement; 1487 handlerSignificantClientMovement = OnSignificantClientMovement;
1488 if (handler001 != null) 1488 if (handlerSignificantClientMovement != null)
1489 { 1489 {
1490 handler001(m_controllingClient); 1490 handlerSignificantClientMovement(m_controllingClient);
1491 m_scene.NotifyMyCoarseLocationChange(); 1491 m_scene.NotifyMyCoarseLocationChange();
1492 } 1492 }
1493 } 1493 }
diff --git a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs
index d4868f3..382618b 100644
--- a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs
+++ b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs
@@ -39,7 +39,7 @@ namespace OpenSim.Region.Environment.Scenes
39 39
40 public event SendStatResult OnSendStatsResult; 40 public event SendStatResult OnSendStatsResult;
41 41
42 private SendStatResult handler001 = null; 42 private SendStatResult handlerSendStatResult = null;
43 43
44 private enum Stats : uint 44 private enum Stats : uint
45 { 45 {
@@ -247,10 +247,10 @@ namespace OpenSim.Region.Environment.Scenes
247 247
248 statpack.Stat = sb; 248 statpack.Stat = sb;
249 249
250 handler001 = OnSendStatsResult; 250 handlerSendStatResult = OnSendStatsResult;
251 if (handler001 != null) 251 if (handlerSendStatResult != null)
252 { 252 {
253 handler001(statpack); 253 handlerSendStatResult(statpack);
254 } 254 }
255 resetvalues(); 255 resetvalues();
256 m_report.Enabled = true; 256 m_report.Enabled = true;