diff options
Diffstat (limited to 'OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs')
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs new file mode 100644 index 0000000..71275c3 --- /dev/null +++ b/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs | |||
@@ -0,0 +1,71 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | using OpenSim.Region.Environment.Scenes; | ||
6 | using OpenSim.Region.Environment; | ||
7 | using OpenSim.Region.Interfaces; | ||
8 | using OpenSim.Framework.Console; | ||
9 | using libsecondlife; | ||
10 | |||
11 | using Db4objects.Db4o; | ||
12 | |||
13 | namespace OpenSim.DataStore.NullStorage | ||
14 | { | ||
15 | public class DB4oDataStore : IRegionDataStore | ||
16 | { | ||
17 | private IObjectContainer db; | ||
18 | |||
19 | public void Initialise(string dbfile, string dbname) | ||
20 | { | ||
21 | db = Db4oFactory.OpenFile(dbfile); | ||
22 | |||
23 | return; | ||
24 | } | ||
25 | |||
26 | public void StoreObject(SceneObject obj) | ||
27 | { | ||
28 | db.Set(obj); | ||
29 | } | ||
30 | |||
31 | public void RemoveObject(LLUUID obj) | ||
32 | { | ||
33 | |||
34 | } | ||
35 | |||
36 | public List<SceneObject> LoadObjects() | ||
37 | { | ||
38 | return new List<SceneObject>(); | ||
39 | } | ||
40 | |||
41 | public void StoreTerrain(double[,] ter) | ||
42 | { | ||
43 | |||
44 | } | ||
45 | |||
46 | public double[,] LoadTerrain() | ||
47 | { | ||
48 | return null; | ||
49 | } | ||
50 | |||
51 | public void RemoveParcel(uint id) | ||
52 | { | ||
53 | |||
54 | } | ||
55 | |||
56 | public void StoreParcel(OpenSim.Region.Environment.Parcel parcel) | ||
57 | { | ||
58 | |||
59 | } | ||
60 | |||
61 | public List<OpenSim.Region.Environment.Parcel> LoadParcels() | ||
62 | { | ||
63 | return new List<OpenSim.Region.Environment.Parcel>(); | ||
64 | } | ||
65 | |||
66 | public void Shutdown() | ||
67 | { | ||
68 | |||
69 | } | ||
70 | } | ||
71 | } | ||