Trait GameControllerTrait
Source pub trait GameControllerTrait: Send + Sync {
// Required methods
fn save_game_state(&self) -> Result<()>;
fn load_game_state(&self) -> Result<()>;
fn handle_command(&self, command: Command) -> Result<()>;
fn publish_command(&self, command: Command);
fn game_state(&self) -> &Arc<Mutex<GameState>>;
fn event_bus(&self) -> &EventBus;
fn event_bus_mut(&mut self) -> &mut EventBus;
fn command_bus(&self) -> &CommandBus;
fn command_bus_mut(&mut self) -> &mut CommandBus;
}