diff options
author | Justin Clarke Casey | 2009-01-23 17:55:29 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-01-23 17:55:29 +0000 |
commit | f8aea3724da138107fc4121254e5eeea5f178aa0 (patch) | |
tree | df1514e281ed270ac5f0872eb341b10dfde910f1 /OpenSim/Tests/Common/Setup | |
parent | * refactor: move scene setup code into common test code assembly (diff) | |
download | opensim-SC-f8aea3724da138107fc4121254e5eeea5f178aa0.zip opensim-SC-f8aea3724da138107fc4121254e5eeea5f178aa0.tar.gz opensim-SC-f8aea3724da138107fc4121254e5eeea5f178aa0.tar.bz2 opensim-SC-f8aea3724da138107fc4121254e5eeea5f178aa0.tar.xz |
refactor: move test modules set up code to common function
Diffstat (limited to 'OpenSim/Tests/Common/Setup')
-rw-r--r-- | OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs index 11ebc86..74f177a 100644 --- a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs +++ b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | |||
@@ -99,6 +99,23 @@ namespace OpenSim.Tests.Common.Setup | |||
99 | } | 99 | } |
100 | 100 | ||
101 | /// <summary> | 101 | /// <summary> |
102 | /// Setup the given modules for a given scene. | ||
103 | /// </summary> | ||
104 | /// <param name="scene"></param> | ||
105 | /// <param name="config"></param> | ||
106 | /// <param name="modules"></param> | ||
107 | public static void SetupSceneModules(Scene scene, IConfigSource config, params IRegionModule[] modules) | ||
108 | { | ||
109 | foreach (IRegionModule module in modules) | ||
110 | { | ||
111 | module.Initialise(scene, config); | ||
112 | scene.AddModule(module.Name, module); | ||
113 | } | ||
114 | |||
115 | scene.SetModuleInterfaces(); | ||
116 | } | ||
117 | |||
118 | /// <summary> | ||
102 | /// Generate some standard agent connection data. | 119 | /// Generate some standard agent connection data. |
103 | /// </summary> | 120 | /// </summary> |
104 | /// <param name="agentId"></param> | 121 | /// <param name="agentId"></param> |