aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authordiva2009-01-03 02:29:49 +0000
committerdiva2009-01-03 02:29:49 +0000
commit4144fd0eb2ea93b9bb83b7ab81780fd00c999c82 (patch)
tree601fbe1847eda7cfa828ac0532175af6ea040bc3 /OpenSim/Region/Environment/Scenes/Scene.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/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index f652e21..408f100 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -2970,7 +2970,19 @@ namespace OpenSim.Region.Environment.Scenes
2970 2970
2971 public virtual bool IncomingChildAgentDataUpdate(AgentData cAgentData) 2971 public virtual bool IncomingChildAgentDataUpdate(AgentData cAgentData)
2972 { 2972 {
2973 //Console.WriteLine(" XXX Scene IncomingChildAgentDataUpdate in " + RegionInfo.RegionName); 2973 //Console.WriteLine(" XXX Scene IncomingChildAgentDataUpdate FULL in " + RegionInfo.RegionName);
2974 ScenePresence childAgentUpdate = GetScenePresence(cAgentData.AgentID);
2975 if (childAgentUpdate != null)
2976 {
2977 childAgentUpdate.ChildAgentDataUpdate(cAgentData);
2978 return true;
2979 }
2980 return false;
2981 }
2982
2983 public virtual bool IncomingChildAgentDataUpdate(AgentPosition cAgentData)
2984 {
2985 //Console.WriteLine(" XXX Scene IncomingChildAgentDataUpdate POSITION in " + RegionInfo.RegionName);
2974 ScenePresence childAgentUpdate = GetScenePresence(cAgentData.AgentID); 2986 ScenePresence childAgentUpdate = GetScenePresence(cAgentData.AgentID);
2975 if (childAgentUpdate != null) 2987 if (childAgentUpdate != null)
2976 { 2988 {
@@ -3174,7 +3186,7 @@ namespace OpenSim.Region.Environment.Scenes
3174 return m_sceneGridService.CrossToNeighbouringRegion(regionHandle, agentID, position, isFlying); 3186 return m_sceneGridService.CrossToNeighbouringRegion(regionHandle, agentID, position, isFlying);
3175 } 3187 }
3176 3188
3177 public void SendOutChildAgentUpdates(AgentData cadu, ScenePresence presence) 3189 public void SendOutChildAgentUpdates(AgentPosition cadu, ScenePresence presence)
3178 { 3190 {
3179 m_sceneGridService.SendChildAgentDataUpdate(cadu, presence); 3191 m_sceneGridService.SendChildAgentDataUpdate(cadu, presence);
3180 } 3192 }