* 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.
This commit is contained in:
Adam Frisby
2009-04-03 09:22:34 +00:00
parent 5f4cab6ed3
commit 7e91f41535
5 changed files with 45 additions and 7 deletions

View File

@@ -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();
}