diff options
author | Jeff Ames | 2008-03-22 23:39:07 +0000 |
---|---|---|
committer | Jeff Ames | 2008-03-22 23:39:07 +0000 |
commit | 37121bcf72263f1fea76fc5193b1cfa6c4b1f460 (patch) | |
tree | b22e52b086e8f39d85755202512711287a708ca3 /OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs | |
parent | *Moved LandManagement into its own region module (spiffy!) (diff) | |
download | opensim-SC_OLD-37121bcf72263f1fea76fc5193b1cfa6c4b1f460.zip opensim-SC_OLD-37121bcf72263f1fea76fc5193b1cfa6c4b1f460.tar.gz opensim-SC_OLD-37121bcf72263f1fea76fc5193b1cfa6c4b1f460.tar.bz2 opensim-SC_OLD-37121bcf72263f1fea76fc5193b1cfa6c4b1f460.tar.xz |
Update svn properties.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs index ac8c1a8..614929b 100644 --- a/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs | |||
@@ -1,62 +1,62 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using libsecondlife; | 3 | using libsecondlife; |
4 | using libsecondlife.Packets; | 4 | using libsecondlife.Packets; |
5 | using OpenSim.Framework; | 5 | using OpenSim.Framework; |
6 | using OpenSim.Framework.Console; | 6 | using OpenSim.Framework.Console; |
7 | using OpenSim.Region.Environment.Scenes; | 7 | using OpenSim.Region.Environment.Scenes; |
8 | using OpenSim.Region.Environment.Interfaces; | 8 | using OpenSim.Region.Environment.Interfaces; |
9 | using Nini.Config; | 9 | using Nini.Config; |
10 | 10 | ||
11 | namespace OpenSim.Region.Environment.Modules.LandManagement | 11 | namespace OpenSim.Region.Environment.Modules.LandManagement |
12 | { | 12 | { |
13 | public class LandManagementModule : IRegionModule | 13 | public class LandManagementModule : IRegionModule |
14 | { | 14 | { |
15 | private LandChannel landChannel; | 15 | private LandChannel landChannel; |
16 | private Scene m_scene; | 16 | private Scene m_scene; |
17 | 17 | ||
18 | #region IRegionModule Members | 18 | #region IRegionModule Members |
19 | 19 | ||
20 | public void Initialise(Scene scene, IConfigSource source) | 20 | public void Initialise(Scene scene, IConfigSource source) |
21 | { | 21 | { |
22 | m_scene = scene; | 22 | m_scene = scene; |
23 | landChannel = new LandChannel(scene); | 23 | landChannel = new LandChannel(scene); |
24 | 24 | ||
25 | m_scene.EventManager.OnParcelPrimCountAdd += landChannel.addPrimToLandPrimCounts; | 25 | m_scene.EventManager.OnParcelPrimCountAdd += landChannel.addPrimToLandPrimCounts; |
26 | m_scene.EventManager.OnParcelPrimCountUpdate += landChannel.updateLandPrimCounts; | 26 | m_scene.EventManager.OnParcelPrimCountUpdate += landChannel.updateLandPrimCounts; |
27 | m_scene.EventManager.OnAvatarEnteringNewParcel += new EventManager.AvatarEnteringNewParcel(landChannel.handleAvatarChangingParcel); | 27 | m_scene.EventManager.OnAvatarEnteringNewParcel += new EventManager.AvatarEnteringNewParcel(landChannel.handleAvatarChangingParcel); |
28 | m_scene.EventManager.OnClientMovement += new EventManager.ClientMovement(landChannel.handleAnyClientMovement); | 28 | m_scene.EventManager.OnClientMovement += new EventManager.ClientMovement(landChannel.handleAnyClientMovement); |
29 | 29 | ||
30 | lock (m_scene) | 30 | lock (m_scene) |
31 | { | 31 | { |
32 | m_scene.LandChannel = (ILandChannel)landChannel; | 32 | m_scene.LandChannel = (ILandChannel)landChannel; |
33 | } | 33 | } |
34 | } | 34 | } |
35 | 35 | ||
36 | public void PostInitialise() | 36 | public void PostInitialise() |
37 | { | 37 | { |
38 | 38 | ||
39 | } | 39 | } |
40 | 40 | ||
41 | public void Close() | 41 | public void Close() |
42 | { | 42 | { |
43 | 43 | ||
44 | } | 44 | } |
45 | 45 | ||
46 | public string Name | 46 | public string Name |
47 | { | 47 | { |
48 | get { return "LandManagementModule"; } | 48 | get { return "LandManagementModule"; } |
49 | } | 49 | } |
50 | 50 | ||
51 | public bool IsSharedModule | 51 | public bool IsSharedModule |
52 | { | 52 | { |
53 | get { return false; } | 53 | get { return false; } |
54 | } | 54 | } |
55 | 55 | ||
56 | 56 | ||
57 | 57 | ||
58 | 58 | ||
59 | 59 | ||
60 | #endregion | 60 | #endregion |
61 | } | 61 | } |
62 | } | 62 | } |