diff options
author | MW | 2007-05-31 14:22:14 +0000 |
---|---|---|
committer | MW | 2007-05-31 14:22:14 +0000 |
commit | a575bc38d61ac5cb74f60e0eee503ca7f3e99803 (patch) | |
tree | 1ff674910b118bb3939e351eaeff10546d25b0fc /Common/OpenSim.Framework/RegionCommsHostBase.cs | |
parent | (no commit message) (diff) | |
download | opensim-SC_OLD-a575bc38d61ac5cb74f60e0eee503ca7f3e99803.zip opensim-SC_OLD-a575bc38d61ac5cb74f60e0eee503ca7f3e99803.tar.gz opensim-SC_OLD-a575bc38d61ac5cb74f60e0eee503ca7f3e99803.tar.bz2 opensim-SC_OLD-a575bc38d61ac5cb74f60e0eee503ca7f3e99803.tar.xz |
More work on OpenGrid.Framework.Communications
Diffstat (limited to 'Common/OpenSim.Framework/RegionCommsHostBase.cs')
-rw-r--r-- | Common/OpenSim.Framework/RegionCommsHostBase.cs | 32 |
1 files changed, 32 insertions, 0 deletions
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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using OpenSim.Framework.Interfaces; | ||
5 | using OpenSim.Framework.Types; | ||
6 | |||
7 | namespace 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 | } | ||