diff options
author | Dr Scofield | 2008-07-25 10:05:50 +0000 |
---|---|---|
committer | Dr Scofield | 2008-07-25 10:05:50 +0000 |
commit | 24e15088ea796afec01a197c6812c1c52e2de324 (patch) | |
tree | 0ecc8cc29d5c0d0297c2f5bc5c36f0d097e07f9d /OpenSim/Region/Environment/Scenes | |
parent | From: awebb (diff) | |
download | opensim-SC-24e15088ea796afec01a197c6812c1c52e2de324.zip opensim-SC-24e15088ea796afec01a197c6812c1c52e2de324.tar.gz opensim-SC-24e15088ea796afec01a197c6812c1c52e2de324.tar.bz2 opensim-SC-24e15088ea796afec01a197c6812c1c52e2de324.tar.xz |
renaming the increasingly ill-named ChatFromViewerArgs to OSChatMessage
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/EventManager.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 20 |
2 files changed, 16 insertions, 12 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs index f3af0d1..2b1adee 100644 --- a/OpenSim/Region/Environment/Scenes/EventManager.cs +++ b/OpenSim/Region/Environment/Scenes/EventManager.cs | |||
@@ -235,13 +235,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
235 | /// from world comes in (chat from viewer is available via | 235 | /// from world comes in (chat from viewer is available via |
236 | /// client.OnChatFromViewer). | 236 | /// client.OnChatFromViewer). |
237 | /// </summary> | 237 | /// </summary> |
238 | public delegate void ChatFromWorldEvent(Object sender, ChatFromViewerArgs chat); | 238 | public delegate void ChatFromWorldEvent(Object sender, OSChatMessage chat); |
239 | public event ChatFromWorldEvent OnChatFromWorld; | 239 | public event ChatFromWorldEvent OnChatFromWorld; |
240 | /// <summary> | 240 | /// <summary> |
241 | /// ChatBroadcastEvent is called via Scene when a broadcast chat message | 241 | /// ChatBroadcastEvent is called via Scene when a broadcast chat message |
242 | /// from world comes in (chat from viewer is available via client.OnChatFromViewer). | 242 | /// from world comes in (chat from viewer is available via client.OnChatFromViewer). |
243 | /// </summary> | 243 | /// </summary> |
244 | public delegate void ChatBroadcastEvent(Object sender, ChatFromViewerArgs chat); | 244 | public delegate void ChatBroadcastEvent(Object sender, OSChatMessage chat); |
245 | public event ChatBroadcastEvent OnChatBroadcast; | 245 | public event ChatBroadcastEvent OnChatBroadcast; |
246 | 246 | ||
247 | public delegate float SunLindenHour(); | 247 | public delegate float SunLindenHour(); |
@@ -760,7 +760,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
760 | } | 760 | } |
761 | } | 761 | } |
762 | 762 | ||
763 | public void TriggerOnChatFromWorld(Object sender, ChatFromViewerArgs chat) | 763 | public void TriggerOnChatFromWorld(Object sender, OSChatMessage chat) |
764 | { | 764 | { |
765 | handlerChatFromWorld = OnChatFromWorld; | 765 | handlerChatFromWorld = OnChatFromWorld; |
766 | if (handlerChatFromWorld != null) | 766 | if (handlerChatFromWorld != null) |
@@ -769,7 +769,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
769 | } | 769 | } |
770 | } | 770 | } |
771 | 771 | ||
772 | public void TriggerOnChatBroadcast(Object sender, ChatFromViewerArgs chat) | 772 | public void TriggerOnChatBroadcast(Object sender, OSChatMessage chat) |
773 | { | 773 | { |
774 | handlerChatBroadcast = OnChatBroadcast; | 774 | handlerChatBroadcast = OnChatBroadcast; |
775 | if (handlerChatBroadcast != null) | 775 | if (handlerChatBroadcast != null) |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index 177d99c..db05430 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |||
@@ -37,7 +37,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
37 | protected void SimChat(byte[] message, ChatTypeEnum type, int channel, LLVector3 fromPos, string fromName, | 37 | protected void SimChat(byte[] message, ChatTypeEnum type, int channel, LLVector3 fromPos, string fromName, |
38 | LLUUID fromID, bool fromAgent, bool broadcast) | 38 | LLUUID fromID, bool fromAgent, bool broadcast) |
39 | { | 39 | { |
40 | ChatFromViewerArgs args = new ChatFromViewerArgs(); | 40 | OSChatMessage args = new OSChatMessage(); |
41 | 41 | ||
42 | args.Message = Helpers.FieldToUTF8String(message); | 42 | args.Message = Helpers.FieldToUTF8String(message); |
43 | args.Channel = channel; | 43 | args.Channel = channel; |
@@ -113,7 +113,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
113 | ((SceneObjectGroup) ent).GetProperties(remoteClient); | 113 | ((SceneObjectGroup) ent).GetProperties(remoteClient); |
114 | ((SceneObjectGroup) ent).IsSelected = true; | 114 | ((SceneObjectGroup) ent).IsSelected = true; |
115 | // A prim is only tainted if it's allowed to be edited by the person clicking it. | 115 | // A prim is only tainted if it's allowed to be edited by the person clicking it. |
116 | if (ExternalChecks.ExternalChecksCanEditObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId) || ExternalChecks.ExternalChecksCanMoveObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId)) | 116 | if (ExternalChecks.ExternalChecksCanEditObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId) |
117 | || ExternalChecks.ExternalChecksCanMoveObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId)) | ||
117 | { | 118 | { |
118 | EventManager.TriggerParcelPrimCountTainted(); | 119 | EventManager.TriggerParcelPrimCountTainted(); |
119 | } | 120 | } |
@@ -156,7 +157,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
156 | { | 157 | { |
157 | ((SceneObjectGroup) ent).IsSelected = false; | 158 | ((SceneObjectGroup) ent).IsSelected = false; |
158 | ((SceneObjectGroup)ent).ScheduleGroupForFullUpdate(); | 159 | ((SceneObjectGroup)ent).ScheduleGroupForFullUpdate(); |
159 | if (ExternalChecks.ExternalChecksCanEditObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId) || ExternalChecks.ExternalChecksCanMoveObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId)) | 160 | if (ExternalChecks.ExternalChecksCanEditObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId) |
161 | || ExternalChecks.ExternalChecksCanMoveObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId)) | ||
160 | { | 162 | { |
161 | EventManager.TriggerParcelPrimCountTainted(); | 163 | EventManager.TriggerParcelPrimCountTainted(); |
162 | break; | 164 | break; |
@@ -166,10 +168,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
166 | } | 168 | } |
167 | } | 169 | } |
168 | 170 | ||
169 | public virtual void ProcessMoneyTransferRequest(LLUUID source, LLUUID destination, int amount, int transactiontype, string description) | 171 | public virtual void ProcessMoneyTransferRequest(LLUUID source, LLUUID destination, int amount, |
172 | int transactiontype, string description) | ||
170 | { | 173 | { |
171 | EventManager.MoneyTransferArgs args = new EventManager.MoneyTransferArgs( | 174 | EventManager.MoneyTransferArgs args = new EventManager.MoneyTransferArgs(source, destination, amount, |
172 | source, destination, amount, transactiontype, description); | 175 | transactiontype, description); |
173 | 176 | ||
174 | EventManager.TriggerMoneyTransfer(this, args); | 177 | EventManager.TriggerMoneyTransfer(this, args); |
175 | } | 178 | } |
@@ -177,8 +180,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
177 | public virtual void ProcessParcelBuy(LLUUID agentId, LLUUID groupId, bool final, bool groupOwned, | 180 | public virtual void ProcessParcelBuy(LLUUID agentId, LLUUID groupId, bool final, bool groupOwned, |
178 | bool removeContribution, int parcelLocalID, int parcelArea, int parcelPrice, bool authenticated) | 181 | bool removeContribution, int parcelLocalID, int parcelArea, int parcelPrice, bool authenticated) |
179 | { | 182 | { |
180 | EventManager.LandBuyArgs args = new EventManager.LandBuyArgs( | 183 | EventManager.LandBuyArgs args = new EventManager.LandBuyArgs(agentId, groupId, final, groupOwned, |
181 | agentId, groupId, final, groupOwned, removeContribution, parcelLocalID, parcelArea, parcelPrice, authenticated); | 184 | removeContribution, parcelLocalID, parcelArea, |
185 | parcelPrice, authenticated); | ||
182 | 186 | ||
183 | // First, allow all validators a stab at it | 187 | // First, allow all validators a stab at it |
184 | m_eventManager.TriggerValidateLandBuy(this, args); | 188 | m_eventManager.TriggerValidateLandBuy(this, args); |