[][src]Trait oasis_game_core::Store

pub trait Store {
    fn dispatch(&mut self, action: Action) -> Result<(), GameError>;
fn forfeit(&mut self, _: GameError);
fn get_state(&self) -> HashMap<u16, Value>;
fn get_move_names(&self) -> Vec<&'static str>;
fn get_player_id(&self) -> u16;
fn get_active_players(&self) -> Vec<u16>;
fn is_game_over(&self) -> bool; }

Required methods

fn dispatch(&mut self, action: Action) -> Result<(), GameError>

fn forfeit(&mut self, _: GameError)

fn get_state(&self) -> HashMap<u16, Value>

fn get_move_names(&self) -> Vec<&'static str>

fn get_player_id(&self) -> u16

fn get_active_players(&self) -> Vec<u16>

fn is_game_over(&self) -> bool

Loading content...

Implementors

impl<S: Default + Debug + Clone + Serialize + DeserializeOwned, T: UserFlow<S>> Store for StoreImpl<S, T>[src]

Loading content...