???
This commit is contained in:
parent
5587a7dc35
commit
022fac5966
8 changed files with 150 additions and 13 deletions
22
crates/moonhare_ecs/src/world.rs
Normal file
22
crates/moonhare_ecs/src/world.rs
Normal 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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue