ecs-lib-rs 0.1.1

An Entity Component System (ECS) Framework for learning.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Error)]
pub enum CustomError {
    #[error("Attempting to add component to an entity without creating component first")]
    CreateComponentNeverCalled,

    #[error("Attempted to reference a component that wasn't registered")]
    ComponentNotRegistered,

    #[error("Attempted to reference an entity that doesn't exist")]
    EntityDoesNotExist,
}