Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
big-brain
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Louis
big-brain
Commits
210efb03
Unverified
Commit
210efb03
authored
4 years ago
by
Kat Marchán
Browse files
Options
Downloads
Patches
Plain Diff
oops. forgot too add to hierarchy
parent
08951036
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
big-brain-derive/src/consideration.rs
+2
-1
2 additions, 1 deletion
big-brain-derive/src/consideration.rs
src/actions.rs
+1
-0
1 addition, 0 deletions
src/actions.rs
with
3 additions
and
1 deletion
big-brain-derive/src/consideration.rs
+
2
−
1
View file @
210efb03
...
@@ -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
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/actions.rs
+
1
−
0
View file @
210efb03
...
@@ -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
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment