Commit Graph

6 Commits

Author SHA1 Message Date
Snowiiii
5c0dffbf9d Dynamic chunk loading 2024-09-01 18:04:27 +02:00
lukas0008
8bb00e26be Make ChunkData use Vector2 instead of ChunkCoordinates 2024-08-30 17:40:55 +02:00
lukas0008
5f05a1886b Change coordinates, and add .get_block to ChunkBlocks
- Renamed ChunkRelativeScalar to ChunkRelativeOffset
- Added more traits to Height and ChunkRelativeOffset
- Added .get_block to ChunkBlocks
2024-08-30 15:07:54 +02:00
DaniD3v
cdb0e6b761 Refractored coordinates.rs 2024-08-28 12:52:26 +02:00
DaniD3v
a0260acd8b WORLD_Y_START_AT refactor
Renamed `WORLD_Y_START_AT` to `WORLD_LOWEST_Y`.
Added `WORLD_Y_END_AT`.
Changed the type to i16 for ergonomics.
Moved the constants under the use statements for readability.
2024-08-28 12:51:43 +02:00
DaniD3v
be98a730b0 Added abstraction for coordinates.
These ensure that there aren't any out of bound values
and make the code significantly more readable
2024-08-28 12:38:22 +02:00