diff options
author | UbitUmarov | 2019-08-07 21:06:20 +0100 |
---|---|---|
committer | UbitUmarov | 2019-08-07 21:06:20 +0100 |
commit | c043008e04c3cb25b9fc4db62ed064775216d066 (patch) | |
tree | b485825903552d522384fb49c39499226c0399a2 /OpenSim/Region/CoreModules | |
parent | Remove debug output i left in (diff) | |
download | opensim-SC-c043008e04c3cb25b9fc4db62ed064775216d066.zip opensim-SC-c043008e04c3cb25b9fc4db62ed064775216d066.tar.gz opensim-SC-c043008e04c3cb25b9fc4db62ed064775216d066.tar.bz2 opensim-SC-c043008e04c3cb25b9fc4db62ed064775216d066.tar.xz |
add cap EstateChangeInfo
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 986a44f..c91933f 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -1593,6 +1593,44 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
1593 | sendDetailedEstateData(remoteClient, invoice); | 1593 | sendDetailedEstateData(remoteClient, invoice); |
1594 | } | 1594 | } |
1595 | 1595 | ||
1596 | public bool handleEstateChangeInfoCap(string estateName, UUID invoice, | ||
1597 | int sunHour, bool sunFixed, | ||
1598 | bool externallyVisible, | ||
1599 | bool allowDirectTeleport, | ||
1600 | bool denyAnonymous, bool denyAgeUnverified, | ||
1601 | bool alloVoiceChat, bool overridePublicAccess) | ||
1602 | { | ||
1603 | if (sunHour == 0) | ||
1604 | { | ||
1605 | Scene.RegionInfo.EstateSettings.UseGlobalTime = true; | ||
1606 | Scene.RegionInfo.EstateSettings.SunPosition = 0.0; | ||
1607 | } | ||
1608 | else | ||
1609 | { | ||
1610 | Scene.RegionInfo.EstateSettings.UseGlobalTime = false; | ||
1611 | Scene.RegionInfo.EstateSettings.SunPosition = (sunHour - 0x1800) / 1024.0; | ||
1612 | // Warning: FixedSun should be set to True, otherwise this sun position won't be used. | ||
1613 | } | ||
1614 | |||
1615 | Scene.RegionInfo.EstateSettings.PublicAccess = externallyVisible; | ||
1616 | Scene.RegionInfo.EstateSettings.FixedSun = sunFixed; | ||
1617 | Scene.RegionInfo.EstateSettings.AllowDirectTeleport = allowDirectTeleport; | ||
1618 | |||
1619 | Scene.RegionInfo.EstateSettings.DenyAnonymous = denyAnonymous; | ||
1620 | Scene.RegionInfo.EstateSettings.AllowVoice = alloVoiceChat; | ||
1621 | |||
1622 | // taxfree is now AllowAccessOverride | ||
1623 | Scene.RegionInfo.EstateSettings.TaxFree = overridePublicAccess; | ||
1624 | Scene.RegionInfo.EstateSettings.DenyMinors = denyAgeUnverified; | ||
1625 | |||
1626 | Scene.EstateDataService.StoreEstateSettings(Scene.RegionInfo.EstateSettings); | ||
1627 | TriggerEstateInfoChange(); | ||
1628 | |||
1629 | Scene.TriggerEstateSunUpdate(); | ||
1630 | |||
1631 | return true; | ||
1632 | } | ||
1633 | |||
1596 | #endregion | 1634 | #endregion |
1597 | 1635 | ||
1598 | #region Other Functions | 1636 | #region Other Functions |