helapordo 1.4.12
Loading...
Searching...
No Matches
SerGamestate Struct Reference

Serialized Gamestate. More...

#include <ser_core.h>

Collaboration diagram for SerGamestate:

Data Fields

int64_t start_time
 Keeps track of game start time.
 
SerCountstats stats
 Keeps track of stats for the game.
 
int8_t current_fighters
 Keeps track of Fighter number for the game.
 
int32_t current_roomtype
 Keeps track of current room type.
 
int8_t current_room_index
 Keeps track of current room index.
 
int8_t current_enemy_index
 Keeps track of current enemy index.
 
SerWincon wincon
 Keeps track of current Wincon.
 
SerPath path
 Keeps track of current Path.
 
SerFighter player
 Keeps track of current Player.
 
int32_t gamemode
 Keeps track of current Gamemode.
 
SerFloor current_floor
 Pointer to current floor, initialised when gamemode==Rogue.
 
SerRoom current_room
 Pointer to current room.
 
bool is_seeded
 Denotes if the current game was started with a set seed.
 

Detailed Description

Serialized Gamestate.

Packed struct. Can be turned into a Gamestate with deser_Gamestate(). Can be obtained from a Gamestate with ser_Gamestate().

See also
Gamestate
deser_Gamestate()
ser_Gamestate()

Field Documentation

◆ current_enemy_index

int8_t SerGamestate::current_enemy_index

Keeps track of current enemy index.

◆ current_fighters

int8_t SerGamestate::current_fighters

Keeps track of Fighter number for the game.

◆ current_floor

SerFloor SerGamestate::current_floor

Pointer to current floor, initialised when gamemode==Rogue.

◆ current_room

SerRoom SerGamestate::current_room

Pointer to current room.

◆ current_room_index

int8_t SerGamestate::current_room_index

Keeps track of current room index.

◆ current_roomtype

int32_t SerGamestate::current_roomtype

Keeps track of current room type.

◆ gamemode

int32_t SerGamestate::gamemode

Keeps track of current Gamemode.

◆ is_seeded

bool SerGamestate::is_seeded

Denotes if the current game was started with a set seed.

◆ path

SerPath SerGamestate::path

Keeps track of current Path.

◆ player

SerFighter SerGamestate::player

Keeps track of current Player.

◆ start_time

int64_t SerGamestate::start_time

Keeps track of game start time.

◆ stats

SerCountstats SerGamestate::stats

Keeps track of stats for the game.

◆ wincon

SerWincon SerGamestate::wincon

Keeps track of current Wincon.


The documentation for this struct was generated from the following file: