diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 72 |
1 files changed, 8 insertions, 64 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index e7bed6a..4bde7be 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -122,13 +122,10 @@ namespace OpenSim.Framework | |||
122 | public UUID lastMapUUID = UUID.Zero; | 122 | public UUID lastMapUUID = UUID.Zero; |
123 | public string lastMapRefresh = "0"; | 123 | public string lastMapRefresh = "0"; |
124 | 124 | ||
125 | private float m_nonphysPrimMin = 0; | ||
126 | private int m_nonphysPrimMax = 0; | 125 | private int m_nonphysPrimMax = 0; |
127 | private float m_physPrimMin = 0; | ||
128 | private int m_physPrimMax = 0; | 126 | private int m_physPrimMax = 0; |
129 | private bool m_clampPrimSize = false; | 127 | private bool m_clampPrimSize = false; |
130 | private int m_objectCapacity = 0; | 128 | private int m_objectCapacity = 0; |
131 | private int m_linksetCapacity = 0; | ||
132 | private int m_agentCapacity = 0; | 129 | private int m_agentCapacity = 0; |
133 | private string m_regionType = String.Empty; | 130 | private string m_regionType = String.Empty; |
134 | private RegionLightShareData m_windlight = new RegionLightShareData(); | 131 | private RegionLightShareData m_windlight = new RegionLightShareData(); |
@@ -290,21 +287,11 @@ namespace OpenSim.Framework | |||
290 | set { m_windlight = value; } | 287 | set { m_windlight = value; } |
291 | } | 288 | } |
292 | 289 | ||
293 | public float NonphysPrimMin | ||
294 | { | ||
295 | get { return m_nonphysPrimMin; } | ||
296 | } | ||
297 | |||
298 | public int NonphysPrimMax | 290 | public int NonphysPrimMax |
299 | { | 291 | { |
300 | get { return m_nonphysPrimMax; } | 292 | get { return m_nonphysPrimMax; } |
301 | } | 293 | } |
302 | 294 | ||
303 | public float PhysPrimMin | ||
304 | { | ||
305 | get { return m_physPrimMin; } | ||
306 | } | ||
307 | |||
308 | public int PhysPrimMax | 295 | public int PhysPrimMax |
309 | { | 296 | { |
310 | get { return m_physPrimMax; } | 297 | get { return m_physPrimMax; } |
@@ -320,11 +307,6 @@ namespace OpenSim.Framework | |||
320 | get { return m_objectCapacity; } | 307 | get { return m_objectCapacity; } |
321 | } | 308 | } |
322 | 309 | ||
323 | public int LinksetCapacity | ||
324 | { | ||
325 | get { return m_linksetCapacity; } | ||
326 | } | ||
327 | |||
328 | public int AgentCapacity | 310 | public int AgentCapacity |
329 | { | 311 | { |
330 | get { return m_agentCapacity; } | 312 | get { return m_agentCapacity; } |
@@ -643,31 +625,16 @@ namespace OpenSim.Framework | |||
643 | m_regionType = config.GetString("RegionType", String.Empty); | 625 | m_regionType = config.GetString("RegionType", String.Empty); |
644 | allKeys.Remove("RegionType"); | 626 | allKeys.Remove("RegionType"); |
645 | 627 | ||
646 | #region Prim stuff | 628 | // Prim stuff |
647 | 629 | // | |
648 | m_nonphysPrimMin = config.GetFloat("NonPhysicalPrimMin", 0); | 630 | m_nonphysPrimMax = config.GetInt("NonphysicalPrimMax", 0); |
649 | allKeys.Remove("NonPhysicalPrimMin"); | 631 | allKeys.Remove("NonphysicalPrimMax"); |
650 | |||
651 | m_nonphysPrimMax = config.GetInt("NonPhysicalPrimMax", 0); | ||
652 | allKeys.Remove("NonPhysicalPrimMax"); | ||
653 | |||
654 | m_physPrimMin = config.GetFloat("PhysicalPrimMin", 0); | ||
655 | allKeys.Remove("PhysicalPrimMin"); | ||
656 | |||
657 | m_physPrimMax = config.GetInt("PhysicalPrimMax", 0); | 632 | m_physPrimMax = config.GetInt("PhysicalPrimMax", 0); |
658 | allKeys.Remove("PhysicalPrimMax"); | 633 | allKeys.Remove("PhysicalPrimMax"); |
659 | |||
660 | m_clampPrimSize = config.GetBoolean("ClampPrimSize", false); | 634 | m_clampPrimSize = config.GetBoolean("ClampPrimSize", false); |
661 | allKeys.Remove("ClampPrimSize"); | 635 | allKeys.Remove("ClampPrimSize"); |
662 | |||
663 | m_objectCapacity = config.GetInt("MaxPrims", 15000); | 636 | m_objectCapacity = config.GetInt("MaxPrims", 15000); |
664 | allKeys.Remove("MaxPrims"); | 637 | allKeys.Remove("MaxPrims"); |
665 | |||
666 | m_linksetCapacity = config.GetInt("LinksetPrims", 0); | ||
667 | allKeys.Remove("LinksetPrims"); | ||
668 | |||
669 | #endregion | ||
670 | |||
671 | m_agentCapacity = config.GetInt("MaxAgents", 100); | 638 | m_agentCapacity = config.GetInt("MaxAgents", 100); |
672 | allKeys.Remove("MaxAgents"); | 639 | allKeys.Remove("MaxAgents"); |
673 | 640 | ||
@@ -706,27 +673,16 @@ namespace OpenSim.Framework | |||
706 | 673 | ||
707 | config.Set("ExternalHostName", m_externalHostName); | 674 | config.Set("ExternalHostName", m_externalHostName); |
708 | 675 | ||
709 | if (m_nonphysPrimMin > 0) | 676 | if (m_nonphysPrimMax != 0) |
710 | config.Set("NonphysicalPrimMax", m_nonphysPrimMin); | ||
711 | |||
712 | if (m_nonphysPrimMax > 0) | ||
713 | config.Set("NonphysicalPrimMax", m_nonphysPrimMax); | 677 | config.Set("NonphysicalPrimMax", m_nonphysPrimMax); |
714 | 678 | if (m_physPrimMax != 0) | |
715 | if (m_physPrimMin > 0) | ||
716 | config.Set("PhysicalPrimMax", m_physPrimMin); | ||
717 | |||
718 | if (m_physPrimMax > 0) | ||
719 | config.Set("PhysicalPrimMax", m_physPrimMax); | 679 | config.Set("PhysicalPrimMax", m_physPrimMax); |
720 | |||
721 | config.Set("ClampPrimSize", m_clampPrimSize.ToString()); | 680 | config.Set("ClampPrimSize", m_clampPrimSize.ToString()); |
722 | 681 | ||
723 | if (m_objectCapacity > 0) | 682 | if (m_objectCapacity != 0) |
724 | config.Set("MaxPrims", m_objectCapacity); | 683 | config.Set("MaxPrims", m_objectCapacity); |
725 | 684 | ||
726 | if (m_linksetCapacity > 0) | 685 | if (m_agentCapacity != 0) |
727 | config.Set("LinksetPrims", m_linksetCapacity); | ||
728 | |||
729 | if (m_agentCapacity > 0) | ||
730 | config.Set("MaxAgents", m_agentCapacity); | 686 | config.Set("MaxAgents", m_agentCapacity); |
731 | 687 | ||
732 | if (ScopeID != UUID.Zero) | 688 | if (ScopeID != UUID.Zero) |
@@ -803,15 +759,9 @@ namespace OpenSim.Framework | |||
803 | configMember.addConfigurationOption("lastmap_refresh", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, | 759 | configMember.addConfigurationOption("lastmap_refresh", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, |
804 | "Last Map Refresh", Util.UnixTimeSinceEpoch().ToString(), true); | 760 | "Last Map Refresh", Util.UnixTimeSinceEpoch().ToString(), true); |
805 | 761 | ||
806 | configMember.addConfigurationOption("nonphysical_prim_min", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, | ||
807 | "Minimum size for nonphysical prims", m_nonphysPrimMin.ToString(), true); | ||
808 | |||
809 | configMember.addConfigurationOption("nonphysical_prim_max", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | 762 | configMember.addConfigurationOption("nonphysical_prim_max", ConfigurationOption.ConfigurationTypes.TYPE_INT32, |
810 | "Maximum size for nonphysical prims", m_nonphysPrimMax.ToString(), true); | 763 | "Maximum size for nonphysical prims", m_nonphysPrimMax.ToString(), true); |
811 | 764 | ||
812 | configMember.addConfigurationOption("physical_prim_min", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, | ||
813 | "Minimum size for nonphysical prims", m_physPrimMin.ToString(), true); | ||
814 | |||
815 | configMember.addConfigurationOption("physical_prim_max", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | 765 | configMember.addConfigurationOption("physical_prim_max", ConfigurationOption.ConfigurationTypes.TYPE_INT32, |
816 | "Maximum size for physical prims", m_physPrimMax.ToString(), true); | 766 | "Maximum size for physical prims", m_physPrimMax.ToString(), true); |
817 | 767 | ||
@@ -821,9 +771,6 @@ namespace OpenSim.Framework | |||
821 | configMember.addConfigurationOption("object_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | 771 | configMember.addConfigurationOption("object_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, |
822 | "Max objects this sim will hold", m_objectCapacity.ToString(), true); | 772 | "Max objects this sim will hold", m_objectCapacity.ToString(), true); |
823 | 773 | ||
824 | configMember.addConfigurationOption("linkset_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | ||
825 | "Max prims an object will hold", m_linksetCapacity.ToString(), true); | ||
826 | |||
827 | configMember.addConfigurationOption("agent_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | 774 | configMember.addConfigurationOption("agent_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, |
828 | "Max avatars this sim will hold", m_agentCapacity.ToString(), true); | 775 | "Max avatars this sim will hold", m_agentCapacity.ToString(), true); |
829 | 776 | ||
@@ -945,9 +892,6 @@ namespace OpenSim.Framework | |||
945 | case "object_capacity": | 892 | case "object_capacity": |
946 | m_objectCapacity = (int)configuration_result; | 893 | m_objectCapacity = (int)configuration_result; |
947 | break; | 894 | break; |
948 | case "linkset_capacity": | ||
949 | m_linksetCapacity = (int)configuration_result; | ||
950 | break; | ||
951 | case "agent_capacity": | 895 | case "agent_capacity": |
952 | m_agentCapacity = (int)configuration_result; | 896 | m_agentCapacity = (int)configuration_result; |
953 | break; | 897 | break; |