mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
* 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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user