Moonhare_Engine/crates/moonhare_ecs/src/world.rs
2025-08-12 16:36:47 +02:00

22 lines
383 B
Rust

use std::fmt::Error;
use anymap::AnyMap;
use crate::{ECS, Entity};
/// 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(),
}
}
}