[−][src]Struct oasis_game_core::StoreImpl
Fields
wrapper: GameWrapper<S, T>
Trait Implementations
impl<S: Default + Debug + Clone + Serialize + DeserializeOwned, T: UserFlow<S>> Store for StoreImpl<S, T>
[src]
fn dispatch(&mut self, action: Action) -> Result<(), GameError>
[src]
fn get_state(&self) -> HashMap<u16, Value>
[src]
fn get_move_names(&self) -> Vec<&'static str>
[src]
fn get_player_id(&self) -> u16
[src]
fn get_active_players(&self) -> Vec<u16>
[src]
fn is_game_over(&self) -> bool
[src]
fn forfeit(&mut self, error: GameError)
[src]
impl<S: Debug + Clone + Serialize + DeserializeOwned + Default, T: UserFlow<S>> InnerStore<S, T> for StoreImpl<S, T>
[src]
fn new(
game: Game<T>,
player_id: u16,
players: Vec<u16>,
multiplayer: bool,
server: bool,
initialize: bool
) -> Self
[src]
game: Game<T>,
player_id: u16,
players: Vec<u16>,
multiplayer: bool,
server: bool,
initialize: bool
) -> Self
fn dispatch(&mut self, action: Action) -> Result<(), GameError>
[src]
fn peek(&self) -> &UserState<S>
[src]
fn reset(&mut self, state: UserState<S>)
[src]
fn get_move_names(&self) -> Vec<&'static str>
[src]
fn get_player_id(&self) -> u16
[src]
fn get_active_players(&self) -> Vec<u16>
[src]
fn is_game_over(&self) -> bool
[src]
fn forfeit(&mut self, error: GameError)
[src]
Auto Trait Implementations
impl<S, T> Send for StoreImpl<S, T> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<S, T> Sync for StoreImpl<S, T> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,