diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/DataSnapshot/ObjectSnapshot.cs | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs b/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs index d2a5051..c23c697 100644 --- a/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs | |||
@@ -33,7 +33,7 @@ using log4net; | |||
33 | using OpenSim.Region.DataSnapshot.Interfaces; | 33 | using OpenSim.Region.DataSnapshot.Interfaces; |
34 | using OpenSim.Region.Environment.Scenes; | 34 | using OpenSim.Region.Environment.Scenes; |
35 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
36 | using libsecondlife; | 36 | using OpenMetaverse; |
37 | 37 | ||
38 | namespace OpenSim.Region.DataSnapshot.Providers | 38 | namespace OpenSim.Region.DataSnapshot.Providers |
39 | { | 39 | { |
@@ -59,29 +59,29 @@ namespace OpenSim.Region.DataSnapshot.Providers | |||
59 | //Detect object data changes by hooking into the IClientAPI. | 59 | //Detect object data changes by hooking into the IClientAPI. |
60 | //Very dirty, and breaks whenever someone changes the client API. | 60 | //Very dirty, and breaks whenever someone changes the client API. |
61 | 61 | ||
62 | client.OnAddPrim += delegate (LLUUID ownerID, LLVector3 RayEnd, LLQuaternion rot, | 62 | client.OnAddPrim += delegate (UUID ownerID, Vector3 RayEnd, Quaternion rot, |
63 | PrimitiveBaseShape shape, byte bypassRaycast, LLVector3 RayStart, LLUUID RayTargetID, | 63 | PrimitiveBaseShape shape, byte bypassRaycast, Vector3 RayStart, UUID RayTargetID, |
64 | byte RayEndIsIntersection) { this.Stale = true; }; | 64 | byte RayEndIsIntersection) { this.Stale = true; }; |
65 | client.OnLinkObjects += delegate (IClientAPI remoteClient, uint parent, List<uint> children) | 65 | client.OnLinkObjects += delegate (IClientAPI remoteClient, uint parent, List<uint> children) |
66 | { this.Stale = true; }; | 66 | { this.Stale = true; }; |
67 | client.OnDelinkObjects += delegate(List<uint> primIds) { this.Stale = true; }; | 67 | client.OnDelinkObjects += delegate(List<uint> primIds) { this.Stale = true; }; |
68 | client.OnGrabUpdate += delegate(LLUUID objectID, LLVector3 offset, LLVector3 grapPos, | 68 | client.OnGrabUpdate += delegate(UUID objectID, Vector3 offset, Vector3 grapPos, |
69 | IClientAPI remoteClient) { this.Stale = true; }; | 69 | IClientAPI remoteClient) { this.Stale = true; }; |
70 | client.OnObjectAttach += delegate(IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, | 70 | client.OnObjectAttach += delegate(IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, |
71 | LLQuaternion rot) { this.Stale = true; }; | 71 | Quaternion rot) { this.Stale = true; }; |
72 | client.OnObjectDuplicate += delegate(uint localID, LLVector3 offset, uint dupeFlags, LLUUID AgentID, | 72 | client.OnObjectDuplicate += delegate(uint localID, Vector3 offset, uint dupeFlags, UUID AgentID, |
73 | LLUUID GroupID) { this.Stale = true; }; | 73 | UUID GroupID) { this.Stale = true; }; |
74 | client.OnObjectDuplicateOnRay += delegate(uint localID, uint dupeFlags, LLUUID AgentID, LLUUID GroupID, | 74 | client.OnObjectDuplicateOnRay += delegate(uint localID, uint dupeFlags, UUID AgentID, UUID GroupID, |
75 | LLUUID RayTargetObj, LLVector3 RayEnd, LLVector3 RayStart, bool BypassRaycast, | 75 | UUID RayTargetObj, Vector3 RayEnd, Vector3 RayStart, bool BypassRaycast, |
76 | bool RayEndIsIntersection, bool CopyCenters, bool CopyRotates) { this.Stale = true; }; | 76 | bool RayEndIsIntersection, bool CopyCenters, bool CopyRotates) { this.Stale = true; }; |
77 | client.OnObjectIncludeInSearch += delegate(IClientAPI remoteClient, bool IncludeInSearch, uint localID) | 77 | client.OnObjectIncludeInSearch += delegate(IClientAPI remoteClient, bool IncludeInSearch, uint localID) |
78 | { this.Stale = true; }; | 78 | { this.Stale = true; }; |
79 | client.OnObjectPermissions += delegate(IClientAPI controller, LLUUID agentID, LLUUID sessionID, | 79 | client.OnObjectPermissions += delegate(IClientAPI controller, UUID agentID, UUID sessionID, |
80 | byte field, uint localId, uint mask, byte set) { this.Stale = true; }; | 80 | byte field, uint localId, uint mask, byte set) { this.Stale = true; }; |
81 | client.OnRezObject += delegate(IClientAPI remoteClient, LLUUID itemID, LLVector3 RayEnd, | 81 | client.OnRezObject += delegate(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, |
82 | LLVector3 RayStart, LLUUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection, | 82 | Vector3 RayStart, UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection, |
83 | uint EveryoneMask, uint GroupMask, uint NextOwnerMask, uint ItemFlags, bool RezSelected, | 83 | uint EveryoneMask, uint GroupMask, uint NextOwnerMask, uint ItemFlags, bool RezSelected, |
84 | bool RemoveItem, LLUUID fromTaskID) { this.Stale = true; }; | 84 | bool RemoveItem, UUID fromTaskID) { this.Stale = true; }; |
85 | } | 85 | } |
86 | 86 | ||
87 | public Scene GetParentScene | 87 | public Scene GetParentScene |
@@ -105,11 +105,11 @@ namespace OpenSim.Region.DataSnapshot.Providers | |||
105 | 105 | ||
106 | m_log.Debug("[DATASNAPSHOT]: Found object " + obj.Name + " in scene"); | 106 | m_log.Debug("[DATASNAPSHOT]: Found object " + obj.Name + " in scene"); |
107 | 107 | ||
108 | if ((obj.RootPart.Flags & LLObject.ObjectFlags.JointWheel) == LLObject.ObjectFlags.JointWheel) { | 108 | if ((obj.RootPart.Flags & PrimFlags.JointWheel) == PrimFlags.JointWheel) { |
109 | XmlNode xmlobject = nodeFactory.CreateNode(XmlNodeType.Element, "object", ""); | 109 | XmlNode xmlobject = nodeFactory.CreateNode(XmlNodeType.Element, "object", ""); |
110 | 110 | ||
111 | node = nodeFactory.CreateNode(XmlNodeType.Element, "uuid", ""); | 111 | node = nodeFactory.CreateNode(XmlNodeType.Element, "uuid", ""); |
112 | node.InnerText = obj.UUID.ToString(); | 112 | node.InnerText = obj.ToString(); |
113 | xmlobject.AppendChild(node); | 113 | xmlobject.AppendChild(node); |
114 | 114 | ||
115 | SceneObjectPart m_rootPart = null; | 115 | SceneObjectPart m_rootPart = null; |
@@ -170,4 +170,4 @@ namespace OpenSim.Region.DataSnapshot.Providers | |||
170 | 170 | ||
171 | public event ProviderStale OnStale; | 171 | public event ProviderStale OnStale; |
172 | } | 172 | } |
173 | } \ No newline at end of file | 173 | } |