yog_event/command.rs
1//! Commands mods declare: what the host registers with the game.
2
3use yog_data::Schema;
4
5/// A command a mod handles (the `command/declare` service): its name, and its arguments' types
6/// (`int player`, see `yog_command::Fit`) — `None`: plain, whatever is
7/// typed. A name may be declared with several schemas.
8#[derive(Debug, Clone, PartialEq, Schema)]
9pub struct CommandSpec {
10 pub name: String,
11 pub schema: Option<String>,
12}
13
14/// Every declared command, for the host to register.
15#[derive(Debug, Clone, Schema)]
16pub struct Declared {}