* More fiddling with MRM IPersistence, now stores <T> instead of Object.

0.6.5-rc1
Adam Frisby 2009-04-04 22:57:53 +00:00
parent 168752b81b
commit d758753d7c
1 changed files with 5 additions and 4 deletions

View File

@ -6,8 +6,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{ {
interface IPersistence interface IPersistence
{ {
Object Get(Guid storageID);
Object Get(); T Get<T>(Guid storageID);
T Get<T>();
/// <summary> /// <summary>
/// Stores 'data' into the persistence system /// Stores 'data' into the persistence system
@ -17,13 +18,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
/// </summary> /// </summary>
/// <param name="storageID"></param> /// <param name="storageID"></param>
/// <param name="data"></param> /// <param name="data"></param>
void Put(Guid storageID, Object data); void Put<T>(Guid storageID, T data);
/// <summary> /// <summary>
/// Stores 'data' into the persistence system /// Stores 'data' into the persistence system
/// using the default ID for this script. /// using the default ID for this script.
/// </summary> /// </summary>
/// <param name="data"></param> /// <param name="data"></param>
void Put(Object data); void Put<T>(T data);
} }
} }