resources (not fully working yet)

This commit is contained in:
2025-07-06 02:12:10 -05:00
parent 4dfbee5984
commit 5fabd1a8ab
4 changed files with 42 additions and 9 deletions
+4 -3
View File
@@ -1,9 +1,10 @@
pub mod id;
pub mod tick;
pub mod velocity;
pub mod resources;
use std::{
any::Any,
any::{type_name, Any},
fmt::Debug,
sync::{Arc, Mutex},
};
@@ -45,8 +46,8 @@ impl<E: Event + 'static> Handler<E> {
}
}
impl<T: Event> Debug for Handler<T> {
impl<E: Event> Debug for Handler<E> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Handler")
write!(f, "Handler({})", type_name::<E>())
}
}