refactor
This commit is contained in:
@@ -15,7 +15,9 @@ use crate::components::{
|
||||
CameraComponent, InputComponent, JumpComponent, MeshComponent, MovementComponent,
|
||||
PhysicsComponent, RotateComponent,
|
||||
};
|
||||
use crate::debug::DebugMode;
|
||||
use crate::entity::{EntityHandle, EntityManager};
|
||||
use crate::render::snow::SnowLayer;
|
||||
use crate::state::StateMachine;
|
||||
|
||||
pub use crate::utility::transform::Transform;
|
||||
@@ -107,6 +109,10 @@ pub struct World
|
||||
pub bubble_tags: Storage<()>,
|
||||
pub projectile_tags: Storage<()>,
|
||||
pub dialog_outcomes: Vec<DialogOutcomeEvent>,
|
||||
|
||||
// --- singleton state (not per-entity) ---
|
||||
pub snow_layer: Option<SnowLayer>,
|
||||
pub debug_mode: DebugMode,
|
||||
}
|
||||
|
||||
impl World
|
||||
@@ -145,6 +151,8 @@ impl World
|
||||
bubble_tags: Storage::new(),
|
||||
projectile_tags: Storage::new(),
|
||||
dialog_outcomes: Vec::new(),
|
||||
snow_layer: None,
|
||||
debug_mode: DebugMode::default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user