aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs
diff options
context:
space:
mode:
authorAdam Frisby2009-04-03 09:22:34 +0000
committerAdam Frisby2009-04-03 09:22:34 +0000
commit7e91f41535e27d992cf85a46bed25b781367dcf1 (patch)
treedf10571e25be88239637d08efad9ea552e543997 /OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs
parentfix an error in hollow cylinder face number calculation (diff)
downloadopensim-SC_OLD-7e91f41535e27d992cf85a46bed25b781367dcf1.zip
opensim-SC_OLD-7e91f41535e27d992cf85a46bed25b781367dcf1.tar.gz
opensim-SC_OLD-7e91f41535e27d992cf85a46bed25b781367dcf1.tar.bz2
opensim-SC_OLD-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 'OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs31
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 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace 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}