You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
455 B

2 years ago
namespace gaemstone.Bloxel;
public static class Constants
2 years ago
{
// <summary> Amount of bit shifting to go from a BlockPos to a ChunkPos. </summary>
public const int ChunkBitShift = 4;
2 years ago
// <summary> Amount of bit masking to go from a BlockPos to a chunk-relative BlockPos. </summary>
public const int ChunkBitMask = ~(~0 << ChunkBitShift);
// <summary> Length of the egde of a world chunk. </summary>
public const int ChunkLength = 1 << ChunkBitShift;
2 years ago
}