aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common/OpenGrid.Framework.Communications/InterSimComms
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs19
-rw-r--r--Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs29
-rw-r--r--Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs16
3 files changed, 64 insertions, 0 deletions
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 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenSim.Framework.Types;
5using OpenSim.Framework;
6
7namespace OpenGrid.Framework.Communications
8{
9 public abstract class InterSimsCommsBase
10 {
11 /// <summary>
12 /// Informs a neighbouring sim to expect a child agent
13 /// </summary>
14 /// <param name="regionHandle"></param>
15 /// <param name="agentData"></param>
16 /// <returns></returns>
17 public abstract bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData);
18 }
19}
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 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenSim.Framework.Types;
5using OpenSim.Framework;
6
7namespace OpenGrid.Framework.Communications
8{
9 public class InterSimsCommsLocal : InterSimsCommsBase
10 {
11 private SandBoxManager sandBoxManager;
12
13 public InterSimsCommsLocal(SandBoxManager sandManager)
14 {
15 sandBoxManager = sandManager;
16 }
17
18 /// <summary>
19 /// Informs a neighbouring sim to expect a child agent
20 /// </summary>
21 /// <param name="regionHandle"></param>
22 /// <param name="agentData"></param>
23 /// <returns></returns>
24 public override bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData
25 {
26 return sandBoxManager.InformNeighbourOfChildAgent(regionHandle, agentData);
27 }
28 }
29}
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 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenSim.Framework.Types;
5using OpenSim.Framework;
6
7namespace OpenGrid.Framework.Communications
8{
9 public class InterSimsCommsOGS : InterSimsCommsBase
10 {
11 public override bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData
12 {
13 return false;
14 }
15 }
16}