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.
17 lines
526 B
17 lines
526 B
using gaemstone.ECS; |
|
|
|
namespace gaemstone.Bloxel; |
|
|
|
[Component] |
|
public readonly struct Chunk |
|
{ |
|
// <summary> Length of the egde of a world chunk. </summary> |
|
public const int LENGTH = 16; |
|
// <summary> Amount of bit shifting to go from a BlockPos to a ChunkPos. </summary> |
|
public const int BIT_SHIFT = 4; |
|
// <summary> Amount of bit masking to go from a BlockPos to a chunk-relative BlockPos. </summary> |
|
public const int BIT_MASK = 0b1111; |
|
|
|
public ChunkPos Position { get; } |
|
public Chunk(ChunkPos pos) => Position = pos; |
|
}
|
|
|