mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Add a skeleton for a name value storage associated with regions
This commit is contained in:
@@ -117,5 +117,11 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
void RemoveRegionEnvironmentSettings(UUID regionUUID);
|
||||
|
||||
UUID[] GetObjectIDs(UUID regionID);
|
||||
|
||||
void SaveExtra(UUID regionID, string name, string value);
|
||||
|
||||
void RemoveExtra(UUID regionID, string name);
|
||||
|
||||
Dictionary<string, string> GetExtra(UUID regionID);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,6 +128,12 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
/// <param name="regionUUID">the region UUID</param>
|
||||
void RemoveRegionEnvironmentSettings(UUID regionUUID);
|
||||
|
||||
void SaveExtra(UUID regionID, string name, string val);
|
||||
|
||||
void RemoveExtra(UUID regionID, string name);
|
||||
|
||||
Dictionary<string, string> GetExtra(UUID regionID);
|
||||
|
||||
void Shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,6 +177,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
protected ICapabilitiesModule m_capsModule;
|
||||
protected IGroupsModule m_groupsModule;
|
||||
|
||||
private Dictionary<string, string> m_extraSettings;
|
||||
|
||||
/// <summary>
|
||||
/// Current scene frame number
|
||||
/// </summary>
|
||||
@@ -658,6 +660,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// FIXME: It shouldn't be up to the database plugins to create this data - we should do it when a new
|
||||
// region is set up and avoid these gyrations.
|
||||
RegionSettings rs = simDataService.LoadRegionSettings(RegionInfo.RegionID);
|
||||
m_extraSettings = simDataService.GetExtra(RegionInfo.RegionID);
|
||||
|
||||
bool updatedTerrainTextures = false;
|
||||
if (rs.TerrainTexture1 == UUID.Zero)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user