diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index 0d90968..75d3f65 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -130,7 +130,7 @@ namespace OpenSim.Region.ClientStack | |||
130 | { | 130 | { |
131 | if (OnModifyTerrain != null) | 131 | if (OnModifyTerrain != null) |
132 | { | 132 | { |
133 | OnModifyTerrain(modify.ModifyBlock.Height, modify.ModifyBlock.Seconds, modify.ModifyBlock.BrushSize, | 133 | OnModifyTerrain(modify.ModifyBlock.Height, modify.ModifyBlock.Seconds, modify.ModifyBlock.BrushSize, |
134 | modify.ModifyBlock.Action, modify.ParcelData[0].North, modify.ParcelData[0].West); | 134 | modify.ModifyBlock.Action, modify.ParcelData[0].North, modify.ParcelData[0].West); |
135 | } | 135 | } |
136 | } | 136 | } |
@@ -167,8 +167,8 @@ namespace OpenSim.Region.ClientStack | |||
167 | case PacketType.AgentUpdate: | 167 | case PacketType.AgentUpdate: |
168 | if (OnAgentUpdate != null) | 168 | if (OnAgentUpdate != null) |
169 | { | 169 | { |
170 | AgentUpdatePacket agenUpdate = (AgentUpdatePacket) Pack; | 170 | AgentUpdatePacket agenUpdate = (AgentUpdatePacket)Pack; |
171 | OnAgentUpdate(this, agenUpdate.AgentData.ControlFlags, agenUpdate.AgentData.BodyRotation ); | 171 | OnAgentUpdate(this, agenUpdate.AgentData.ControlFlags, agenUpdate.AgentData.BodyRotation); |
172 | } | 172 | } |
173 | break; | 173 | break; |
174 | case PacketType.AgentAnimation: | 174 | case PacketType.AgentAnimation: |
@@ -274,6 +274,29 @@ namespace OpenSim.Region.ClientStack | |||
274 | OnDeGrapObject(deGrap.ObjectData.LocalID, this); | 274 | OnDeGrapObject(deGrap.ObjectData.LocalID, this); |
275 | } | 275 | } |
276 | break; | 276 | break; |
277 | case PacketType.ObjectDescription: | ||
278 | ObjectDescriptionPacket objDes = (ObjectDescriptionPacket)Pack; | ||
279 | for (int i = 0; i < objDes.ObjectData.Length; i++) | ||
280 | { | ||
281 | if (OnObjectDescription != null) | ||
282 | { | ||
283 | OnObjectDescription(objDes.ObjectData[i].LocalID, enc.GetString(objDes.ObjectData[i].Description)); | ||
284 | } | ||
285 | } | ||
286 | break; | ||
287 | case PacketType.ObjectName: | ||
288 | ObjectNamePacket objName = (ObjectNamePacket)Pack; | ||
289 | for (int i = 0; i < objName.ObjectData.Length; i++) | ||
290 | { | ||
291 | if (OnObjectName != null) | ||
292 | { | ||
293 | OnObjectName(objName.ObjectData[i].LocalID, enc.GetString(objName.ObjectData[i].Name)); | ||
294 | } | ||
295 | } | ||
296 | break; | ||
297 | case PacketType.ObjectPermissions: | ||
298 | //Console.WriteLine("permissions set " + Pack.ToString()); | ||
299 | break; | ||
277 | #endregion | 300 | #endregion |
278 | 301 | ||
279 | #region Inventory/Asset/Other related packets | 302 | #region Inventory/Asset/Other related packets |