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

Struct subcommands #20

Open
gak opened this issue Feb 28, 2024 · 0 comments
Open

Struct subcommands #20

gak opened this issue Feb 28, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request p2:medium

Comments

@gak
Copy link
Member

gak commented Feb 28, 2024

  • Required fields must be in order and have no key.
  • Optionals must have a key.
  • Vec (or unpredictable sized) types can not have a value after it, including optionals.
enum Actions {
  Spawn(SpawnAction),
}

struct SpawnAction {
  Actor: ActorType,
  Position: Vec2,
  Health:  Option<u32>,
}
/spawn frog 0 0 0 health 10
@gak gak self-assigned this Feb 29, 2024
@gak gak added enhancement New feature or request p2:medium labels Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p2:medium
Projects
None yet
Development

No branches or pull requests

1 participant