use bevy::prelude::*;
#[derive(Debug, Component, Default, Reflect)]
#[reflect(Component)]
pub struct VoxelWorld;
#[derive(Debug, Component, Reflect, PartialEq, Eq, Hash)]
pub struct VoxelChunk {
world_id: Entity,
chunk_coords: IVec3,
}
impl VoxelChunk {
pub(crate) fn new(world_id: Entity, chunk_coords: IVec3) -> Self {
Self {
world_id,
chunk_coords,
}
}
pub fn world_id(&self) -> Entity {
self.world_id
}
pub fn chunk_coords(&self) -> IVec3 {
self.chunk_coords
}
}