Make EntityManager a Resource
This commit is contained in:
parent
ea8b88c58c
commit
a37fdcaabd
2 changed files with 3 additions and 0 deletions
|
@ -9,3 +9,4 @@ assetpath = { workspace = true }
|
|||
serde = { workspace = true }
|
||||
|
||||
engine = { path = "../engine" }
|
||||
ecs = { workspace = true }
|
||||
|
|
|
@ -2,12 +2,14 @@ use std::collections::HashMap;
|
|||
|
||||
use anyhow::Result;
|
||||
use assetpath::AssetPath;
|
||||
use ecs::*;
|
||||
use engine::prelude::*;
|
||||
|
||||
use crate::{animation_info::AnimationInfo, hitbox::HitBox};
|
||||
|
||||
use super::{entity_info::EntityInfo, entity_tags::EntityTags, entityparser::EntityParser};
|
||||
|
||||
#[derive(Resource)]
|
||||
pub struct EntityManager {
|
||||
entity_directory: AssetPath,
|
||||
resource_base_path: String,
|
||||
|
|
Loading…
Reference in a new issue