-
Notifications
You must be signed in to change notification settings - Fork 30
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
Use custom commands instead of observers for spawning #242
Conversation
@alice-i-cecile is this what you had in mind for the simple but limited spawning? Or would you prefer if I used a struct |
src/demo/player.rs
Outdated
/// Command to spawn the player character. | ||
/// We can add fields to this struct if we need data for spawning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Command to spawn the player character. | |
/// We can add fields to this struct if we need data for spawning. | |
/// A command to spawn the player character. |
I don't like the second line here personally. There are a lot of things the user could do to expand on the template, and we're not going to list them all. At the very least this doesn't make sense as a doc comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do however mention things that have a very high probability of coming up and are low-hanging expansions.
I want to keep this comment somewhere in the file, preferably around the struct.
Moved the comment into the struct: d2c59b6
(#242)
Co-authored-by: Ben Frankel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. I think spawn_level
should spawn a parent level entity with a Level
marker component ideally, but this PR doesn't have to change the current behavior.
Part of #203
Alternative to #231
Does not help with #223.