diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/MiniModuleBase.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/MiniModuleBase.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/MiniModuleBase.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/MiniModuleBase.cs new file mode 100644 index 0000000..a886158 --- /dev/null +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/MiniModuleBase.cs | |||
@@ -0,0 +1,27 @@ | |||
1 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | ||
2 | { | ||
3 | abstract class MiniModuleBase | ||
4 | { | ||
5 | private IWorld m_world; | ||
6 | private IHost m_host; | ||
7 | |||
8 | public void InitMiniModule(IWorld world, IHost host) | ||
9 | { | ||
10 | m_world = world; | ||
11 | m_host = host; | ||
12 | } | ||
13 | |||
14 | protected IWorld World | ||
15 | { | ||
16 | get { return m_world; } | ||
17 | } | ||
18 | |||
19 | protected IHost Host | ||
20 | { | ||
21 | get { return m_host; } | ||
22 | } | ||
23 | |||
24 | protected abstract void Start(); | ||
25 | protected abstract void Stop(); | ||
26 | } | ||
27 | } | ||