0.6.9 had some more references to that pesky estate_settings.xml. Gone now
parent
116bcb298f
commit
d6f14d5443
|
@ -35,8 +35,6 @@ namespace OpenSim.Framework
|
||||||
public class EstateSettings
|
public class EstateSettings
|
||||||
{
|
{
|
||||||
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
private readonly ConfigurationMember configMember;
|
|
||||||
|
|
||||||
public delegate void SaveDelegate(EstateSettings rs);
|
public delegate void SaveDelegate(EstateSettings rs);
|
||||||
|
|
||||||
public event SaveDelegate OnSave;
|
public event SaveDelegate OnSave;
|
||||||
|
@ -273,25 +271,6 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public EstateSettings()
|
public EstateSettings()
|
||||||
{
|
{
|
||||||
if (configMember == null)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Load legacy defaults
|
|
||||||
//
|
|
||||||
configMember =
|
|
||||||
new ConfigurationMember(Path.Combine(Util.configDir(),
|
|
||||||
"estate_settings.xml"), "ESTATE SETTINGS",
|
|
||||||
loadConfigurationOptions,
|
|
||||||
handleIncomingConfiguration, true);
|
|
||||||
|
|
||||||
l_EstateManagers.Clear();
|
|
||||||
configMember.performConfigurationRetrieve();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Save()
|
public void Save()
|
||||||
|
@ -393,165 +372,5 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
return l_EstateAccess.Contains(user);
|
return l_EstateAccess.Contains(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadConfigurationOptions()
|
|
||||||
{
|
|
||||||
configMember.addConfigurationOption("billable_factor",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_FLOAT,
|
|
||||||
String.Empty, "0.0", true);
|
|
||||||
|
|
||||||
// configMember.addConfigurationOption("estate_id",
|
|
||||||
// ConfigurationOption.ConfigurationTypes.TYPE_UINT32,
|
|
||||||
// String.Empty, "100", true);
|
|
||||||
|
|
||||||
// configMember.addConfigurationOption("parent_estate_id",
|
|
||||||
// ConfigurationOption.ConfigurationTypes.TYPE_UINT32,
|
|
||||||
// String.Empty, "1", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("redirect_grid_x",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_INT32,
|
|
||||||
String.Empty, "0", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("redirect_grid_y",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_INT32,
|
|
||||||
String.Empty, "0", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("price_per_meter",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UINT32,
|
|
||||||
String.Empty, "1", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_name",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_STRING,
|
|
||||||
String.Empty, "My Estate", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_manager_0",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_manager_1",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_manager_2",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_manager_3",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_manager_4",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_manager_5",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_manager_6",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_manager_7",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_manager_8",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("estate_manager_9",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UUID,
|
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000", true);
|
|
||||||
|
|
||||||
configMember.addConfigurationOption("region_flags",
|
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_UINT32,
|
|
||||||
String.Empty, "336723974", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool handleIncomingConfiguration(string configuration_key, object configuration_result)
|
|
||||||
{
|
|
||||||
switch (configuration_key)
|
|
||||||
{
|
|
||||||
case "region_flags":
|
|
||||||
RegionFlags flags = (RegionFlags)(uint)configuration_result;
|
|
||||||
if ((flags & (RegionFlags)(1<<29)) != 0)
|
|
||||||
m_AllowVoice = true;
|
|
||||||
if ((flags & RegionFlags.AllowDirectTeleport) != 0)
|
|
||||||
m_AllowDirectTeleport = true;
|
|
||||||
if ((flags & RegionFlags.DenyAnonymous) != 0)
|
|
||||||
m_DenyAnonymous = true;
|
|
||||||
if ((flags & RegionFlags.DenyIdentified) != 0)
|
|
||||||
m_DenyIdentified = true;
|
|
||||||
if ((flags & RegionFlags.DenyTransacted) != 0)
|
|
||||||
m_DenyTransacted = true;
|
|
||||||
if ((flags & RegionFlags.AbuseEmailToEstateOwner) != 0)
|
|
||||||
m_AbuseEmailToEstateOwner = true;
|
|
||||||
if ((flags & RegionFlags.BlockDwell) != 0)
|
|
||||||
m_BlockDwell = true;
|
|
||||||
if ((flags & RegionFlags.EstateSkipScripts) != 0)
|
|
||||||
m_EstateSkipScripts = true;
|
|
||||||
if ((flags & RegionFlags.ResetHomeOnTeleport) != 0)
|
|
||||||
m_ResetHomeOnTeleport = true;
|
|
||||||
if ((flags & RegionFlags.TaxFree) != 0)
|
|
||||||
m_TaxFree = true;
|
|
||||||
if ((flags & RegionFlags.PublicAllowed) != 0)
|
|
||||||
m_PublicAccess = true;
|
|
||||||
break;
|
|
||||||
case "billable_factor":
|
|
||||||
m_BillableFactor = (float) configuration_result;
|
|
||||||
break;
|
|
||||||
// case "estate_id":
|
|
||||||
// m_EstateID = (uint) configuration_result;
|
|
||||||
// break;
|
|
||||||
// case "parent_estate_id":
|
|
||||||
// m_ParentEstateID = (uint) configuration_result;
|
|
||||||
// break;
|
|
||||||
case "redirect_grid_x":
|
|
||||||
m_RedirectGridX = (int) configuration_result;
|
|
||||||
break;
|
|
||||||
case "redirect_grid_y":
|
|
||||||
m_RedirectGridY = (int) configuration_result;
|
|
||||||
break;
|
|
||||||
case "price_per_meter":
|
|
||||||
m_PricePerMeter = Convert.ToInt32(configuration_result);
|
|
||||||
break;
|
|
||||||
case "estate_name":
|
|
||||||
m_EstateName = (string) configuration_result;
|
|
||||||
break;
|
|
||||||
case "estate_manager_0":
|
|
||||||
AddEstateManager((UUID)configuration_result);
|
|
||||||
break;
|
|
||||||
case "estate_manager_1":
|
|
||||||
AddEstateManager((UUID)configuration_result);
|
|
||||||
break;
|
|
||||||
case "estate_manager_2":
|
|
||||||
AddEstateManager((UUID)configuration_result);
|
|
||||||
break;
|
|
||||||
case "estate_manager_3":
|
|
||||||
AddEstateManager((UUID)configuration_result);
|
|
||||||
break;
|
|
||||||
case "estate_manager_4":
|
|
||||||
AddEstateManager((UUID)configuration_result);
|
|
||||||
break;
|
|
||||||
case "estate_manager_5":
|
|
||||||
AddEstateManager((UUID)configuration_result);
|
|
||||||
break;
|
|
||||||
case "estate_manager_6":
|
|
||||||
AddEstateManager((UUID)configuration_result);
|
|
||||||
break;
|
|
||||||
case "estate_manager_7":
|
|
||||||
AddEstateManager((UUID)configuration_result);
|
|
||||||
break;
|
|
||||||
case "estate_manager_8":
|
|
||||||
AddEstateManager((UUID)configuration_result);
|
|
||||||
break;
|
|
||||||
case "estate_manager_9":
|
|
||||||
AddEstateManager((UUID)configuration_result);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue