This commit is contained in:
LunarAkai 2025-08-04 23:06:15 +02:00
commit 022fac5966
8 changed files with 150 additions and 13 deletions

View file

@ -0,0 +1,22 @@
use std::fmt::Error;
use anymap::AnyMap;
use crate::{Entity, ECS};
/// stores Entitys, Components and resources
/// provides methods to search for specific Entitys
#[derive(Debug)]
pub struct World {
ecs: ECS,
resources: AnyMap
}
impl World {
pub fn new() -> Self {
Self {
ecs: ECS::new(),
resources: AnyMap::new(),
}
}
}