aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Null/NullSimulationData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/Null/NullSimulationData.cs')
-rw-r--r--OpenSim/Data/Null/NullSimulationData.cs112
1 files changed, 112 insertions, 0 deletions
diff --git a/OpenSim/Data/Null/NullSimulationData.cs b/OpenSim/Data/Null/NullSimulationData.cs
new file mode 100644
index 0000000..9c7da8e
--- /dev/null
+++ b/OpenSim/Data/Null/NullSimulationData.cs
@@ -0,0 +1,112 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System.Collections.Generic;
29using OpenMetaverse;
30using OpenSim.Framework;
31using OpenSim.Region.Framework.Interfaces;
32using OpenSim.Region.Framework.Scenes;
33
34namespace OpenSim.Data.Null
35{
36 /// <summary>
37 /// NULL DataStore, do not store anything
38 /// </summary>
39 public class NullSimulationData : ISimulationDataStore
40 {
41 public void Initialise(string dbfile)
42 {
43 return;
44 }
45
46 public void Dispose()
47 {
48 }
49
50 public void StoreRegionSettings(RegionSettings rs)
51 {
52 }
53 public RegionLightShareData LoadRegionWindlightSettings(UUID regionUUID)
54 {
55 //This connector doesn't support the windlight module yet
56 //Return default LL windlight settings
57 return new RegionLightShareData();
58 }
59 public void StoreRegionWindlightSettings(RegionLightShareData wl)
60 {
61 //This connector doesn't support the windlight module yet
62 }
63 public RegionSettings LoadRegionSettings(UUID regionUUID)
64 {
65 return null;
66 }
67
68 public void StoreObject(SceneObjectGroup obj, UUID regionUUID)
69 {
70 }
71
72 public void RemoveObject(UUID obj, UUID regionUUID)
73 {
74 }
75
76 // see IRegionDatastore
77 public void StorePrimInventory(UUID primID, ICollection<TaskInventoryItem> items)
78 {
79 }
80
81 public List<SceneObjectGroup> LoadObjects(UUID regionUUID)
82 {
83 return new List<SceneObjectGroup>();
84 }
85
86 public void StoreTerrain(double[,] ter, UUID regionID)
87 {
88 }
89
90 public double[,] LoadTerrain(UUID regionID)
91 {
92 return null;
93 }
94
95 public void RemoveLandObject(UUID globalID)
96 {
97 }
98
99 public void StoreLandObject(ILandObject land)
100 {
101 }
102
103 public List<LandData> LoadLandObjects(UUID regionUUID)
104 {
105 return new List<LandData>();
106 }
107
108 public void Shutdown()
109 {
110 }
111 }
112}