aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/ChildAgentDataUpdate.cs
diff options
context:
space:
mode:
authordiva2009-01-03 02:29:49 +0000
committerdiva2009-01-03 02:29:49 +0000
commit4144fd0eb2ea93b9bb83b7ab81780fd00c999c82 (patch)
tree601fbe1847eda7cfa828ac0532175af6ea040bc3 /OpenSim/Framework/ChildAgentDataUpdate.cs
parentPlumb in dwell in a couple of places (diff)
downloadopensim-SC_OLD-4144fd0eb2ea93b9bb83b7ab81780fd00c999c82.zip
opensim-SC_OLD-4144fd0eb2ea93b9bb83b7ab81780fd00c999c82.tar.gz
opensim-SC_OLD-4144fd0eb2ea93b9bb83b7ab81780fd00c999c82.tar.bz2
opensim-SC_OLD-4144fd0eb2ea93b9bb83b7ab81780fd00c999c82.tar.xz
Split agent updates into two messages: full update and position+camera update. They're both sent over HTTP PUT. The full update is sent on TPs, for now; later it will also be sent on region crossings.
Diffstat (limited to 'OpenSim/Framework/ChildAgentDataUpdate.cs')
-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;