added log! macro
This commit is contained in:
parent
86f9333aec
commit
b45d04b872
5 changed files with 140 additions and 522 deletions
|
|
@ -180,8 +180,11 @@ impl Simulation {
|
|||
|
||||
#[cfg(feature = "json")]
|
||||
pub fn read_log(&self) -> serde_json::Value {
|
||||
use entity_registry::EntityRegistry;
|
||||
|
||||
let log = self.0.world.resource::<Log>();
|
||||
log.to_value()
|
||||
let registry = self.0.world.resource::<EntityRegistry>();
|
||||
log.to_value(registry)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue