diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs index b6d79d4..5ca4f59 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs | |||
@@ -6,8 +6,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
6 | { | 6 | { |
7 | interface IPersistence | 7 | interface IPersistence |
8 | { | 8 | { |
9 | Object Get(Guid storageID); | 9 | |
10 | Object Get(); | 10 | T Get<T>(Guid storageID); |
11 | T Get<T>(); | ||
11 | 12 | ||
12 | /// <summary> | 13 | /// <summary> |
13 | /// Stores 'data' into the persistence system | 14 | /// Stores 'data' into the persistence system |
@@ -17,13 +18,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
17 | /// </summary> | 18 | /// </summary> |
18 | /// <param name="storageID"></param> | 19 | /// <param name="storageID"></param> |
19 | /// <param name="data"></param> | 20 | /// <param name="data"></param> |
20 | void Put(Guid storageID, Object data); | 21 | void Put<T>(Guid storageID, T data); |
21 | 22 | ||
22 | /// <summary> | 23 | /// <summary> |
23 | /// Stores 'data' into the persistence system | 24 | /// Stores 'data' into the persistence system |
24 | /// using the default ID for this script. | 25 | /// using the default ID for this script. |
25 | /// </summary> | 26 | /// </summary> |
26 | /// <param name="data"></param> | 27 | /// <param name="data"></param> |
27 | void Put(Object data); | 28 | void Put<T>(T data); |
28 | } | 29 | } |
29 | } | 30 | } |