diff options
author | Adam Frisby | 2009-04-03 09:22:34 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-03 09:22:34 +0000 |
commit | 7e91f41535e27d992cf85a46bed25b781367dcf1 (patch) | |
tree | df10571e25be88239637d08efad9ea552e543997 /OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs | |
parent | fix an error in hollow cylinder face number calculation (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs new file mode 100644 index 0000000..6020a7a --- /dev/null +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs | |||
@@ -0,0 +1,31 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | ||
6 | { | ||
7 | interface IPersistence | ||
8 | { | ||
9 | Object Get(MRMBase state, Guid storageID); | ||
10 | Object Get(MRMBase state); | ||
11 | |||
12 | /// <summary> | ||
13 | /// Stores 'data' into the persistence system | ||
14 | /// associated with this object, however saved | ||
15 | /// under the ID 'storageID'. This data may | ||
16 | /// be accessed by other scripts however. | ||
17 | /// </summary> | ||
18 | /// <param name="state"></param> | ||
19 | /// <param name="storageID"></param> | ||
20 | /// <param name="data"></param> | ||
21 | void Put(MRMBase state, Guid storageID, Object data); | ||
22 | |||
23 | /// <summary> | ||
24 | /// Stores 'data' into the persistence system | ||
25 | /// using the default ID for this script. | ||
26 | /// </summary> | ||
27 | /// <param name="state"></param> | ||
28 | /// <param name="data"></param> | ||
29 | void Put(MRMBase state, Object data); | ||
30 | } | ||
31 | } | ||