Enum ggrs::GGRSRequest [−][src]
pub enum GGRSRequest { SaveGameState { cell: GameStateCell, frame: Frame, }, LoadGameState { cell: GameStateCell, }, AdvanceFrame { inputs: Vec<GameInput>, }, }
Expand description
Requests that you can receive from the session. Handling them is mandatory.
Variants
You should save the current gamestate in the cell
provided to you. The given frame
is a sanity check: The gamestate you save should be from that frame.
Show fields
Fields of SaveGameState
cell: GameStateCell
frame: Frame
You should load the gamestate in the cell
provided to you.
Show fields
Fields of LoadGameState
cell: GameStateCell
You should advance the gamestate with the inputs
provided to you.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for GGRSRequest
impl Send for GGRSRequest
impl Sync for GGRSRequest
impl Unpin for GGRSRequest
impl !UnwindSafe for GGRSRequest