aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/ChildAgentDataUpdate.cs28
1 files changed, 23 insertions, 5 deletions
diff --git a/OpenSim/Framework/ChildAgentDataUpdate.cs b/OpenSim/Framework/ChildAgentDataUpdate.cs
index dd505ad..34f2866 100644
--- a/OpenSim/Framework/ChildAgentDataUpdate.cs
+++ b/OpenSim/Framework/ChildAgentDataUpdate.cs
@@ -88,14 +88,28 @@ namespace OpenSim.Framework
88 } 88 }
89 } 89 }
90 90
91 public interface IAgentData
92 {
93 UUID AgentID { get; set; }
94
95 OSDMap PackUpdateMessage();
96 void UnpackUpdateMessage(OSDMap map);
97 }
98
91 /// <summary> 99 /// <summary>
92 /// Replacement for ChildAgentDataUpdate. Used over RESTComms and LocalComms. 100 /// Replacement for ChildAgentDataUpdate. Used over RESTComms and LocalComms.
93 /// </summary> 101 /// </summary>
94 public class AgentPosition 102 public class AgentPosition : IAgentData
95 { 103 {
104 private UUID m_id;
105 public UUID AgentID
106 {
107 get { return m_id; }
108 set { m_id = value; }
109 }
110
96 public ulong RegionHandle; 111 public ulong RegionHandle;
97 public uint CircuitCode; 112 public uint CircuitCode;
98 public UUID AgentID;
99 public UUID SessionID; 113 public UUID SessionID;
100 114
101 public float Far; 115 public float Far;
@@ -272,12 +286,16 @@ namespace OpenSim.Framework
272 } 286 }
273 } 287 }
274 288
275 public class AgentData 289 public class AgentData : IAgentData
276 { 290 {
291 private UUID m_id;
292 public UUID AgentID
293 {
294 get { return m_id; }
295 set { m_id = value; }
296 }
277 public ulong RegionHandle; 297 public ulong RegionHandle;
278 public uint CircuitCode; 298 public uint CircuitCode;
279
280 public UUID AgentID;
281 public UUID SessionID; 299 public UUID SessionID;
282 300
283 public Vector3 Position; 301 public Vector3 Position;