forked from mirrors/NBTExplorer
Staged for Anvil branch release.
This commit is contained in:
parent
e3192f7a64
commit
ac82c122dc
7 changed files with 51 additions and 6 deletions
|
@ -30,8 +30,8 @@ using System.Runtime.InteropServices;
|
|||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("1.1.1.0")]
|
||||
[assembly: AssemblyFileVersion("1.1.1.0")]
|
||||
[assembly: AssemblyVersion("1.2.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.2.0.0")]
|
||||
|
||||
// This library is compatible with all CLS-compliant .NET programming languages.
|
||||
[assembly: CLSCompliant(true)]
|
|
@ -713,6 +713,9 @@ namespace Substrate
|
|||
|
||||
levelCopy["Sections"] = sections;
|
||||
|
||||
if (_tileTicks.Count == 0)
|
||||
levelCopy.Remove("TileTicks");
|
||||
|
||||
return levelCopy;
|
||||
}
|
||||
|
||||
|
@ -776,6 +779,9 @@ namespace Substrate
|
|||
|
||||
TagNodeByteArray biomes = new TagNodeByteArray(new byte[elements2]);
|
||||
_biomes = new ZXByteArray(XDIM, ZDIM, biomes);
|
||||
for (int x = 0; x < XDIM; x++)
|
||||
for (int z = 0; z < ZDIM; z++)
|
||||
_biomes[x, z] = BiomeType.Default;
|
||||
|
||||
_entities = new TagNodeList(TagType.TAG_COMPOUND);
|
||||
_tileEntities = new TagNodeList(TagType.TAG_COMPOUND);
|
||||
|
|
35
SubstrateCS/Source/BiomeInfo.cs
Normal file
35
SubstrateCS/Source/BiomeInfo.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Substrate
|
||||
{
|
||||
public class BiomeType
|
||||
{
|
||||
public const int Ocean = 0;
|
||||
public const int Plains = 1;
|
||||
public const int Desert = 2;
|
||||
public const int ExtremeHills = 3;
|
||||
public const int Forest = 4;
|
||||
public const int Taiga = 5;
|
||||
public const int Swampland = 6;
|
||||
public const int River = 7;
|
||||
public const int Hell = 8;
|
||||
public const int Sky = 9;
|
||||
public const int FrozenOcean = 10;
|
||||
public const int FrozenRiver = 11;
|
||||
public const int IcePlains = 12;
|
||||
public const int IceMountains = 13;
|
||||
public const int MushroomIsland = 14;
|
||||
public const int MushroomIslandShore = 15;
|
||||
public const int Beach = 16;
|
||||
public const int DesertHills = 17;
|
||||
public const int ForestHills = 18;
|
||||
public const int TaigaHills = 19;
|
||||
public const int ExtremeHillsEdge = 20;
|
||||
public const int Jungle = 21;
|
||||
public const int JungleHills = 22;
|
||||
|
||||
public const int Default = 255;
|
||||
}
|
||||
}
|
|
@ -11,7 +11,7 @@ namespace Substrate
|
|||
public const int MIN_X = -32000000;
|
||||
public const int MAX_X = 32000000;
|
||||
public const int MIN_Y = 0;
|
||||
public const int MAX_Y = 128;
|
||||
public const int MAX_Y = 256;
|
||||
public const int MIN_Z = -32000000;
|
||||
public const int MAX_Z = 32000000;
|
||||
|
||||
|
|
|
@ -262,7 +262,8 @@ namespace Substrate
|
|||
_spawnZ = 0;
|
||||
_sizeOnDisk = 0;
|
||||
_randomSeed = new Random().Next();
|
||||
_version = 19132;
|
||||
//_version = 19132;
|
||||
_version = 19133;
|
||||
_name = "Untitled";
|
||||
_hardcore = 0;
|
||||
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
<Compile Include="Source\AnvilChunk.cs" />
|
||||
<Compile Include="Source\BetaChunkManager.cs" />
|
||||
<Compile Include="Source\BetaWorld.cs" />
|
||||
<Compile Include="Source\BiomeInfo.cs" />
|
||||
<Compile Include="Source\Core\BlockTileTicks.cs" />
|
||||
<Compile Include="Source\Core\BoundedBlockInterface.cs" />
|
||||
<Compile Include="Source\Core\ItemInterface.cs" />
|
||||
|
@ -152,7 +153,7 @@
|
|||
<Compile Include="Source\Core\BlockInterface.cs" />
|
||||
<Compile Include="Source\Core\BlockKey.cs" />
|
||||
<Compile Include="Source\BlockManager.cs" />
|
||||
<Compile Include="Source\Chunk.cs" />
|
||||
<None Include="Source\Chunk.cs" />
|
||||
<Compile Include="Source\Core\ChunkFile.cs" />
|
||||
<Compile Include="Source\AlphaChunkManager.cs" />
|
||||
<Compile Include="Source\Core\ChunkInterface.cs" />
|
||||
|
|
|
@ -60,8 +60,10 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Source\AlphaWorld.cs" />
|
||||
<Compile Include="Source\AnvilChunk.cs" />
|
||||
<Compile Include="Source\BetaChunkManager.cs" />
|
||||
<Compile Include="Source\BetaWorld.cs" />
|
||||
<Compile Include="Source\BiomeInfo.cs" />
|
||||
<Compile Include="Source\Core\BlockTileTicks.cs" />
|
||||
<Compile Include="Source\Core\BoundedBlockInterface.cs" />
|
||||
<Compile Include="Source\Core\ItemInterface.cs" />
|
||||
|
@ -151,7 +153,7 @@
|
|||
<Compile Include="Source\Core\BlockInterface.cs" />
|
||||
<Compile Include="Source\Core\BlockKey.cs" />
|
||||
<Compile Include="Source\BlockManager.cs" />
|
||||
<Compile Include="Source\Chunk.cs" />
|
||||
<None Include="Source\Chunk.cs" />
|
||||
<Compile Include="Source\Core\ChunkFile.cs" />
|
||||
<Compile Include="Source\AlphaChunkManager.cs" />
|
||||
<Compile Include="Source\Core\ChunkInterface.cs" />
|
||||
|
|
Loading…
Reference in a new issue