diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 29 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 1 |
3 files changed, 29 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index 5056f41..7a9c6cf 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs | |||
@@ -58,6 +58,8 @@ namespace OpenSim.Region.ClientStack | |||
58 | public event GenericCall4 OnAddPrim; | 58 | public event GenericCall4 OnAddPrim; |
59 | public event UpdateShape OnUpdatePrimShape; | 59 | public event UpdateShape OnUpdatePrimShape; |
60 | public event ObjectSelect OnObjectSelect; | 60 | public event ObjectSelect OnObjectSelect; |
61 | public event GenericCall7 OnObjectDescription; | ||
62 | public event GenericCall7 OnObjectName; | ||
61 | public event UpdatePrimFlags OnUpdatePrimFlags; | 63 | public event UpdatePrimFlags OnUpdatePrimFlags; |
62 | public event UpdatePrimTexture OnUpdatePrimTexture; | 64 | public event UpdatePrimTexture OnUpdatePrimTexture; |
63 | public event UpdateVector OnUpdatePrimPosition; | 65 | public event UpdateVector OnUpdatePrimPosition; |
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 |
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index 402a3ca..a36eeb0 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -79,6 +79,7 @@ namespace OpenSim.Region.ClientStack | |||
79 | private int cachedtextureserial = 0; | 79 | private int cachedtextureserial = 0; |
80 | private RegionInfo m_regionData; | 80 | private RegionInfo m_regionData; |
81 | protected AuthenticateSessionsBase m_authenticateSessionsHandler; | 81 | protected AuthenticateSessionsBase m_authenticateSessionsHandler; |
82 | private System.Text.Encoding enc = System.Text.Encoding.ASCII; | ||
82 | 83 | ||
83 | public ClientView(EndPoint remoteEP, UseCircuitCodePacket initialcirpack, Dictionary<uint, ClientView> clientThreads, IWorld world, AssetCache assetCache, PacketServer packServer, InventoryCache inventoryCache, AuthenticateSessionsBase authenSessions ) | 84 | public ClientView(EndPoint remoteEP, UseCircuitCodePacket initialcirpack, Dictionary<uint, ClientView> clientThreads, IWorld world, AssetCache assetCache, PacketServer packServer, InventoryCache inventoryCache, AuthenticateSessionsBase authenSessions ) |
84 | { | 85 | { |