From 7e91f41535e27d992cf85a46bed25b781367dcf1 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 3 Apr 2009 09:22:34 +0000 Subject: * 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. --- .../Region/OptionalModules/Scripting/Minimodule/MRMBase.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMBase.cs') 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 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using OpenMetaverse; + namespace OpenSim.Region.OptionalModules.Scripting.Minimodule { public abstract class MRMBase { private IWorld m_world; private IHost m_host; + private UUID m_id; - public void InitMiniModule(IWorld world, IHost host) + public void InitMiniModule(IWorld world, IHost host, UUID uniqueID) { m_world = world; m_host = host; + m_id = uniqueID; } protected IWorld World @@ -48,6 +52,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule get { return m_host; } } + public UUID ID + { + get { return m_id; } + } + public abstract void Start(); public abstract void Stop(); } -- cgit v1.1