diff options
Diffstat (limited to '')
10 files changed, 155 insertions, 155 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index eb50042..d032a2e 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -122,15 +122,15 @@ namespace OpenSim.Region.ClientStack | |||
122 | /* Instantiated Designated Event Delegates */ | 122 | /* Instantiated Designated Event Delegates */ |
123 | //- used so we don't create new objects for each incoming packet and then toss it out later */ | 123 | //- used so we don't create new objects for each incoming packet and then toss it out later */ |
124 | 124 | ||
125 | private RequestAvatarProperties handler001 = null; //OnRequestAvatarProperties; | 125 | private RequestAvatarProperties handlerRequestAvatarProperties = null; //OnRequestAvatarProperties; |
126 | private ChatFromViewer handler002 = null; //OnChatFromViewer; | 126 | private ChatFromViewer handlerChatFromViewer = null; //OnChatFromViewer; |
127 | private ChatFromViewer handler003 = null; //OnChatFromViewer; | 127 | private ChatFromViewer handlerChatFromViewer2 = null; //OnChatFromViewer; |
128 | private ImprovedInstantMessage handler004 = null; //OnInstantMessage; | 128 | private ImprovedInstantMessage handlerInstantMessage = null; //OnInstantMessage; |
129 | private FriendActionDelegate handler005 = null; //OnApproveFriendRequest; | 129 | private FriendActionDelegate handlerApproveFriendRequest = null; //OnApproveFriendRequest; |
130 | private FriendshipTermination handler006 = null; //OnTerminateFriendship; | 130 | private FriendshipTermination handlerTerminateFriendship = null; //OnTerminateFriendship; |
131 | private RezObject handler007 = null; //OnRezObject; | 131 | private RezObject handlerRezObject = null; //OnRezObject; |
132 | private GenericCall4 handler008 = null; //OnDeRezObject; | 132 | private GenericCall4 handlerDeRezObject = null; //OnDeRezObject; |
133 | private ModifyTerrain handler009 = null; | 133 | private ModifyTerrain handlerModifyTerrain = null; |
134 | private Action<IClientAPI> handlerRegionHandShakeReply = null; //OnRegionHandShakeReply; | 134 | private Action<IClientAPI> handlerRegionHandShakeReply = null; //OnRegionHandShakeReply; |
135 | private GenericCall2 handlerRequestWearables = null; //OnRequestWearables; | 135 | private GenericCall2 handlerRequestWearables = null; //OnRequestWearables; |
136 | private Action<IClientAPI> handlerRequestAvatarsData = null; //OnRequestAvatarsData; | 136 | private Action<IClientAPI> handlerRequestAvatarsData = null; //OnRequestAvatarsData; |
@@ -2866,10 +2866,10 @@ namespace OpenSim.Region.ClientStack | |||
2866 | case PacketType.AvatarPropertiesRequest: | 2866 | case PacketType.AvatarPropertiesRequest: |
2867 | AvatarPropertiesRequestPacket avatarProperties = (AvatarPropertiesRequestPacket)Pack; | 2867 | AvatarPropertiesRequestPacket avatarProperties = (AvatarPropertiesRequestPacket)Pack; |
2868 | 2868 | ||
2869 | handler001 = OnRequestAvatarProperties; | 2869 | handlerRequestAvatarProperties = OnRequestAvatarProperties; |
2870 | if (handler001 != null) | 2870 | if (handlerRequestAvatarProperties != null) |
2871 | { | 2871 | { |
2872 | handler001(this, avatarProperties.AgentData.AvatarID); | 2872 | handlerRequestAvatarProperties(this, avatarProperties.AgentData.AvatarID); |
2873 | } | 2873 | } |
2874 | 2874 | ||
2875 | 2875 | ||
@@ -2897,9 +2897,9 @@ namespace OpenSim.Region.ClientStack | |||
2897 | args.Scene = Scene; | 2897 | args.Scene = Scene; |
2898 | args.Sender = this; | 2898 | args.Sender = this; |
2899 | 2899 | ||
2900 | handler002 = OnChatFromViewer; | 2900 | handlerChatFromViewer = OnChatFromViewer; |
2901 | if (handler002 != null) | 2901 | if (handlerChatFromViewer != null) |
2902 | handler002(this, args); | 2902 | handlerChatFromViewer(this, args); |
2903 | } | 2903 | } |
2904 | 2904 | ||
2905 | 2905 | ||
@@ -2919,9 +2919,9 @@ namespace OpenSim.Region.ClientStack | |||
2919 | args.Position = new LLVector3(); | 2919 | args.Position = new LLVector3(); |
2920 | args.Scene = Scene; | 2920 | args.Scene = Scene; |
2921 | args.Sender = this; | 2921 | args.Sender = this; |
2922 | handler003 = OnChatFromViewer; | 2922 | handlerChatFromViewer2 = OnChatFromViewer; |
2923 | if (handler003 != null) | 2923 | if (handlerChatFromViewer2 != null) |
2924 | handler003(this, args); | 2924 | handlerChatFromViewer2(this, args); |
2925 | } | 2925 | } |
2926 | 2926 | ||
2927 | break; | 2927 | break; |
@@ -2929,11 +2929,11 @@ namespace OpenSim.Region.ClientStack | |||
2929 | ImprovedInstantMessagePacket msgpack = (ImprovedInstantMessagePacket)Pack; | 2929 | ImprovedInstantMessagePacket msgpack = (ImprovedInstantMessagePacket)Pack; |
2930 | string IMfromName = Util.FieldToString(msgpack.MessageBlock.FromAgentName); | 2930 | string IMfromName = Util.FieldToString(msgpack.MessageBlock.FromAgentName); |
2931 | string IMmessage = Helpers.FieldToUTF8String(msgpack.MessageBlock.Message); | 2931 | string IMmessage = Helpers.FieldToUTF8String(msgpack.MessageBlock.Message); |
2932 | handler004 = OnInstantMessage; | 2932 | handlerInstantMessage = OnInstantMessage; |
2933 | 2933 | ||
2934 | if (handler004 != null) | 2934 | if (handlerInstantMessage != null) |
2935 | { | 2935 | { |
2936 | handler004(this, msgpack.AgentData.AgentID, msgpack.AgentData.SessionID, | 2936 | handlerInstantMessage(this, msgpack.AgentData.AgentID, msgpack.AgentData.SessionID, |
2937 | msgpack.MessageBlock.ToAgentID, msgpack.MessageBlock.ID, | 2937 | msgpack.MessageBlock.ToAgentID, msgpack.MessageBlock.ID, |
2938 | msgpack.MessageBlock.Timestamp, IMfromName, IMmessage, | 2938 | msgpack.MessageBlock.Timestamp, IMfromName, IMmessage, |
2939 | msgpack.MessageBlock.Dialog, msgpack.MessageBlock.FromGroup, | 2939 | msgpack.MessageBlock.Dialog, msgpack.MessageBlock.FromGroup, |
@@ -2959,10 +2959,10 @@ namespace OpenSim.Region.ClientStack | |||
2959 | callingCardFolders.Add(afriendpack.FolderData[fi].FolderID); | 2959 | callingCardFolders.Add(afriendpack.FolderData[fi].FolderID); |
2960 | } | 2960 | } |
2961 | 2961 | ||
2962 | handler005 = OnApproveFriendRequest; | 2962 | handlerApproveFriendRequest = OnApproveFriendRequest; |
2963 | if (handler005 != null) | 2963 | if (handlerApproveFriendRequest != null) |
2964 | { | 2964 | { |
2965 | handler005(this, agentID, transactionID, callingCardFolders); | 2965 | handlerApproveFriendRequest(this, agentID, transactionID, callingCardFolders); |
2966 | } | 2966 | } |
2967 | 2967 | ||
2968 | 2968 | ||
@@ -2974,10 +2974,10 @@ namespace OpenSim.Region.ClientStack | |||
2974 | LLUUID listOwnerAgentID = tfriendpack.AgentData.AgentID; | 2974 | LLUUID listOwnerAgentID = tfriendpack.AgentData.AgentID; |
2975 | LLUUID exFriendID = tfriendpack.ExBlock.OtherID; | 2975 | LLUUID exFriendID = tfriendpack.ExBlock.OtherID; |
2976 | 2976 | ||
2977 | handler006 = OnTerminateFriendship; | 2977 | handlerTerminateFriendship = OnTerminateFriendship; |
2978 | if (handler006 != null) | 2978 | if (handlerTerminateFriendship != null) |
2979 | { | 2979 | { |
2980 | handler006(this, listOwnerAgentID, exFriendID); | 2980 | handlerTerminateFriendship(this, listOwnerAgentID, exFriendID); |
2981 | } | 2981 | } |
2982 | 2982 | ||
2983 | 2983 | ||
@@ -2985,8 +2985,8 @@ namespace OpenSim.Region.ClientStack | |||
2985 | case PacketType.RezObject: | 2985 | case PacketType.RezObject: |
2986 | RezObjectPacket rezPacket = (RezObjectPacket)Pack; | 2986 | RezObjectPacket rezPacket = (RezObjectPacket)Pack; |
2987 | 2987 | ||
2988 | handler007 = OnRezObject; | 2988 | handlerRezObject = OnRezObject; |
2989 | if (handler007 != null) | 2989 | if (handlerRezObject != null) |
2990 | { | 2990 | { |
2991 | //rezPacket.RezData.BypassRaycast; | 2991 | //rezPacket.RezData.BypassRaycast; |
2992 | //rezPacket.RezData.RayEnd; | 2992 | //rezPacket.RezData.RayEnd; |
@@ -2998,7 +2998,7 @@ namespace OpenSim.Region.ClientStack | |||
2998 | //rezPacket.RezData.FromTaskID; | 2998 | //rezPacket.RezData.FromTaskID; |
2999 | //m_log.Info("[REZData]: " + rezPacket.ToString()); | 2999 | //m_log.Info("[REZData]: " + rezPacket.ToString()); |
3000 | 3000 | ||
3001 | handler007(this, rezPacket.InventoryData.ItemID, rezPacket.RezData.RayEnd, | 3001 | handlerRezObject(this, rezPacket.InventoryData.ItemID, rezPacket.RezData.RayEnd, |
3002 | rezPacket.RezData.RayStart, rezPacket.RezData.RayTargetID, | 3002 | rezPacket.RezData.RayStart, rezPacket.RezData.RayTargetID, |
3003 | rezPacket.RezData.BypassRaycast, rezPacket.RezData.RayEndIsIntersection, | 3003 | rezPacket.RezData.BypassRaycast, rezPacket.RezData.RayEndIsIntersection, |
3004 | rezPacket.RezData.EveryoneMask, rezPacket.RezData.GroupMask, | 3004 | rezPacket.RezData.EveryoneMask, rezPacket.RezData.GroupMask, |
@@ -3009,10 +3009,10 @@ namespace OpenSim.Region.ClientStack | |||
3009 | 3009 | ||
3010 | break; | 3010 | break; |
3011 | case PacketType.DeRezObject: | 3011 | case PacketType.DeRezObject: |
3012 | handler008 = OnDeRezObject; | 3012 | handlerDeRezObject = OnDeRezObject; |
3013 | if (handler008 != null) | 3013 | if (handlerDeRezObject != null) |
3014 | { | 3014 | { |
3015 | handler008(Pack, this); | 3015 | handlerDeRezObject(Pack, this); |
3016 | } | 3016 | } |
3017 | 3017 | ||
3018 | break; | 3018 | break; |
@@ -3026,10 +3026,10 @@ namespace OpenSim.Region.ClientStack | |||
3026 | 3026 | ||
3027 | for (int i = 0; i < modify.ParcelData.Length; i++) | 3027 | for (int i = 0; i < modify.ParcelData.Length; i++) |
3028 | { | 3028 | { |
3029 | handler009 = OnModifyTerrain; | 3029 | handlerModifyTerrain = OnModifyTerrain; |
3030 | if (handler009 != null) | 3030 | if (handlerModifyTerrain != null) |
3031 | { | 3031 | { |
3032 | OnModifyTerrain(modify.ModifyBlock.Height, modify.ModifyBlock.Seconds, | 3032 | handlerModifyTerrain(modify.ModifyBlock.Height, modify.ModifyBlock.Seconds, |
3033 | modify.ModifyBlock.BrushSize, | 3033 | modify.ModifyBlock.BrushSize, |
3034 | modify.ModifyBlock.Action, modify.ParcelData[i].North, | 3034 | modify.ModifyBlock.Action, modify.ParcelData[i].North, |
3035 | modify.ParcelData[i].West, modify.ParcelData[i].South, | 3035 | modify.ParcelData[i].West, modify.ParcelData[i].South, |
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index 0e9b3d0..d7b3a58 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs | |||
@@ -55,7 +55,7 @@ namespace OpenSim.Region.Communications.Local | |||
55 | 55 | ||
56 | public event LoginToRegionEvent OnLoginToRegion; | 56 | public event LoginToRegionEvent OnLoginToRegion; |
57 | 57 | ||
58 | private LoginToRegionEvent handler001 = null; // OnLoginToRegion; | 58 | private LoginToRegionEvent handlerLoginToRegion = null; // OnLoginToRegion; |
59 | 59 | ||
60 | public LocalLoginService(UserManagerBase userManager, string welcomeMess, | 60 | public LocalLoginService(UserManagerBase userManager, string welcomeMess, |
61 | CommunicationsLocal parent, NetworkServersInfo serversInfo, | 61 | CommunicationsLocal parent, NetworkServersInfo serversInfo, |
@@ -163,10 +163,10 @@ namespace OpenSim.Region.Communications.Local | |||
163 | _login.StartPos = new LLVector3(128, 128, 70); | 163 | _login.StartPos = new LLVector3(128, 128, 70); |
164 | _login.CapsPath = capsPath; | 164 | _login.CapsPath = capsPath; |
165 | 165 | ||
166 | handler001 = OnLoginToRegion; | 166 | handlerLoginToRegion = OnLoginToRegion; |
167 | if (handler001 != null) | 167 | if (handlerLoginToRegion != null) |
168 | { | 168 | { |
169 | handler001(currentRegion, _login); | 169 | handlerLoginToRegion(currentRegion, _login); |
170 | } | 170 | } |
171 | } | 171 | } |
172 | else | 172 | else |
diff --git a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs index d21852d..2fce37e 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs | |||
@@ -59,13 +59,13 @@ namespace OpenSim.Region.Communications.OGS1 | |||
59 | public event ChildAgentUpdate OnChildAgentUpdate; | 59 | public event ChildAgentUpdate OnChildAgentUpdate; |
60 | public event TellRegionToCloseChildConnection OnTellRegionToCloseChildConnection; | 60 | public event TellRegionToCloseChildConnection OnTellRegionToCloseChildConnection; |
61 | 61 | ||
62 | private InformRegionChild handler001 = null; // OnChildAgent; | 62 | private InformRegionChild handlerChildAgent = null; // OnChildAgent; |
63 | private ExpectArrival handler002 = null; // OnArrival; | 63 | private ExpectArrival handlerArrival = null; // OnArrival; |
64 | private InformRegionPrimGroup handler003 = null; // OnPrimGroupNear; | 64 | private InformRegionPrimGroup handlerPrimGroupNear = null; // OnPrimGroupNear; |
65 | private PrimGroupArrival handler004 = null; // OnPrimGroupArrival; | 65 | private PrimGroupArrival handlerPrimGroupArrival = null; // OnPrimGroupArrival; |
66 | private RegionUp handler005 = null; // OnRegionUp; | 66 | private RegionUp handlerRegionUp = null; // OnRegionUp; |
67 | private ChildAgentUpdate handler006 = null; // OnChildAgentUpdate; | 67 | private ChildAgentUpdate handlerChildAgentUpdate = null; // OnChildAgentUpdate; |
68 | private TellRegionToCloseChildConnection handler007 = null; // OnTellRegionToCloseChildConnection; | 68 | private TellRegionToCloseChildConnection handlerTellRegionToCloseChildConnection = null; // OnTellRegionToCloseChildConnection; |
69 | 69 | ||
70 | 70 | ||
71 | static InterRegionSingleton() | 71 | static InterRegionSingleton() |
@@ -83,70 +83,70 @@ namespace OpenSim.Region.Communications.OGS1 | |||
83 | 83 | ||
84 | public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData) | 84 | public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData) |
85 | { | 85 | { |
86 | handler001 = OnChildAgent; | 86 | handlerChildAgent = OnChildAgent; |
87 | if (handler001 != null) | 87 | if (handlerChildAgent != null) |
88 | { | 88 | { |
89 | return handler001(regionHandle, agentData); | 89 | return handlerChildAgent(regionHandle, agentData); |
90 | } | 90 | } |
91 | return false; | 91 | return false; |
92 | } | 92 | } |
93 | 93 | ||
94 | public bool RegionUp(SearializableRegionInfo sregion, ulong regionhandle) | 94 | public bool RegionUp(SearializableRegionInfo sregion, ulong regionhandle) |
95 | { | 95 | { |
96 | handler005 = OnRegionUp; | 96 | handlerRegionUp = OnRegionUp; |
97 | if (handler005 != null) | 97 | if (handlerRegionUp != null) |
98 | { | 98 | { |
99 | return handler005(sregion, regionhandle); | 99 | return handlerRegionUp(sregion, regionhandle); |
100 | } | 100 | } |
101 | return false; | 101 | return false; |
102 | } | 102 | } |
103 | 103 | ||
104 | public bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentUpdate) | 104 | public bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentUpdate) |
105 | { | 105 | { |
106 | handler006 = OnChildAgentUpdate; | 106 | handlerChildAgentUpdate = OnChildAgentUpdate; |
107 | if (handler006 != null) | 107 | if (handlerChildAgentUpdate != null) |
108 | { | 108 | { |
109 | return handler006(regionHandle, cAgentUpdate); | 109 | return handlerChildAgentUpdate(regionHandle, cAgentUpdate); |
110 | } | 110 | } |
111 | return false; | 111 | return false; |
112 | } | 112 | } |
113 | 113 | ||
114 | public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying) | 114 | public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying) |
115 | { | 115 | { |
116 | handler002 = OnArrival; | 116 | handlerArrival = OnArrival; |
117 | if (handler002 != null) | 117 | if (handlerArrival != null) |
118 | { | 118 | { |
119 | return handler002(regionHandle, agentID, position, isFlying); | 119 | return handlerArrival(regionHandle, agentID, position, isFlying); |
120 | } | 120 | } |
121 | return false; | 121 | return false; |
122 | } | 122 | } |
123 | 123 | ||
124 | public bool InformRegionPrim(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical) | 124 | public bool InformRegionPrim(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical) |
125 | { | 125 | { |
126 | handler003 = OnPrimGroupNear; | 126 | handlerPrimGroupNear = OnPrimGroupNear; |
127 | if (handler003 != null) | 127 | if (handlerPrimGroupNear != null) |
128 | { | 128 | { |
129 | return handler003(regionHandle, primID, position, isPhysical); | 129 | return handlerPrimGroupNear(regionHandle, primID, position, isPhysical); |
130 | } | 130 | } |
131 | return false; | 131 | return false; |
132 | } | 132 | } |
133 | 133 | ||
134 | public bool ExpectPrimCrossing(ulong regionHandle, LLUUID primID, string objData) | 134 | public bool ExpectPrimCrossing(ulong regionHandle, LLUUID primID, string objData) |
135 | { | 135 | { |
136 | handler004 = OnPrimGroupArrival; | 136 | handlerPrimGroupArrival = OnPrimGroupArrival; |
137 | if (handler004 != null) | 137 | if (handlerPrimGroupArrival != null) |
138 | { | 138 | { |
139 | return handler004(regionHandle, primID, objData); | 139 | return handlerPrimGroupArrival(regionHandle, primID, objData); |
140 | } | 140 | } |
141 | return false; | 141 | return false; |
142 | } | 142 | } |
143 | 143 | ||
144 | public bool TellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID) | 144 | public bool TellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID) |
145 | { | 145 | { |
146 | handler007 = OnTellRegionToCloseChildConnection; | 146 | handlerTellRegionToCloseChildConnection = OnTellRegionToCloseChildConnection; |
147 | if (handler007 != null) | 147 | if (handlerTellRegionToCloseChildConnection != null) |
148 | { | 148 | { |
149 | return handler007(regionHandle, agentID); | 149 | return handlerTellRegionToCloseChildConnection(regionHandle, agentID); |
150 | } | 150 | } |
151 | return false; | 151 | return false; |
152 | } | 152 | } |
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; |