This commit is contained in:
Jonas H
2026-03-28 11:16:06 +01:00
parent a79c824540
commit e6c8c259e7
7 changed files with 489 additions and 415 deletions

View File

@@ -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(),
}
}