Fix debug prints
This commit is contained in:
parent
11b613f492
commit
ac59be0a71
1 changed files with 2 additions and 0 deletions
|
@ -211,6 +211,7 @@ impl World {
|
||||||
entity: Entity,
|
entity: Entity,
|
||||||
component: T,
|
component: T,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
println!("insert component {}", T::debug_name());
|
println!("insert component {}", T::debug_name());
|
||||||
|
|
||||||
let change = ComponentChange::Added(TypeId::of::<T>(), Box::new(component));
|
let change = ComponentChange::Added(TypeId::of::<T>(), Box::new(component));
|
||||||
|
@ -231,6 +232,7 @@ impl World {
|
||||||
&mut self,
|
&mut self,
|
||||||
entity: Entity,
|
entity: Entity,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
println!("remove component {}", T::debug_name());
|
println!("remove component {}", T::debug_name());
|
||||||
|
|
||||||
let change = ComponentChange::Removed(TypeId::of::<T>());
|
let change = ComponentChange::Removed(TypeId::of::<T>());
|
||||||
|
|
Loading…
Reference in a new issue