Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: write *Create bevy relations from ldtk entity references* chapter of book #287

Merged
merged 5 commits into from
Jan 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs: proofread final instruction
  • Loading branch information
Trouv committed Jan 31, 2024
commit 6a8123f4b26afbd33ecee385bdef85184268ed8e
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Create a second relational component that stores the actual bevy `Entity` that t
{{ #include ../../../examples/field_instances/mother.rs:26:27 }}
```

Finally, create a ["post-processing"](../explanation/game-logic-integration.html#post-processing-plugin-spawned-entities) system that takes entities with the `Unresolved` component, and replaces it with the relational component.
Finally, create a ["post-processing"](../explanation/game-logic-integration.html#post-processing-plugin-spawned-entities) system that takes entities with the `Unresolved` component, finds the entity with the matching `EntityIid`, and replaces the `Unresolved` component with the relational component.
```rust,no_run
# use bevy::prelude::*;
# use bevy_ecs_ldtk::prelude::*;
Expand Down
Loading