Struct ggrs::GameState [−][src]
Expand description
Represents a serialized game state of your game for a single frame. The buffer buffer
holds your state, frame
indicates the associated frame number
and checksum
can additionally be provided for use during a SyncTestSession
. You are expected to return this during save_game_state()
and use them during load_game_state()
.
Fields
frame: Frame
The frame to which this info belongs to.
buffer: Option<Vec<u8>>
The serialized gamestate in bytes.
checksum: u64
The checksum of the gamestate.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GameState
impl UnwindSafe for GameState
Blanket Implementations
Mutably borrows from an owned value. Read more