Initial commit and progress blocking out

This commit is contained in:
Nicholas Novak
2023-09-26 13:26:10 -07:00
commit cef39ef57a
8 changed files with 1602 additions and 0 deletions

11
src/storage/interface.rs Normal file
View File

@@ -0,0 +1,11 @@
use crate::storage::world::{BlockID, BlockPos};
enum StorageInterface {
/// `ChangeBlock` changes the block at the world position given by `world_position` to the
/// target block id `BlockID`
ChangeBlock {
target_state: BlockID,
world_position: BlockPos,
},
ChangeBlockRange(BlockID, BlockPos, BlockPos),
}