aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs
blob: c09388046fb50bc4e71f12051cba6303908f6c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Text;

namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
    interface IPersistence
    {
        T Get<T>(Guid storageID);
        T Get<T>();

        /// <summary>
        /// Stores 'data' into the persistence system
        /// associated with this object, however saved
        /// under the ID 'storageID'. This data may
        /// be accessed by other scripts however.
        /// </summary>
        /// <param name="storageID"></param>
        /// <param name="data"></param>
        void Put<T>(Guid storageID, T data);

        /// <summary>
        /// Stores 'data' into the persistence system
        /// using the default ID for this script.
        /// </summary>
        /// <param name="data"></param>
        void Put<T>(T data);
    }
}