OpenSim
|
Mock region data plugin. This obeys the api contract for persistence but stores everything in memory, so that tests can check correct persistence. More...
Public Member Functions | |
void | Initialise (string dbfile) |
Initialises the data storage engine More... | |
void | Dispose () |
Dispose the database More... | |
void | StoreRegionSettings (RegionSettings rs) |
RegionLightShareData | LoadRegionWindlightSettings (UUID regionUUID) |
void | RemoveRegionWindlightSettings (UUID regionID) |
void | StoreRegionWindlightSettings (RegionLightShareData wl) |
string | LoadRegionEnvironmentSettings (UUID regionUUID) |
Load Environment settings from region storage More... | |
void | StoreRegionEnvironmentSettings (UUID regionUUID, string settings) |
Store Environment settings into region storage More... | |
void | RemoveRegionEnvironmentSettings (UUID regionUUID) |
Delete Environment settings from region storage More... | |
RegionSettings | LoadRegionSettings (UUID regionUUID) |
void | StoreObject (SceneObjectGroup obj, UUID regionUUID) |
Stores all object's details apart from inventory More... | |
void | RemoveObject (UUID obj, UUID regionUUID) |
Entirely removes the object, including inventory More... | |
void | StorePrimInventory (UUID primID, ICollection< TaskInventoryItem > items) |
Store a prim's inventory More... | |
List< SceneObjectGroup > | LoadObjects (UUID regionUUID) |
Load persisted objects from region storage. More... | |
void | StoreTerrain (TerrainData ter, UUID regionID) |
Store a terrain revision in region storage More... | |
void | StoreTerrain (double[,] ter, UUID regionID) |
TerrainData | LoadTerrain (UUID regionID, int pSizeX, int pSizeY, int pSizeZ) |
Load the latest terrain revision from region storage More... | |
double[,] | LoadTerrain (UUID regionID) |
void | RemoveLandObject (UUID globalID) |
| |
void | StoreLandObject (ILandObject land) |
List< LandData > | LoadLandObjects (UUID regionUUID) |
void | Shutdown () |
UUID[] | GetObjectIDs (UUID regionID) |
void | SaveExtra (UUID regionID, string name, string value) |
void | RemoveExtra (UUID regionID, string name) |
Dictionary< string, string > | GetExtra (UUID regionID) |
Protected Attributes | |
Dictionary< UUID, RegionSettings > | m_regionSettings = new Dictionary<UUID, RegionSettings>() |
Dictionary< UUID, SceneObjectPart > | m_sceneObjectParts = new Dictionary<UUID, SceneObjectPart>() |
Dictionary< UUID, ICollection < TaskInventoryItem > > | m_primItems = new Dictionary<UUID, ICollection<TaskInventoryItem>>() |
Dictionary< UUID, TerrainData > | m_terrains = new Dictionary<UUID, TerrainData>() |
Dictionary< UUID, LandData > | m_landData = new Dictionary<UUID, LandData>() |
Mock region data plugin. This obeys the api contract for persistence but stores everything in memory, so that tests can check correct persistence.
Definition at line 164 of file MockRegionDataPlugin.cs.
|
inline |
Dispose the database
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 180 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 376 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 363 of file MockRegionDataPlugin.cs.
|
inline |
Initialises the data storage engine
filename | The file to save the database to (may not be applicable). Alternatively, a connection string for the database |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 175 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 354 of file MockRegionDataPlugin.cs.
|
inline |
Load persisted objects from region storage.
regionUUID | the Region UUID |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 270 of file MockRegionDataPlugin.cs.
|
inline |
Load Environment settings from region storage
regionUUID | the region UUID |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 206 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 223 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 189 of file MockRegionDataPlugin.cs.
|
inline |
Load the latest terrain revision from region storage
regionID | the region UUID |
pSizeX | the X dimension of the terrain being filled |
pSizeY | the Y dimension of the terrain being filled |
pSizeZ | the Z dimension of the terrain being filled |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 327 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 335 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 372 of file MockRegionDataPlugin.cs.
|
inline |
globalID |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 343 of file MockRegionDataPlugin.cs.
|
inline |
Entirely removes the object, including inventory
uuid | |
regionUUID |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 249 of file MockRegionDataPlugin.cs.
|
inline |
Delete Environment settings from region storage
regionUUID | the region UUID |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 217 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 196 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 368 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 359 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 349 of file MockRegionDataPlugin.cs.
|
inline |
Stores all object's details apart from inventory
obj | |
regionUUID |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 234 of file MockRegionDataPlugin.cs.
|
inline |
Store a prim's inventory
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 265 of file MockRegionDataPlugin.cs.
|
inline |
Store Environment settings into region storage
regionUUID | the region UUID |
settings | LLSD string from viewer |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 212 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 184 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 200 of file MockRegionDataPlugin.cs.
|
inline |
Store a terrain revision in region storage
ter | HeightField data |
regionID | region UUID |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 317 of file MockRegionDataPlugin.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.ISimulationDataStore.
Definition at line 322 of file MockRegionDataPlugin.cs.
|
protected |
Definition at line 173 of file MockRegionDataPlugin.cs.
|
protected |
Definition at line 171 of file MockRegionDataPlugin.cs.
|
protected |
Definition at line 168 of file MockRegionDataPlugin.cs.
|
protected |
Definition at line 169 of file MockRegionDataPlugin.cs.
|
protected |
Definition at line 172 of file MockRegionDataPlugin.cs.