From 5f137b41ebeadfca3907221713f85f2c9fe431bf Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Sun, 23 Aug 2026 11:25:20 -0700 Subject: entityID newtype --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.rs') 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 = sim.entities.keys().cloned().collect(); + let ids: Vec = sim.entities.keys().cloned().collect(); for id in ids { sim.destroy_entity(id); } -- cgit v1.3.1