diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs')
-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 | } | ||