Skip to content

Struct subcommands #20

Description

@gak
  • 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions