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

SaveGameState

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: GameStateCellframe: Frame
LoadGameState

You should load the gamestate in the cell provided to you.

Fields of LoadGameState

cell: GameStateCell
AdvanceFrame

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.

Fields of AdvanceFrame

inputs: Vec<GameInput>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.