* 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

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
interface IPersistence
{
Object Get(MRMBase state, Guid storageID);
Object Get(MRMBase state);
/// <summary>
/// Stores 'data' into the persistence system
/// associated with this object, however saved
/// under the ID 'storageID'. This data may
/// be accessed by other scripts however.
/// </summary>
/// <param name="state"></param>
/// <param name="storageID"></param>
/// <param name="data"></param>
void Put(MRMBase state, Guid storageID, Object data);
/// <summary>
/// Stores 'data' into the persistence system
/// using the default ID for this script.
/// </summary>
/// <param name="state"></param>
/// <param name="data"></param>
void Put(MRMBase state, Object data);
}
}