aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common/OpenSim.Framework
diff options
context:
space:
mode:
Diffstat (limited to 'Common/OpenSim.Framework')
-rw-r--r--Common/OpenSim.Framework/IRegionCommsHost.cs2
-rw-r--r--Common/OpenSim.Framework/OpenSim.Framework.csproj1
-rw-r--r--Common/OpenSim.Framework/RegionCommsHostBase.cs32
3 files changed, 34 insertions, 1 deletions
diff --git a/Common/OpenSim.Framework/IRegionCommsHost.cs b/Common/OpenSim.Framework/IRegionCommsHost.cs
index 815bd8e..d115bb7 100644
--- a/Common/OpenSim.Framework/IRegionCommsHost.cs
+++ b/Common/OpenSim.Framework/IRegionCommsHost.cs
@@ -6,7 +6,7 @@ using OpenSim.Framework.Types;
6 6
7namespace OpenSim.Framework 7namespace OpenSim.Framework
8{ 8{
9 public delegate void ExpectUserDelegate(); 9 public delegate void ExpectUserDelegate(AgentCircuitData agent);
10 public delegate void UpdateNeighbours(List<RegionInfo> neighbours); 10 public delegate void UpdateNeighbours(List<RegionInfo> neighbours);
11 11
12 public interface IRegionCommsHost 12 public interface IRegionCommsHost
diff --git a/Common/OpenSim.Framework/OpenSim.Framework.csproj b/Common/OpenSim.Framework/OpenSim.Framework.csproj
index f83cb9d..be17a23 100644
--- a/Common/OpenSim.Framework/OpenSim.Framework.csproj
+++ b/Common/OpenSim.Framework/OpenSim.Framework.csproj
@@ -107,6 +107,7 @@
107 <Compile Include="LoginService.cs"> 107 <Compile Include="LoginService.cs">
108 <SubType>Code</SubType> 108 <SubType>Code</SubType>
109 </Compile> 109 </Compile>
110 <Compile Include="RegionCommsHostBase.cs" />
110 <Compile Include="Remoting.cs"> 111 <Compile Include="Remoting.cs">
111 <SubType>Code</SubType> 112 <SubType>Code</SubType>
112 </Compile> 113 </Compile>
diff --git a/Common/OpenSim.Framework/RegionCommsHostBase.cs b/Common/OpenSim.Framework/RegionCommsHostBase.cs
new file mode 100644
index 0000000..782755e
--- /dev/null
+++ b/Common/OpenSim.Framework/RegionCommsHostBase.cs
@@ -0,0 +1,32 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenSim.Framework.Interfaces;
5using OpenSim.Framework.Types;
6
7namespace OpenSim.Framework
8{
9 public class RegionCommsHostBase :IRegionCommsHost
10 {
11 public event ExpectUserDelegate OnExpectUser;
12 public event GenericCall2 OnExpectChildAgent;
13 public event GenericCall2 OnAvatarCrossingIntoRegion;
14 public event UpdateNeighbours OnNeighboursUpdate;
15
16 /// <summary>
17 ///
18 /// </summary>
19 /// <param name="agent"></param>
20 /// <returns></returns>
21 public virtual bool TriggerExpectUser(AgentCircuitData agent)
22 {
23 if(OnExpectUser != null)
24 {
25 OnExpectUser(agent);
26 return true;
27 }
28
29 return false;
30 }
31 }
32}