aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/ChildAgentDataUpdate.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/ChildAgentDataUpdate.cs')
-rw-r--r--OpenSim/Framework/ChildAgentDataUpdate.cs18
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Framework/ChildAgentDataUpdate.cs b/OpenSim/Framework/ChildAgentDataUpdate.cs
index 1c5f558..4962629 100644
--- a/OpenSim/Framework/ChildAgentDataUpdate.cs
+++ b/OpenSim/Framework/ChildAgentDataUpdate.cs
@@ -230,12 +230,14 @@ namespace OpenSim.Framework
230 230
231 public class ControllerData 231 public class ControllerData
232 { 232 {
233 public UUID ObjectID;
233 public UUID ItemID; 234 public UUID ItemID;
234 public uint IgnoreControls; 235 public uint IgnoreControls;
235 public uint EventControls; 236 public uint EventControls;
236 237
237 public ControllerData(UUID item, uint ignore, uint ev) 238 public ControllerData(UUID obj, UUID item, uint ignore, uint ev)
238 { 239 {
240 ObjectID = obj;
239 ItemID = item; 241 ItemID = item;
240 IgnoreControls = ignore; 242 IgnoreControls = ignore;
241 EventControls = ev; 243 EventControls = ev;
@@ -249,6 +251,7 @@ namespace OpenSim.Framework
249 public OSDMap PackUpdateMessage() 251 public OSDMap PackUpdateMessage()
250 { 252 {
251 OSDMap controldata = new OSDMap(); 253 OSDMap controldata = new OSDMap();
254 controldata["object"] = OSD.FromUUID(ObjectID);
252 controldata["item"] = OSD.FromUUID(ItemID); 255 controldata["item"] = OSD.FromUUID(ItemID);
253 controldata["ignore"] = OSD.FromInteger(IgnoreControls); 256 controldata["ignore"] = OSD.FromInteger(IgnoreControls);
254 controldata["event"] = OSD.FromInteger(EventControls); 257 controldata["event"] = OSD.FromInteger(EventControls);
@@ -259,6 +262,8 @@ namespace OpenSim.Framework
259 262
260 public void UnpackUpdateMessage(OSDMap args) 263 public void UnpackUpdateMessage(OSDMap args)
261 { 264 {
265 if (args["object"] != null)
266 ObjectID = args["object"].AsUUID();
262 if (args["item"] != null) 267 if (args["item"] != null)
263 ItemID = args["item"].AsUUID(); 268 ItemID = args["item"].AsUUID();
264 if (args["ignore"] != null) 269 if (args["ignore"] != null)
@@ -311,6 +316,8 @@ namespace OpenSim.Framework
311 public Animation AnimState = null; 316 public Animation AnimState = null;
312 317
313 public UUID GranterID; 318 public UUID GranterID;
319 public UUID ParentPart;
320 public Vector3 SitOffset;
314 321
315 // Appearance 322 // Appearance
316 public AvatarAppearance Appearance; 323 public AvatarAppearance Appearance;
@@ -482,6 +489,10 @@ namespace OpenSim.Framework
482 } 489 }
483 args["attach_objects"] = attObjs; 490 args["attach_objects"] = attObjs;
484 } 491 }
492
493 args["parent_part"] = OSD.FromUUID(ParentPart);
494 args["sit_offset"] = OSD.FromString(SitOffset.ToString());
495
485 return args; 496 return args;
486 } 497 }
487 498
@@ -713,6 +724,11 @@ namespace OpenSim.Framework
713 } 724 }
714 } 725 }
715 } 726 }
727
728 if (args["parent_part"] != null)
729 ParentPart = args["parent_part"].AsUUID();
730 if (args["sit_offset"] != null)
731 Vector3.TryParse(args["sit_offset"].AsString(), out SitOffset);
716 } 732 }
717 733
718 public AgentData() 734 public AgentData()