From 275d8c024739f69ec2fce59cffc2f8e19dffc5f0 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 15 Jul 2007 14:58:23 +0000 Subject: * Adding example "NullStorage" DataStore engine. --- .../Environment/Interfaces/IRegionDataStore.cs | 2 +- OpenSim/Region/Environment/Scenes/SceneObject.cs | 1 + .../OpenSim.DataStore.NullStorage/NullDataStore.cs | 65 ++++++++++++++++++++++ .../Properties/AssemblyInfo.cs | 35 ++++++++++++ 4 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/NullDataStore.cs create mode 100644 OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/Properties/AssemblyInfo.cs (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs b/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs index ff809b4..c068866 100644 --- a/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs +++ b/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs @@ -47,7 +47,7 @@ namespace OpenSim.Region.Interfaces void Initialise(string filename, string dbname); void StoreObject(SceneObject obj); - void DeleteObject(LLUUID uuid); + void RemoveObject(LLUUID uuid); List LoadObjects(); diff --git a/OpenSim/Region/Environment/Scenes/SceneObject.cs b/OpenSim/Region/Environment/Scenes/SceneObject.cs index b488447..7992b17 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObject.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObject.cs @@ -111,6 +111,7 @@ namespace OpenSim.Region.Environment.Scenes m_eventManager.OnBackup -= new EventManager.OnBackupDelegate(ProcessBackup); m_eventManager.OnParcelPrimCountUpdate -= new EventManager.OnParcelPrimCountUpdateDelegate(ProcessParcelPrimCountUpdate); } + /// /// Processes backup /// diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/NullDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/NullDataStore.cs new file mode 100644 index 0000000..b67ba93 --- /dev/null +++ b/OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/NullDataStore.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using OpenSim.Region.Environment.Scenes; +using OpenSim.Region.Environment; +using OpenSim.Region.Interfaces; +using OpenSim.Framework.Console; +using libsecondlife; + +namespace OpenSim.DataStore.NullStorage +{ + class NullDataStore : IRegionDataStore + { + public void Initialise(string dbfile, string dbname) + { + return; + } + + public void StoreObject(SceneObject obj) + { + + } + + public void RemoveObject(LLUUID obj) + { + + } + + public List LoadObjects() + { + return null; + } + + public void StoreTerrain(double[,] ter) + { + + } + + public double[,] LoadTerrain() + { + return null; + } + + public void RemoveParcel(uint id) + { + + } + + public void StoreParcel(OpenSim.Region.Environment.Parcel parcel) + { + + } + + public List LoadParcels() + { + return null; + } + + public void Shutdown() + { + + } + } +} diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/Properties/AssemblyInfo.cs b/OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c0bd46d --- /dev/null +++ b/OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("OpenSim.DataStore.NullStorage")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("OpenSim.DataStore.NullStorage")] +[assembly: AssemblyCopyright("Copyright © 2007")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b4a1656d-de22-4080-a970-fd8166acbf16")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] -- cgit v1.1