spatial-db/src/storage/interface.rs
2023-09-26 13:26:10 -07:00

12 lines
345 B
Rust

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),
}