bones3_core 0.1.0

The core functionality for the Bones Cubed plugin for Bevy.
Documentation
//! Errors that can be triggered when working with voxel queries and commands.

use bevy::ecs::query::QueryEntityError;
use bevy::prelude::*;

/// An error type that is thrown while handling voxel queries.
#[derive(Debug)]
pub enum VoxelQueryError {
    /// Thrown when attempting to read from an invalid or non-existent world.
    WorldNotFound(Entity),

    /// Throw when there is no chunk located at the given chunk coordinates
    /// within a specific world.
    ChunkNotFound(Entity, IVec3),

    /// Thrown when attempting to spawn a new chunk that already exists.
    ChunkAlreadyExists(Entity, IVec3),

    /// A standard Bevy query error.
    QueryError(QueryEntityError),
}