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