Skip to content
Snippets Groups Projects
Unverified Commit 210efb03 authored by Kat Marchán's avatar Kat Marchán
Browse files

oops. forgot too add to hierarchy

parent 08951036
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ impl ToTokens for Consideration { ...@@ -72,7 +72,7 @@ impl ToTokens for Consideration {
mod big_brain_cons_builder { mod big_brain_cons_builder {
use super::#ident as Comp; use super::#ident as Comp;
use big_brain::{typetag, serde::Deserialize, Consideration, bevy::prelude::{Entity, Commands}, ConsiderationEnt}; use big_brain::{typetag, serde::Deserialize, Consideration, bevy::prelude::*, ConsiderationEnt};
// use typetag; // use typetag;
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
...@@ -88,6 +88,7 @@ impl ToTokens for Consideration { ...@@ -88,6 +88,7 @@ impl ToTokens for Consideration {
.insert(Comp { .insert(Comp {
#(#field_assignments),* #(#field_assignments),*
}); });
cmd.entity(actor).push_children(&[ent.0]);
ent ent
} }
} }
......
...@@ -26,6 +26,7 @@ impl ActionState { ...@@ -26,6 +26,7 @@ impl ActionState {
cmd.entity(action_ent.0) cmd.entity(action_ent.0)
.insert(ActionState::default()) .insert(ActionState::default())
.insert(manager_wrapper); .insert(manager_wrapper);
cmd.entity(actor).push_children(&[action_ent.0]);
action_ent action_ent
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment