diff options
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs | 138 |
1 files changed, 69 insertions, 69 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs index f514a29..520c593 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs | |||
@@ -1,69 +1,69 @@ | |||
1 | using System; | 1 | using System; |
2 | using libsecondlife; | 2 | using libsecondlife; |
3 | using OpenSim.Framework.Types; | 3 | using OpenSim.Framework.Types; |
4 | 4 | ||
5 | namespace OpenSim.Region.Communications.OGS1 | 5 | namespace OpenSim.Region.Communications.OGS1 |
6 | { | 6 | { |
7 | public delegate bool InformRegionChild(ulong regionHandle, AgentCircuitData agentData); | 7 | public delegate bool InformRegionChild(ulong regionHandle, AgentCircuitData agentData); |
8 | public delegate bool ExpectArrival(ulong regionHandle, LLUUID agentID, LLVector3 position); | 8 | public delegate bool ExpectArrival(ulong regionHandle, LLUUID agentID, LLVector3 position); |
9 | 9 | ||
10 | public sealed class InterRegionSingleton | 10 | public sealed class InterRegionSingleton |
11 | { | 11 | { |
12 | static readonly InterRegionSingleton instance = new InterRegionSingleton(); | 12 | static readonly InterRegionSingleton instance = new InterRegionSingleton(); |
13 | 13 | ||
14 | public event InformRegionChild OnChildAgent; | 14 | public event InformRegionChild OnChildAgent; |
15 | public event ExpectArrival OnArrival; | 15 | public event ExpectArrival OnArrival; |
16 | 16 | ||
17 | static InterRegionSingleton() | 17 | static InterRegionSingleton() |
18 | { | 18 | { |
19 | } | 19 | } |
20 | 20 | ||
21 | InterRegionSingleton() | 21 | InterRegionSingleton() |
22 | { | 22 | { |
23 | } | 23 | } |
24 | 24 | ||
25 | public static InterRegionSingleton Instance | 25 | public static InterRegionSingleton Instance |
26 | { | 26 | { |
27 | get | 27 | get |
28 | { | 28 | { |
29 | return instance; | 29 | return instance; |
30 | } | 30 | } |
31 | } | 31 | } |
32 | 32 | ||
33 | public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData) | 33 | public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData) |
34 | { | 34 | { |
35 | if (OnChildAgent != null) | 35 | if (OnChildAgent != null) |
36 | { | 36 | { |
37 | return OnChildAgent(regionHandle, agentData); | 37 | return OnChildAgent(regionHandle, agentData); |
38 | } | 38 | } |
39 | return false; | 39 | return false; |
40 | } | 40 | } |
41 | 41 | ||
42 | public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position) | 42 | public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position) |
43 | { | 43 | { |
44 | if (OnArrival != null) | 44 | if (OnArrival != null) |
45 | { | 45 | { |
46 | return OnArrival(regionHandle, agentID, position); | 46 | return OnArrival(regionHandle, agentID, position); |
47 | } | 47 | } |
48 | return false; | 48 | return false; |
49 | } | 49 | } |
50 | } | 50 | } |
51 | 51 | ||
52 | public class OGS1InterRegionRemoting : MarshalByRefObject | 52 | public class OGS1InterRegionRemoting : MarshalByRefObject |
53 | { | 53 | { |
54 | 54 | ||
55 | public OGS1InterRegionRemoting() | 55 | public OGS1InterRegionRemoting() |
56 | { | 56 | { |
57 | } | 57 | } |
58 | 58 | ||
59 | public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData) | 59 | public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData) |
60 | { | 60 | { |
61 | return InterRegionSingleton.Instance.InformRegionOfChildAgent(regionHandle, agentData); | 61 | return InterRegionSingleton.Instance.InformRegionOfChildAgent(regionHandle, agentData); |
62 | } | 62 | } |
63 | 63 | ||
64 | public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position) | 64 | public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position) |
65 | { | 65 | { |
66 | return InterRegionSingleton.Instance.ExpectAvatarCrossing(regionHandle, agentID, position); | 66 | return InterRegionSingleton.Instance.ExpectAvatarCrossing(regionHandle, agentID, position); |
67 | } | 67 | } |
68 | } | 68 | } |
69 | } | 69 | } |