From f2b175ef08066649a13b6a42f0a59d9bee503638 Mon Sep 17 00:00:00 2001
From: Teravus Ovares
Date: Sun, 9 Dec 2007 05:59:49 +0000
Subject: * Added some inter-region comms glue for allowing sims to chat
amongst themsevles about an agent behind the agent's back. * Will be using
this glue Tomorrow/today to tell other regions what the agent's draw distance
is and what region they're actually in so the region can make decisions on
what prim to send, if any.
---
.../Communications/Local/LocalBackEndServices.cs | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
(limited to 'OpenSim/Region/Communications/Local/LocalBackEndServices.cs')
diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
index 9d390e4..1bf9801 100644
--- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
@@ -205,6 +205,19 @@ namespace OpenSim.Region.Communications.Local
return false;
}
+ public virtual bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
+ {
+ if (m_regionListeners.ContainsKey(regionHandle))
+ {
+ // Console.WriteLine("CommsManager- Informing a region to expect child agent");
+ m_regionListeners[regionHandle].TriggerChildAgentUpdate(regionHandle, cAgentData);
+ //MainLog.Instance.Verbose("INTER", rdebugRegionName + ":Local BackEnd: Got Listener trigginering local event: " + agentData.firstname + " " + agentData.lastname);
+
+ return true;
+ }
+ return false;
+ }
+
public bool TriggerRegionUp(RegionInfo region, ulong regionhandle)
{
if (m_regionListeners.ContainsKey(regionhandle))
@@ -215,6 +228,15 @@ namespace OpenSim.Region.Communications.Local
return false;
}
+ public bool TriggerChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
+ {
+ if (m_regionListeners.ContainsKey(regionHandle))
+ {
+ return m_regionListeners[regionHandle].TriggerChildAgentUpdate(regionHandle,cAgentData);
+ }
+ return false;
+ }
+
///
///
///
--
cgit v1.1