mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Allow Region specific static maptiles to be loaded from file.
This commit is contained in:
committed by
Robert Adams
parent
cf97535d9e
commit
61353dde80
@@ -143,6 +143,7 @@ namespace OpenSim.Framework
|
||||
public string RemotingAddress;
|
||||
public UUID ScopeID = UUID.Zero;
|
||||
private UUID m_maptileStaticUUID = UUID.Zero;
|
||||
public string m_maptileStaticFile;
|
||||
|
||||
public uint WorldLocX = 0;
|
||||
public uint WorldLocY = 0;
|
||||
@@ -349,6 +350,11 @@ namespace OpenSim.Framework
|
||||
{
|
||||
get { return m_maptileStaticUUID; }
|
||||
}
|
||||
|
||||
public string MaptileStaticFile
|
||||
{
|
||||
get { return m_maptileStaticFile; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The port by which http communication occurs with the region (most noticeably, CAPS communication)
|
||||
@@ -716,6 +722,9 @@ namespace OpenSim.Framework
|
||||
{
|
||||
config.Set("MaptileStaticUUID", m_maptileStaticUUID.ToString());
|
||||
}
|
||||
|
||||
m_maptileStaticFile = config.GetString("MaptileStaticFile", String.Empty);
|
||||
allKeys.Remove("MaptileStaticFile");
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -843,6 +852,9 @@ namespace OpenSim.Framework
|
||||
|
||||
if (m_maptileStaticUUID != UUID.Zero)
|
||||
config.Set("MaptileStaticUUID", m_maptileStaticUUID.ToString());
|
||||
|
||||
if (m_maptileStaticFile != String.Empty)
|
||||
config.Set("MaptileStaticFile", m_maptileStaticFile);
|
||||
}
|
||||
|
||||
public bool ignoreIncomingConfiguration(string configuration_key, object configuration_result)
|
||||
@@ -952,6 +964,9 @@ namespace OpenSim.Framework
|
||||
|
||||
configMember.addConfigurationOption("region_static_maptile", ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
||||
"UUID of a texture to use as the map for this region", m_maptileStaticUUID.ToString(), true);
|
||||
|
||||
configMember.addConfigurationOption("region_static_mapfile", ConfigurationOption.ConfigurationTypes.TYPE_STRING,
|
||||
"Filename of a texture to use as the map for this region", m_maptileStaticFile, true);
|
||||
}
|
||||
|
||||
public void loadConfigurationOptions()
|
||||
@@ -1016,6 +1031,9 @@ namespace OpenSim.Framework
|
||||
|
||||
configMember.addConfigurationOption("region_static_maptile", ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
||||
"UUID of a texture to use as the map for this region", String.Empty, true);
|
||||
|
||||
configMember.addConfigurationOption("region_static_mapfile", ConfigurationOption.ConfigurationTypes.TYPE_STRING,
|
||||
"Filename of a texture to use as the map for this region", String.Empty, true);
|
||||
}
|
||||
|
||||
public bool handleIncomingConfiguration(string configuration_key, object configuration_result)
|
||||
@@ -1097,6 +1115,9 @@ namespace OpenSim.Framework
|
||||
case "region_static_maptile":
|
||||
m_maptileStaticUUID = (UUID)configuration_result;
|
||||
break;
|
||||
case "region_static_mapfile":
|
||||
m_maptileStaticFile = (string)configuration_result;
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user