From f3afa68a2af6ad5999e6efe3e4725cb17293108d Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Thu, 14 Feb 2008 12:16:33 +0000
Subject: * Made new Framework.Constants class, added RegionSize member. *
Converted all instances of "256" spotted to use RegionSize instead. Some
approximations used for border crossings (ie 255.9f) are still using that
value, but should be updated to use something based on RegionSize. * Moving
Terrain to a RegionModule, implemented ITerrainChannel and TerrainModule -
nonfunctional, but will be soon.
---
OpenSim/Framework/Constants.cs | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 OpenSim/Framework/Constants.cs
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
new file mode 100644
index 0000000..b308221
--- /dev/null
+++ b/OpenSim/Framework/Constants.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace OpenSim.Framework
+{
+ public class Constants
+ {
+ public const uint RegionSize = 256;
+ }
+}
--
cgit v1.1
From b13836db57f53191b20a60247a59b25888381bea Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Fri, 15 Feb 2008 00:43:20 +0000
Subject: Update svn properties.
---
OpenSim/Framework/Constants.cs | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index b308221..80fdb64 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -1,11 +1,11 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace OpenSim.Framework
-{
- public class Constants
- {
- public const uint RegionSize = 256;
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace OpenSim.Framework
+{
+ public class Constants
+ {
+ public const uint RegionSize = 256;
+ }
+}
--
cgit v1.1
From 3b9d332f84c5107b09fcbbdccc2ca96b293fd248 Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Sun, 17 Feb 2008 01:16:40 +0000
Subject: Added copyright notices.
---
OpenSim/Framework/Constants.cs | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 80fdb64..9eca152 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -1,3 +1,31 @@
+/*
+* Copyright (c) Contributors, http://opensimulator.org/
+* See CONTRIBUTORS.TXT for a full list of copyright holders.
+*
+* Redistribution and use in source and binary forms, with or without
+* modification, are permitted provided that the following conditions are met:
+* * Redistributions of source code must retain the above copyright
+* notice, this list of conditions and the following disclaimer.
+* * Redistributions in binary form must reproduce the above copyright
+* notice, this list of conditions and the following disclaimer in the
+* documentation and/or other materials provided with the distribution.
+* * Neither the name of the OpenSim Project nor the
+* names of its contributors may be used to endorse or promote products
+* derived from this software without specific prior written permission.
+*
+* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
+* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
+* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*
+*/
+
using System;
using System.Collections.Generic;
using System.Text;
--
cgit v1.1
From a3601165029f8484988b5c322798a341ff1e9400 Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Thu, 6 Mar 2008 15:49:53 +0000
Subject: * Disabled ancient TerrainEngine. * Enabled new TerrainModule. (The
king is dead, long live the king!) * Use the console command: "script terrain
save file.r32" / "script terrain load file.r32" to load/save terrain. Now
uses the extension to determine file format. * MANY of the old terrain
features do not have a replacement function in the new module yet, this needs
to be corrected, but has not been done so far. This being said, the new
module is faster and more efficient and should be a good replacement.
---
OpenSim/Framework/Constants.cs | 1 +
1 file changed, 1 insertion(+)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 9eca152..1a4e08b 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -35,5 +35,6 @@ namespace OpenSim.Framework
public class Constants
{
public const uint RegionSize = 256;
+ public const byte TerrainPatchSize = 16;
}
}
--
cgit v1.1
From 47180080f0f4b93c60232b47ca4e093bd7c73a1d Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Tue, 18 Mar 2008 05:16:43 +0000
Subject: Formatting cleanup.
---
OpenSim/Framework/Constants.cs | 51 +++++++++++++++++++++---------------------
1 file changed, 25 insertions(+), 26 deletions(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 1a4e08b..54baab9 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -1,30 +1,29 @@
/*
-* Copyright (c) Contributors, http://opensimulator.org/
-* See CONTRIBUTORS.TXT for a full list of copyright holders.
-*
-* Redistribution and use in source and binary forms, with or without
-* modification, are permitted provided that the following conditions are met:
-* * Redistributions of source code must retain the above copyright
-* notice, this list of conditions and the following disclaimer.
-* * Redistributions in binary form must reproduce the above copyright
-* notice, this list of conditions and the following disclaimer in the
-* documentation and/or other materials provided with the distribution.
-* * Neither the name of the OpenSim Project nor the
-* names of its contributors may be used to endorse or promote products
-* derived from this software without specific prior written permission.
-*
-* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
-* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
-* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*
-*/
+ * Copyright (c) Contributors, http://opensimulator.org/
+ * See CONTRIBUTORS.TXT for a full list of copyright holders.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of the OpenSim Project nor the
+ * names of its contributors may be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
using System;
using System.Collections.Generic;
--
cgit v1.1
From fef3b3689492dea63693c964bcdbec9f5137eb5e Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Mon, 21 Apr 2008 07:09:17 +0000
Subject: * Optimised using statements and namespace references across entire
project (this took a while to run).
---
OpenSim/Framework/Constants.cs | 4 ----
1 file changed, 4 deletions(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 54baab9..66b0885 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -25,10 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using System;
-using System.Collections.Generic;
-using System.Text;
-
namespace OpenSim.Framework
{
public class Constants
--
cgit v1.1
From 375163a6fece8b3a57c7555246abe8338223a599 Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Tue, 29 Apr 2008 14:04:55 +0000
Subject: * Spring cleaning. * Added new generic "Location" class to handle 2D
integer locations. Going to use it to replace all RegionHandle and X,Y
coordinate references throughout the entire project. You have been warned.
---
OpenSim/Framework/Constants.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 66b0885..395b71d 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -32,4 +32,4 @@ namespace OpenSim.Framework
public const uint RegionSize = 256;
public const byte TerrainPatchSize = 16;
}
-}
+}
\ No newline at end of file
--
cgit v1.1
From 63c104efde89ce5b05aa448e12bfc8730271ddb5 Mon Sep 17 00:00:00 2001
From: mingchen
Date: Sun, 4 May 2008 18:59:18 +0000
Subject: *Fixed up EstateManagementModule to the module standard - no more
packets allowed! *Started cleaning up the land module
---
OpenSim/Framework/Constants.cs | 8 ++++++++
1 file changed, 8 insertions(+)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 395b71d..7a7d5d3 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -31,5 +31,13 @@ namespace OpenSim.Framework
{
public const uint RegionSize = 256;
public const byte TerrainPatchSize = 16;
+
+ public enum EstateAccessCodex : uint
+ {
+ AccessOptions = 17,
+ AllowedGroups = 18,
+ EstateBans = 20,
+ EstateManagers = 24
+ }
}
}
\ No newline at end of file
--
cgit v1.1
From a580d7ee35604892941b8e360567540f455b883a Mon Sep 17 00:00:00 2001
From: Sean Dague
Date: Thu, 17 Jul 2008 19:58:41 +0000
Subject: add plywood texture as a constant, as we need it in a couple of
places and it's super cryptic to have random UUIDs hanging out.
---
OpenSim/Framework/Constants.cs | 1 +
1 file changed, 1 insertion(+)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 7a7d5d3..316d2a3 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -31,6 +31,7 @@ namespace OpenSim.Framework
{
public const uint RegionSize = 256;
public const byte TerrainPatchSize = 16;
+ public const string DefaultTexture = "89556747-24cb-43ed-920b-47caed15465f";
public enum EstateAccessCodex : uint
{
--
cgit v1.1
From 52a4c4d82f9c5b808e6c61fd51c1c70e42865565 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Fri, 12 Sep 2008 20:12:03 +0000
Subject: * Check in first part of
http://opensimulator.org/mantis/view.php?id=2073 * This patch aims to
introduce look at direction persistence between logins. It won't be active
until the second part of the patch is committed in about two weeks time. At
this point, region servers that haven't upgraded past this revision may run
into problems * This checkin upgrades the user database. As always, we
recommend you have backups in case something goes wrong. * Many thanks to
tyre for this patch.
---
OpenSim/Framework/Constants.cs | 48 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 47 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 316d2a3..61eb35e 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -24,6 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+using System;
namespace OpenSim.Framework
{
@@ -40,5 +41,50 @@ namespace OpenSim.Framework
EstateBans = 20,
EstateManagers = 24
}
+
+ [Flags]public enum TeleportFlags : uint
+ {
+ /// No flags set, or teleport failed
+ Default = 0,
+ /// Set when newbie leaves help island for first time
+ SetHomeToTarget = 1 << 0,
+ ///
+ SetLastToTarget = 1 << 1,
+ /// Via Lure
+ ViaLure = 1 << 2,
+ /// Via Landmark
+ ViaLandmark = 1 << 3,
+ /// Via Location
+ ViaLocation = 1 << 4,
+ /// Via Home
+ ViaHome = 1 << 5,
+ /// Via Telehub
+ ViaTelehub = 1 << 6,
+ /// Via Login
+ ViaLogin = 1 << 7,
+ /// Linden Summoned
+ ViaGodlikeLure = 1 << 8,
+ /// Linden Forced me
+ Godlike = 1 << 9,
+ ///
+ NineOneOne = 1 << 10,
+ /// Agent Teleported Home via Script
+ DisableCancel = 1 << 11,
+ ///
+ ViaRegionID = 1 << 12,
+ ///
+ IsFlying = 1 << 13,
+ ///
+ ResetHome = 1 << 14,
+ /// forced to new location for example when avatar is banned or ejected
+ ForceRedirect = 1 << 15,
+ /// Teleport Finished via a Lure
+ FinishedViaLure = 1 << 26,
+ /// Finished, Sim Changed
+ FinishedViaNewSim = 1 << 28,
+ /// Finished, Same Sim
+ FinishedViaSameSim = 1 << 29
+ }
+
}
-}
\ No newline at end of file
+}
--
cgit v1.1
From 840de6c036570d559ec6924cd8405d3f34a99fdd Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Mon, 1 Jun 2009 06:37:14 +0000
Subject: Minor: Change OpenSim to OpenSimulator in older copyright headers and
LICENSE.txt.
---
OpenSim/Framework/Constants.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 61eb35e..632431f 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -9,7 +9,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSim Project nor the
+ * * Neither the name of the OpenSimulator Project nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
--
cgit v1.1
From 332463ca94c24bf6706cd40d4c2fa89b1cd13199 Mon Sep 17 00:00:00 2001
From: Melanie
Date: Sat, 9 Jan 2010 15:28:52 +0000
Subject: Fix up the weird Lindenish "setaccess" message. Talk about
strange....
---
OpenSim/Framework/Constants.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 632431f..5757061 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -36,10 +36,10 @@ namespace OpenSim.Framework
public enum EstateAccessCodex : uint
{
- AccessOptions = 17,
- AllowedGroups = 18,
- EstateBans = 20,
- EstateManagers = 24
+ AccessOptions = 1,
+ AllowedGroups = 2,
+ EstateBans = 4,
+ EstateManagers = 8
}
[Flags]public enum TeleportFlags : uint
--
cgit v1.1
From 1955b797598d61548521c444ea8d3721fd5435ba Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Thu, 19 Aug 2010 18:55:30 -0700
Subject: Partial rewrite of client IP verification. Not completely finished
yet, and untested. Committing to move to my other computer.
---
OpenSim/Framework/Constants.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 5757061..1b1aaf2 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -83,7 +83,9 @@ namespace OpenSim.Framework
/// Finished, Sim Changed
FinishedViaNewSim = 1 << 28,
/// Finished, Same Sim
- FinishedViaSameSim = 1 << 29
+ FinishedViaSameSim = 1 << 29,
+ /// Agent coming into the grid from another grid
+ ViaHGLogin = 1 << 30
}
}
--
cgit v1.1
From 874bde366aa3f834957f757aa56a7634becb4415 Mon Sep 17 00:00:00 2001
From: SignpostMarv
Date: Thu, 6 Sep 2012 10:54:45 +0100
Subject: 4096 is used in various places as the maximum height of a region,
refactoring to be a constant
---
OpenSim/Framework/Constants.cs | 1 +
1 file changed, 1 insertion(+)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 1b1aaf2..a2eb5ee 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -31,6 +31,7 @@ namespace OpenSim.Framework
public class Constants
{
public const uint RegionSize = 256;
+ public const uint RegionHeight = 4096;
public const byte TerrainPatchSize = 16;
public const string DefaultTexture = "89556747-24cb-43ed-920b-47caed15465f";
--
cgit v1.1
From 8c1d80fdfd104b94cb7a4fd247b3baa2a9988ea1 Mon Sep 17 00:00:00 2001
From: Robert Adams
Date: Wed, 25 Sep 2013 17:21:20 -0700
Subject: varregion: serious rework of TerrainChannel: -- addition of
varaible region size in X and Y -- internal storage of heightmap changed
from double[] to short[] -- helper routines for handling internal
structure while keeping existing API -- to and from XML that adds region
size information (for downward compatibility, output in the legacy
XML format if X and Y are 256) Updated and commented Constants.RegionSize but
didn't change the name for compatibility.
---
OpenSim/Framework/Constants.cs | 9 +++++++++
1 file changed, 9 insertions(+)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index a2eb5ee..7979132 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -30,9 +30,18 @@ namespace OpenSim.Framework
{
public class Constants
{
+ // 'RegionSize' captures the legacy region size.
+ // DO NOT USE THIS FOR ANY NEW CODE. Use Scene.RegionSize[XYZ] as a region might not
+ // be the legacy region size.
public const uint RegionSize = 256;
public const uint RegionHeight = 4096;
+
+ // Terrain heightmap is kept as shorts that are the float value times this compression factor
+ public const float TerrainCompression = 100.0f;
+ // Since terrain is stored in 16x16 heights, regions must be a multiple of this number and that is the minimum
+ public const int MinRegionSize = 16;
public const byte TerrainPatchSize = 16;
+
public const string DefaultTexture = "89556747-24cb-43ed-920b-47caed15465f";
public enum EstateAccessCodex : uint
--
cgit v1.1
From 7416809077227f35ab70ed44060e51f2bcf66937 Mon Sep 17 00:00:00 2001
From: Robert Adams
Date: Wed, 2 Oct 2013 16:59:37 -0700
Subject: varregion: plug in TerrainData class and modify TerrainModule and
LLClientView to use same. This passes a terrain info class around rather than
passing a one dimensional array thus allowing variable regions. Update the
database storage for variable region sizes. This should be downward
compatible (same format for 256x256 regions).
---
OpenSim/Framework/Constants.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 7979132..9ddb34b 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -40,7 +40,7 @@ namespace OpenSim.Framework
public const float TerrainCompression = 100.0f;
// Since terrain is stored in 16x16 heights, regions must be a multiple of this number and that is the minimum
public const int MinRegionSize = 16;
- public const byte TerrainPatchSize = 16;
+ public const int TerrainPatchSize = 16;
public const string DefaultTexture = "89556747-24cb-43ed-920b-47caed15465f";
--
cgit v1.1
From 97bc5263de990ce80fc0adfbdb632ba8c5cbb77b Mon Sep 17 00:00:00 2001
From: Robert Adams
Date: Wed, 16 Oct 2013 07:52:30 -0700
Subject: varregion: move the compressed heighmap compression factor from
Constants into TerrainData. Save compression factor with the terrain blob in
the database.
---
OpenSim/Framework/Constants.cs | 2 --
1 file changed, 2 deletions(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index 9ddb34b..d18b32e 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -36,8 +36,6 @@ namespace OpenSim.Framework
public const uint RegionSize = 256;
public const uint RegionHeight = 4096;
- // Terrain heightmap is kept as shorts that are the float value times this compression factor
- public const float TerrainCompression = 100.0f;
// Since terrain is stored in 16x16 heights, regions must be a multiple of this number and that is the minimum
public const int MinRegionSize = 16;
public const int TerrainPatchSize = 16;
--
cgit v1.1
From 6cd0d7a62b696d28d488f3cb82838ccf973ccfd7 Mon Sep 17 00:00:00 2001
From: Robert Adams
Date: Sat, 30 Nov 2013 15:28:39 -0800
Subject: varregion: Add MaxRegionSize constant and enforce in RegionInfo.
Intermediate checkin of changing border cross computation from checking
boundry limits to requests to GridService. Not totally functional.
---
OpenSim/Framework/Constants.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index d18b32e..d80808c 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -30,11 +30,13 @@ namespace OpenSim.Framework
{
public class Constants
{
- // 'RegionSize' captures the legacy region size.
+ // 'RegionSize' is the legacy region size.
// DO NOT USE THIS FOR ANY NEW CODE. Use Scene.RegionSize[XYZ] as a region might not
// be the legacy region size.
public const uint RegionSize = 256;
public const uint RegionHeight = 4096;
+ // This could be a parameters but, really, a region of greater than this is pretty unmanageable
+ public const uint MaximumRegionSize = 8192;
// Since terrain is stored in 16x16 heights, regions must be a multiple of this number and that is the minimum
public const int MinRegionSize = 16;
--
cgit v1.1
From 9984ecf862ff7362b0caa6c55554c3fd2243873d Mon Sep 17 00:00:00 2001
From: Robert Adams
Date: Fri, 3 Jan 2014 07:41:06 -0800
Subject: varregion: Add region size to teleport event messages
(EnableSimulator, CorssRegion, TeleportFinishEvent). Have Simian grid service
return the region size. Many teleport related debug log messages. Can be
removed when teleport works (like that's ever going to happen).
---
OpenSim/Framework/Constants.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Constants.cs')
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs
index d80808c..3ba264c 100644
--- a/OpenSim/Framework/Constants.cs
+++ b/OpenSim/Framework/Constants.cs
@@ -31,7 +31,7 @@ namespace OpenSim.Framework
public class Constants
{
// 'RegionSize' is the legacy region size.
- // DO NOT USE THIS FOR ANY NEW CODE. Use Scene.RegionSize[XYZ] as a region might not
+ // DO NOT USE THIS FOR ANY NEW CODE. Use Scene.RegionInfo.RegionSize[XYZ] as a region might not
// be the legacy region size.
public const uint RegionSize = 256;
public const uint RegionHeight = 4096;
--
cgit v1.1