diff options
Added a Debug method to the Console/log class that has the Conditional attribute (set to "DEBUG"), so we can use that for writing extra debug info to the console. [for anyone who doesn't know about the Conditional attribute, it is a attribute that can be set on a method, and then any call to that method will on be compiled if the terms of that condition are met, ie is this case only if "DEBUG" is true. So its a cleaner implementation of the #if #endif directives].
A few other minor changes.
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
5 files changed, 114 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs index c26a1a5..752cde4 100644 --- a/OpenSim/Region/Environment/Modules/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/ChatModule.cs | |||
@@ -10,6 +10,7 @@ using OpenSim.Region.Environment.Scenes; | |||
10 | using OpenSim.Region.Environment.Interfaces; | 10 | using OpenSim.Region.Environment.Interfaces; |
11 | using OpenSim.Framework.Interfaces; | 11 | using OpenSim.Framework.Interfaces; |
12 | using OpenSim.Framework.Utilities; | 12 | using OpenSim.Framework.Utilities; |
13 | using OpenSim.Framework.Console; | ||
13 | 14 | ||
14 | namespace OpenSim.Region.Environment.Modules | 15 | namespace OpenSim.Region.Environment.Modules |
15 | { | 16 | { |
diff --git a/OpenSim/Region/Environment/Modules/FriendsModule.cs b/OpenSim/Region/Environment/Modules/FriendsModule.cs index 960d68f..f952bb2 100644 --- a/OpenSim/Region/Environment/Modules/FriendsModule.cs +++ b/OpenSim/Region/Environment/Modules/FriendsModule.cs | |||
@@ -1,10 +1,35 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using libsecondlife; | ||
5 | using OpenSim.Framework.Interfaces; | ||
6 | using OpenSim.Region.Environment.Scenes; | ||
7 | using OpenSim.Region.Environment.Interfaces; | ||
8 | |||
4 | 9 | ||
5 | namespace OpenSim.Region.Environment.Modules | 10 | namespace OpenSim.Region.Environment.Modules |
6 | { | 11 | { |
7 | public class FriendsModule | 12 | public class FriendsModule : IRegionModule |
8 | { | 13 | { |
14 | private Scene m_scene; | ||
15 | |||
16 | public void Initialise(Scene scene) | ||
17 | { | ||
18 | m_scene = scene; | ||
19 | } | ||
20 | |||
21 | public void PostInitialise() | ||
22 | { | ||
23 | |||
24 | } | ||
25 | |||
26 | public void CloseDown() | ||
27 | { | ||
28 | } | ||
29 | |||
30 | public string GetName() | ||
31 | { | ||
32 | return "FriendsModule"; | ||
33 | } | ||
9 | } | 34 | } |
10 | } | 35 | } |
diff --git a/OpenSim/Region/Environment/Modules/GroupsModule.cs b/OpenSim/Region/Environment/Modules/GroupsModule.cs new file mode 100644 index 0000000..607b395 --- /dev/null +++ b/OpenSim/Region/Environment/Modules/GroupsModule.cs | |||
@@ -0,0 +1,35 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using libsecondlife; | ||
5 | using OpenSim.Framework.Interfaces; | ||
6 | using OpenSim.Region.Environment.Scenes; | ||
7 | using OpenSim.Region.Environment.Interfaces; | ||
8 | |||
9 | namespace OpenSim.Region.Environment.Modules | ||
10 | { | ||
11 | public class GroupsModule : IRegionModule | ||
12 | { | ||
13 | private Scene m_scene; | ||
14 | |||
15 | public void Initialise(Scene scene) | ||
16 | { | ||
17 | m_scene = scene; | ||
18 | } | ||
19 | |||
20 | public void PostInitialise() | ||
21 | { | ||
22 | |||
23 | } | ||
24 | |||
25 | public void CloseDown() | ||
26 | { | ||
27 | } | ||
28 | |||
29 | public string GetName() | ||
30 | { | ||
31 | return "GroupsModule"; | ||
32 | } | ||
33 | } | ||
34 | } | ||
35 | |||
diff --git a/OpenSim/Region/Environment/Modules/InstantMessageModule.cs b/OpenSim/Region/Environment/Modules/InstantMessageModule.cs index ef2f224..9c09c48 100644 --- a/OpenSim/Region/Environment/Modules/InstantMessageModule.cs +++ b/OpenSim/Region/Environment/Modules/InstantMessageModule.cs | |||
@@ -1,10 +1,35 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using libsecondlife; | ||
5 | using OpenSim.Framework.Interfaces; | ||
6 | using OpenSim.Region.Environment.Scenes; | ||
7 | using OpenSim.Region.Environment.Interfaces; | ||
8 | |||
4 | 9 | ||
5 | namespace OpenSim.Region.Environment.Modules | 10 | namespace OpenSim.Region.Environment.Modules |
6 | { | 11 | { |
7 | public class InstantMessageModule | 12 | public class InstantMessageModule :IRegionModule |
8 | { | 13 | { |
14 | private Scene m_scene; | ||
15 | |||
16 | public void Initialise(Scene scene) | ||
17 | { | ||
18 | m_scene = scene; | ||
19 | } | ||
20 | |||
21 | public void PostInitialise() | ||
22 | { | ||
23 | |||
24 | } | ||
25 | |||
26 | public void CloseDown() | ||
27 | { | ||
28 | } | ||
29 | |||
30 | public string GetName() | ||
31 | { | ||
32 | return "InstantMessageModule"; | ||
33 | } | ||
9 | } | 34 | } |
10 | } | 35 | } |
diff --git a/OpenSim/Region/Environment/Modules/InventoryModule.cs b/OpenSim/Region/Environment/Modules/InventoryModule.cs index 3659292..94e7ba7 100644 --- a/OpenSim/Region/Environment/Modules/InventoryModule.cs +++ b/OpenSim/Region/Environment/Modules/InventoryModule.cs | |||
@@ -1,10 +1,35 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using libsecondlife; | ||
5 | using OpenSim.Framework.Interfaces; | ||
6 | using OpenSim.Region.Environment.Scenes; | ||
7 | using OpenSim.Region.Environment.Interfaces; | ||
8 | |||
4 | 9 | ||
5 | namespace OpenSim.Region.Environment.Modules | 10 | namespace OpenSim.Region.Environment.Modules |
6 | { | 11 | { |
7 | public class InventoryModule | 12 | public class InventoryModule :IRegionModule |
8 | { | 13 | { |
14 | private Scene m_scene; | ||
15 | |||
16 | public void Initialise(Scene scene) | ||
17 | { | ||
18 | m_scene = scene; | ||
19 | } | ||
20 | |||
21 | public void PostInitialise() | ||
22 | { | ||
23 | |||
24 | } | ||
25 | |||
26 | public void CloseDown() | ||
27 | { | ||
28 | } | ||
29 | |||
30 | public string GetName() | ||
31 | { | ||
32 | return "InventoryModule"; | ||
33 | } | ||
9 | } | 34 | } |
10 | } | 35 | } |