* Adding example "NullStorage" DataStore engine.

This commit is contained in:
Adam Frisby
2007-07-15 14:58:23 +00:00
parent 593851eaa5
commit 275d8c0247
5 changed files with 128 additions and 1 deletions

View File

@@ -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<SceneObject> 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<OpenSim.Region.Environment.Parcel> LoadParcels()
{
return null;
}
public void Shutdown()
{
}
}
}

View File

@@ -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")]