aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/world
diff options
context:
space:
mode:
authorAdam Frisby2007-05-27 06:50:23 +0000
committerAdam Frisby2007-05-27 06:50:23 +0000
commit4383a148877bef2f67b4d14977dc49e29af09eb7 (patch)
tree8d941c67672b34db311bdb4953c09742a5d9b707 /OpenSim/OpenSim.RegionServer/world
parent* Added ability to set default terrain to a file in region config. If unable ... (diff)
downloadopensim-SC_OLD-4383a148877bef2f67b4d14977dc49e29af09eb7.zip
opensim-SC_OLD-4383a148877bef2f67b4d14977dc49e29af09eb7.tar.gz
opensim-SC_OLD-4383a148877bef2f67b4d14977dc49e29af09eb7.tar.bz2
opensim-SC_OLD-4383a148877bef2f67b4d14977dc49e29af09eb7.tar.xz
* Region Terrain textures are now loaded from the RegionInfo class rather than being hard coded in the handshake packets.
* Supports: Base0-3 textures, Detail0-3 textures, Start00-11 values, Range00-11 values. * Added notes on how terrain texturing works to their definition in regionInfoBase.
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/world')
-rw-r--r--OpenSim/OpenSim.RegionServer/world/Avatar.cs32
-rw-r--r--OpenSim/OpenSim.RegionServer/world/WorldBase.cs2
2 files changed, 17 insertions, 17 deletions
diff --git a/OpenSim/OpenSim.RegionServer/world/Avatar.cs b/OpenSim/OpenSim.RegionServer/world/Avatar.cs
index 2c1ccdf..a09ce73 100644
--- a/OpenSim/OpenSim.RegionServer/world/Avatar.cs
+++ b/OpenSim/OpenSim.RegionServer/world/Avatar.cs
@@ -389,14 +389,14 @@ namespace OpenSim.world
389 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE,"Avatar.cs:SendRegionhandshake() - Filling in RegionHandshake details"); 389 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE,"Avatar.cs:SendRegionhandshake() - Filling in RegionHandshake details");
390 handshake.RegionInfo.BillableFactor = 0; 390 handshake.RegionInfo.BillableFactor = 0;
391 handshake.RegionInfo.IsEstateManager = false; 391 handshake.RegionInfo.IsEstateManager = false;
392 handshake.RegionInfo.TerrainHeightRange00 = 60; 392 handshake.RegionInfo.TerrainHeightRange00 = regionInfo.m_regInfo.TerrainHeightRange00;
393 handshake.RegionInfo.TerrainHeightRange01 = 60; 393 handshake.RegionInfo.TerrainHeightRange01 = regionInfo.m_regInfo.TerrainHeightRange01;
394 handshake.RegionInfo.TerrainHeightRange10 = 60; 394 handshake.RegionInfo.TerrainHeightRange10 = regionInfo.m_regInfo.TerrainHeightRange10;
395 handshake.RegionInfo.TerrainHeightRange11 = 60; 395 handshake.RegionInfo.TerrainHeightRange11 = regionInfo.m_regInfo.TerrainHeightRange11;
396 handshake.RegionInfo.TerrainStartHeight00 = 10; 396 handshake.RegionInfo.TerrainStartHeight00 = regionInfo.m_regInfo.TerrainStartHeight00;
397 handshake.RegionInfo.TerrainStartHeight01 = 10; 397 handshake.RegionInfo.TerrainStartHeight01 = regionInfo.m_regInfo.TerrainStartHeight01;
398 handshake.RegionInfo.TerrainStartHeight10 = 10; 398 handshake.RegionInfo.TerrainStartHeight10 = regionInfo.m_regInfo.TerrainStartHeight10;
399 handshake.RegionInfo.TerrainStartHeight11 = 10; 399 handshake.RegionInfo.TerrainStartHeight11 = regionInfo.m_regInfo.TerrainStartHeight11;
400 handshake.RegionInfo.SimAccess = 13; 400 handshake.RegionInfo.SimAccess = 13;
401 handshake.RegionInfo.WaterHeight = m_regionWaterHeight; 401 handshake.RegionInfo.WaterHeight = m_regionWaterHeight;
402 uint regionFlags = 72458694; 402 uint regionFlags = 72458694;
@@ -407,14 +407,14 @@ namespace OpenSim.world
407 handshake.RegionInfo.RegionFlags = regionFlags; 407 handshake.RegionInfo.RegionFlags = regionFlags;
408 handshake.RegionInfo.SimName = _enc.GetBytes(m_regionName + "\0"); 408 handshake.RegionInfo.SimName = _enc.GetBytes(m_regionName + "\0");
409 handshake.RegionInfo.SimOwner = new LLUUID("00000000-0000-0000-0000-000000000000"); 409 handshake.RegionInfo.SimOwner = new LLUUID("00000000-0000-0000-0000-000000000000");
410 handshake.RegionInfo.TerrainBase0 = new LLUUID("b8d3965a-ad78-bf43-699b-bff8eca6c975"); 410 handshake.RegionInfo.TerrainBase0 = regionInfo.m_regInfo.TerrainBase0;
411 handshake.RegionInfo.TerrainBase1 = new LLUUID("abb783e6-3e93-26c0-248a-247666855da3"); 411 handshake.RegionInfo.TerrainBase1 = regionInfo.m_regInfo.TerrainBase1;
412 handshake.RegionInfo.TerrainBase2 = new LLUUID("179cdabd-398a-9b6b-1391-4dc333ba321f"); 412 handshake.RegionInfo.TerrainBase2 = regionInfo.m_regInfo.TerrainBase2;
413 handshake.RegionInfo.TerrainBase3 = new LLUUID("beb169c7-11ea-fff2-efe5-0f24dc881df2"); 413 handshake.RegionInfo.TerrainBase3 = regionInfo.m_regInfo.TerrainBase3;
414 handshake.RegionInfo.TerrainDetail0 = new LLUUID("00000000-0000-0000-0000-000000000000"); 414 handshake.RegionInfo.TerrainDetail0 = regionInfo.m_regInfo.TerrainDetail0;
415 handshake.RegionInfo.TerrainDetail1 = new LLUUID("00000000-0000-0000-0000-000000000000"); 415 handshake.RegionInfo.TerrainDetail1 = regionInfo.m_regInfo.TerrainDetail1;
416 handshake.RegionInfo.TerrainDetail2 = new LLUUID("00000000-0000-0000-0000-000000000000"); 416 handshake.RegionInfo.TerrainDetail2 = regionInfo.m_regInfo.TerrainDetail2;
417 handshake.RegionInfo.TerrainDetail3 = new LLUUID("00000000-0000-0000-0000-000000000000"); 417 handshake.RegionInfo.TerrainDetail3 = regionInfo.m_regInfo.TerrainDetail3;
418 handshake.RegionInfo.CacheID = new LLUUID("545ec0a5-5751-1026-8a0b-216e38a7ab37"); 418 handshake.RegionInfo.CacheID = new LLUUID("545ec0a5-5751-1026-8a0b-216e38a7ab37");
419 419
420 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE,"Avatar.cs:SendRegionHandshake() - Sending RegionHandshake packet"); 420 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE,"Avatar.cs:SendRegionHandshake() - Sending RegionHandshake packet");
diff --git a/OpenSim/OpenSim.RegionServer/world/WorldBase.cs b/OpenSim/OpenSim.RegionServer/world/WorldBase.cs
index ea71411..f8fb49d 100644
--- a/OpenSim/OpenSim.RegionServer/world/WorldBase.cs
+++ b/OpenSim/OpenSim.RegionServer/world/WorldBase.cs
@@ -25,7 +25,7 @@ namespace OpenSim.world
25 protected string m_regionName; 25 protected string m_regionName;
26 protected InventoryCache _inventoryCache; 26 protected InventoryCache _inventoryCache;
27 protected AssetCache _assetCache; 27 protected AssetCache _assetCache;
28 protected RegionInfo m_regInfo; 28 public RegionInfo m_regInfo;
29 29
30 public TerrainEngine Terrain; //TODO: Replace TerrainManager with this. 30 public TerrainEngine Terrain; //TODO: Replace TerrainManager with this.
31 protected libsecondlife.TerrainManager TerrainManager; // To be referenced via TerrainEngine 31 protected libsecondlife.TerrainManager TerrainManager; // To be referenced via TerrainEngine