diff options
Diffstat (limited to 'OpenSim/Framework/ChildAgentDataUpdate.cs')
-rw-r--r-- | OpenSim/Framework/ChildAgentDataUpdate.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Framework/ChildAgentDataUpdate.cs b/OpenSim/Framework/ChildAgentDataUpdate.cs index 9fc048b..b399a58 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; |
@@ -481,6 +488,10 @@ namespace OpenSim.Framework | |||
481 | } | 488 | } |
482 | args["attach_objects"] = attObjs; | 489 | args["attach_objects"] = attObjs; |
483 | } | 490 | } |
491 | |||
492 | args["parent_part"] = OSD.FromUUID(ParentPart); | ||
493 | args["sit_offset"] = OSD.FromString(SitOffset.ToString()); | ||
494 | |||
484 | return args; | 495 | return args; |
485 | } | 496 | } |
486 | 497 | ||
@@ -712,6 +723,11 @@ namespace OpenSim.Framework | |||
712 | } | 723 | } |
713 | } | 724 | } |
714 | } | 725 | } |
726 | |||
727 | if (args["parent_part"] != null) | ||
728 | ParentPart = args["parent_part"].AsUUID(); | ||
729 | if (args["sit_offset"] != null) | ||
730 | Vector3.TryParse(args["sit_offset"].AsString(), out SitOffset); | ||
715 | } | 731 | } |
716 | 732 | ||
717 | public AgentData() | 733 | public AgentData() |