Skip to content

Struct subcommands #20

@gak

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions