aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMBase.cs
diff options
context:
space:
mode:
authorAdam Frisby2009-04-03 09:22:34 +0000
committerAdam Frisby2009-04-03 09:22:34 +0000
commit7e91f41535e27d992cf85a46bed25b781367dcf1 (patch)
treedf10571e25be88239637d08efad9ea552e543997 /OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMBase.cs
parentfix an error in hollow cylinder face number calculation (diff)
downloadopensim-SC-7e91f41535e27d992cf85a46bed25b781367dcf1.zip
opensim-SC-7e91f41535e27d992cf85a46bed25b781367dcf1.tar.gz
opensim-SC-7e91f41535e27d992cf85a46bed25b781367dcf1.tar.bz2
opensim-SC-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.cs11
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
28using OpenMetaverse;
29
28namespace OpenSim.Region.OptionalModules.Scripting.Minimodule 30namespace 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 }