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.
Fields of SaveGameState
cell: GameStateCell
frame: Frame
You should load the gamestate in the cell
provided to you.
Fields of LoadGameState
cell: GameStateCell
You should advance the gamestate with the inputs
provided to you.
Disconnected players are indicated by having NULL_FRAME
instead of the correct current frame in their input.