From fd1a0a13749338ead01eddf59663704aae539ea7 Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 10 Jun 2007 19:08:51 +0000 Subject: Added InterSimComms (Likely to be renamed) to the commsManager and moved the InformClientOfNeighbours method into that. --- .../InterSimComms/InterSimsCommsBase.cs | 19 ++++++++++++++ .../InterSimComms/InterSimsCommsLocal.cs | 29 ++++++++++++++++++++++ .../InterSimComms/InterSimsCommsOGS.cs | 16 ++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs create mode 100644 Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs create mode 100644 Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs (limited to 'Common/OpenGrid.Framework.Communications/InterSimComms') diff --git a/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs new file mode 100644 index 0000000..972506f --- /dev/null +++ b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenSim.Framework.Types; +using OpenSim.Framework; + +namespace OpenGrid.Framework.Communications +{ + public abstract class InterSimsCommsBase + { + /// + /// Informs a neighbouring sim to expect a child agent + /// + /// + /// + /// + public abstract bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData); + } +} diff --git a/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs new file mode 100644 index 0000000..bce146f --- /dev/null +++ b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenSim.Framework.Types; +using OpenSim.Framework; + +namespace OpenGrid.Framework.Communications +{ + public class InterSimsCommsLocal : InterSimsCommsBase + { + private SandBoxManager sandBoxManager; + + public InterSimsCommsLocal(SandBoxManager sandManager) + { + sandBoxManager = sandManager; + } + + /// + /// Informs a neighbouring sim to expect a child agent + /// + /// + /// + /// + public override bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData + { + return sandBoxManager.InformNeighbourOfChildAgent(regionHandle, agentData); + } + } +} diff --git a/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs new file mode 100644 index 0000000..b6e98da --- /dev/null +++ b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenSim.Framework.Types; +using OpenSim.Framework; + +namespace OpenGrid.Framework.Communications +{ + public class InterSimsCommsOGS : InterSimsCommsBase + { + public override bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData + { + return false; + } + } +} -- cgit v1.1