diff options
Diffstat (limited to 'OpenSim/Framework/RegionInfo.cs')
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index e7bed6a..6dde62f 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -145,6 +145,7 @@ namespace OpenSim.Framework | |||
145 | public UUID RegionID = UUID.Zero; | 145 | public UUID RegionID = UUID.Zero; |
146 | public string RemotingAddress; | 146 | public string RemotingAddress; |
147 | public UUID ScopeID = UUID.Zero; | 147 | public UUID ScopeID = UUID.Zero; |
148 | private UUID m_maptileStaticUUID = UUID.Zero; | ||
148 | 149 | ||
149 | private Dictionary<String, String> m_otherSettings = new Dictionary<string, string>(); | 150 | private Dictionary<String, String> m_otherSettings = new Dictionary<string, string>(); |
150 | 151 | ||
@@ -340,6 +341,11 @@ namespace OpenSim.Framework | |||
340 | get { return m_regionType; } | 341 | get { return m_regionType; } |
341 | } | 342 | } |
342 | 343 | ||
344 | public UUID MaptileStaticUUID | ||
345 | { | ||
346 | get { return m_maptileStaticUUID; } | ||
347 | } | ||
348 | |||
343 | /// <summary> | 349 | /// <summary> |
344 | /// The port by which http communication occurs with the region (most noticeably, CAPS communication) | 350 | /// The port by which http communication occurs with the region (most noticeably, CAPS communication) |
345 | /// </summary> | 351 | /// </summary> |
@@ -643,7 +649,7 @@ namespace OpenSim.Framework | |||
643 | m_regionType = config.GetString("RegionType", String.Empty); | 649 | m_regionType = config.GetString("RegionType", String.Empty); |
644 | allKeys.Remove("RegionType"); | 650 | allKeys.Remove("RegionType"); |
645 | 651 | ||
646 | #region Prim stuff | 652 | #region Prim and map stuff |
647 | 653 | ||
648 | m_nonphysPrimMin = config.GetFloat("NonPhysicalPrimMin", 0); | 654 | m_nonphysPrimMin = config.GetFloat("NonPhysicalPrimMin", 0); |
649 | allKeys.Remove("NonPhysicalPrimMin"); | 655 | allKeys.Remove("NonPhysicalPrimMin"); |
@@ -665,6 +671,13 @@ namespace OpenSim.Framework | |||
665 | 671 | ||
666 | m_linksetCapacity = config.GetInt("LinksetPrims", 0); | 672 | m_linksetCapacity = config.GetInt("LinksetPrims", 0); |
667 | allKeys.Remove("LinksetPrims"); | 673 | allKeys.Remove("LinksetPrims"); |
674 | |||
675 | allKeys.Remove("MaptileStaticUUID"); | ||
676 | string mapTileStaticUUID = config.GetString("MaptileStaticUUID", UUID.Zero.ToString()); | ||
677 | if (UUID.TryParse(mapTileStaticUUID.Trim(), out m_maptileStaticUUID)) | ||
678 | { | ||
679 | config.Set("MaptileStaticUUID", m_maptileStaticUUID.ToString()); | ||
680 | } | ||
668 | 681 | ||
669 | #endregion | 682 | #endregion |
670 | 683 | ||
@@ -734,6 +747,9 @@ namespace OpenSim.Framework | |||
734 | 747 | ||
735 | if (RegionType != String.Empty) | 748 | if (RegionType != String.Empty) |
736 | config.Set("RegionType", RegionType); | 749 | config.Set("RegionType", RegionType); |
750 | |||
751 | if (m_maptileStaticUUID != UUID.Zero) | ||
752 | config.Set("MaptileStaticUUID", m_maptileStaticUUID.ToString()); | ||
737 | } | 753 | } |
738 | 754 | ||
739 | public bool ignoreIncomingConfiguration(string configuration_key, object configuration_result) | 755 | public bool ignoreIncomingConfiguration(string configuration_key, object configuration_result) |
@@ -832,6 +848,9 @@ namespace OpenSim.Framework | |||
832 | 848 | ||
833 | configMember.addConfigurationOption("region_type", ConfigurationOption.ConfigurationTypes.TYPE_STRING, | 849 | configMember.addConfigurationOption("region_type", ConfigurationOption.ConfigurationTypes.TYPE_STRING, |
834 | "Free form string describing the type of region", String.Empty, true); | 850 | "Free form string describing the type of region", String.Empty, true); |
851 | |||
852 | configMember.addConfigurationOption("region_static_maptile", ConfigurationOption.ConfigurationTypes.TYPE_UUID, | ||
853 | "UUID of a texture to use as the map for this region", m_maptileStaticUUID.ToString(), true); | ||
835 | } | 854 | } |
836 | 855 | ||
837 | public void loadConfigurationOptions() | 856 | public void loadConfigurationOptions() |
@@ -885,6 +904,9 @@ namespace OpenSim.Framework | |||
885 | 904 | ||
886 | configMember.addConfigurationOption("region_type", ConfigurationOption.ConfigurationTypes.TYPE_STRING, | 905 | configMember.addConfigurationOption("region_type", ConfigurationOption.ConfigurationTypes.TYPE_STRING, |
887 | "Region Type", String.Empty, true); | 906 | "Region Type", String.Empty, true); |
907 | |||
908 | configMember.addConfigurationOption("region_static_maptile", ConfigurationOption.ConfigurationTypes.TYPE_UUID, | ||
909 | "UUID of a texture to use as the map for this region", String.Empty, true); | ||
888 | } | 910 | } |
889 | 911 | ||
890 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) | 912 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) |
@@ -957,6 +979,9 @@ namespace OpenSim.Framework | |||
957 | case "region_type": | 979 | case "region_type": |
958 | m_regionType = (string)configuration_result; | 980 | m_regionType = (string)configuration_result; |
959 | break; | 981 | break; |
982 | case "region_static_maptile": | ||
983 | m_maptileStaticUUID = (UUID)configuration_result; | ||
984 | break; | ||
960 | } | 985 | } |
961 | 986 | ||
962 | return true; | 987 | return true; |