diff options
author | Adam Frisby | 2009-04-03 09:22:34 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-03 09:22:34 +0000 |
commit | 7e91f41535e27d992cf85a46bed25b781367dcf1 (patch) | |
tree | df10571e25be88239637d08efad9ea552e543997 /OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMBase.cs | |
parent | fix an error in hollow cylinder face number calculation (diff) | |
download | opensim-SC_OLD-7e91f41535e27d992cf85a46bed25b781367dcf1.zip opensim-SC_OLD-7e91f41535e27d992cf85a46bed25b781367dcf1.tar.gz opensim-SC_OLD-7e91f41535e27d992cf85a46bed25b781367dcf1.tar.bz2 opensim-SC_OLD-7e91f41535e27d992cf85a46bed25b781367dcf1.tar.xz |
* Implements "ID" semi-global within MRM scripts. This is tied to the 'state ID' for MRMs.
* Implements IPersistence interface, allows simple KeyValue access for MRM scripts to a more permanent datastore.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMBase.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMBase.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMBase.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMBase.cs index b98bb95..c47e592 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMBase.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMBase.cs | |||
@@ -25,17 +25,21 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using OpenMetaverse; | ||
29 | |||
28 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | 30 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule |
29 | { | 31 | { |
30 | public abstract class MRMBase | 32 | public abstract class MRMBase |
31 | { | 33 | { |
32 | private IWorld m_world; | 34 | private IWorld m_world; |
33 | private IHost m_host; | 35 | private IHost m_host; |
36 | private UUID m_id; | ||
34 | 37 | ||
35 | public void InitMiniModule(IWorld world, IHost host) | 38 | public void InitMiniModule(IWorld world, IHost host, UUID uniqueID) |
36 | { | 39 | { |
37 | m_world = world; | 40 | m_world = world; |
38 | m_host = host; | 41 | m_host = host; |
42 | m_id = uniqueID; | ||
39 | } | 43 | } |
40 | 44 | ||
41 | protected IWorld World | 45 | protected IWorld World |
@@ -48,6 +52,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
48 | get { return m_host; } | 52 | get { return m_host; } |
49 | } | 53 | } |
50 | 54 | ||
55 | public UUID ID | ||
56 | { | ||
57 | get { return m_id; } | ||
58 | } | ||
59 | |||
51 | public abstract void Start(); | 60 | public abstract void Start(); |
52 | public abstract void Stop(); | 61 | public abstract void Stop(); |
53 | } | 62 | } |