thedes_dev/command.rs
1mod script;
2mod block;
3
4pub use script::ScriptTable;
5use thedes_domain::game::Game;
6use thedes_gen::event;
7
8pub trait Command {
9 fn run(&self, context: &mut CommandContext) -> anyhow::Result<()>;
10}
11
12#[derive(Debug)]
13pub struct CommandContext<'g, 'e> {
14 pub game: &'g mut Game,
15 pub event_distr_config: &'e mut event::DistrConfig,
16}