diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2026-08-23 11:25:20 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2026-08-23 11:25:20 -0700 |
| commit | 5f137b41ebeadfca3907221713f85f2c9fe431bf (patch) | |
| tree | 80e271c7ad5fd074f27b33dcdcdafafc391d2d13 /src/main.rs | |
| parent | 80824a8b69b70e6e40577e4f0236c28c4ad5c15b (diff) | |
entityID newtype
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 7620f92..0daef91 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,6 +30,7 @@ use crate::{ sim::{ cell::Cell, cell_manager::manager::CellManager, + entity::EntityId, lib::force::{apply_bullet, apply_explosion}, rb_manager::DebugRenderMode, sim_manager::{SimCtx, SimManager}, @@ -310,7 +311,7 @@ impl ApplicationHandler for App { KeyCode::KeyC => sim.cell_manager = CellManager::from_default_size(), KeyCode::KeyP => sim.particle_manager.particles = Vec::new(), KeyCode::KeyV => { - let ids: Vec<u32> = sim.entities.keys().cloned().collect(); + let ids: Vec<EntityId> = sim.entities.keys().cloned().collect(); for id in ids { sim.destroy_entity(id); } |
