From 4144fd0eb2ea93b9bb83b7ab81780fd00c999c82 Mon Sep 17 00:00:00 2001 From: diva Date: Sat, 3 Jan 2009 02:29:49 +0000 Subject: 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. --- OpenSim/Framework/ChildAgentDataUpdate.cs | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'OpenSim/Framework') 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 } } + public interface IAgentData + { + UUID AgentID { get; set; } + + OSDMap PackUpdateMessage(); + void UnpackUpdateMessage(OSDMap map); + } + /// /// Replacement for ChildAgentDataUpdate. Used over RESTComms and LocalComms. /// - public class AgentPosition + public class AgentPosition : IAgentData { + private UUID m_id; + public UUID AgentID + { + get { return m_id; } + set { m_id = value; } + } + public ulong RegionHandle; public uint CircuitCode; - public UUID AgentID; public UUID SessionID; public float Far; @@ -272,12 +286,16 @@ namespace OpenSim.Framework } } - public class AgentData + public class AgentData : IAgentData { + private UUID m_id; + public UUID AgentID + { + get { return m_id; } + set { m_id = value; } + } public ulong RegionHandle; public uint CircuitCode; - - public UUID AgentID; public UUID SessionID; public Vector3 Position; -- cgit v1.1