aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/ClientView.cs
diff options
context:
space:
mode:
authorMW2007-05-21 19:12:18 +0000
committerMW2007-05-21 19:12:18 +0000
commitf96083a903024550243ada885c8edccad7e0eed7 (patch)
treee789d0d973490b0d5fdca86a41bacf319fe80f31 /OpenSim.RegionServer/ClientView.cs
parentMerged the new ODE stuff (diff)
downloadopensim-SC_OLD-f96083a903024550243ada885c8edccad7e0eed7.zip
opensim-SC_OLD-f96083a903024550243ada885c8edccad7e0eed7.tar.gz
opensim-SC_OLD-f96083a903024550243ada885c8edccad7e0eed7.tar.bz2
opensim-SC_OLD-f96083a903024550243ada885c8edccad7e0eed7.tar.xz
More work on adding Events to ClientView (and registering to handle those events in Avatar and World)
Diffstat (limited to '')
-rw-r--r--OpenSim.RegionServer/ClientView.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/ClientView.cs b/OpenSim.RegionServer/ClientView.cs
index a97049d..63bbfab 100644
--- a/OpenSim.RegionServer/ClientView.cs
+++ b/OpenSim.RegionServer/ClientView.cs
@@ -325,6 +325,27 @@ namespace OpenSim
325 325
326 this.OutPacket(reply); 326 this.OutPacket(reply);
327 } 327 }
328
329 public void SendAppearance(AvatarWearable[] wearables)
330 {
331 AgentWearablesUpdatePacket aw = new AgentWearablesUpdatePacket();
332 aw.AgentData.AgentID = this.AgentID;
333 aw.AgentData.SerialNum = 0;
334 aw.AgentData.SessionID = this.SessionID;
335
336 aw.WearableData = new AgentWearablesUpdatePacket.WearableDataBlock[13];
337 AgentWearablesUpdatePacket.WearableDataBlock awb;
338 for (int i = 0; i < wearables.Length; i++)
339 {
340 awb = new AgentWearablesUpdatePacket.WearableDataBlock();
341 awb.WearableType = (byte)i;
342 awb.AssetID = wearables[i].AssetID;
343 awb.ItemID = wearables[i].ItemID;
344 aw.WearableData[i] = awb;
345 }
346
347 this.OutPacket(aw);
348 }
328 #endregion 349 #endregion
329 350
330 #region Inventory Creation 351 #region Inventory Creation