aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAdam Frisby2009-04-04 22:57:53 +0000
committerAdam Frisby2009-04-04 22:57:53 +0000
commitd758753d7c47846258abb12d605eeddfa9d1ef24 (patch)
treecbc32c28b12fa2ac6db87a7478837b1752c56abc
parentGive a meaningful message if terrain save fails because of a file IO error. (diff)
downloadopensim-SC_OLD-d758753d7c47846258abb12d605eeddfa9d1ef24.zip
opensim-SC_OLD-d758753d7c47846258abb12d605eeddfa9d1ef24.tar.gz
opensim-SC_OLD-d758753d7c47846258abb12d605eeddfa9d1ef24.tar.bz2
opensim-SC_OLD-d758753d7c47846258abb12d605eeddfa9d1ef24.tar.xz
* More fiddling with MRM IPersistence, now stores <T> instead of Object.
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs9
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}