diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim.RegionServer/ClientView.cs | 21 |
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 |