helapordo 1.4.12
|
#include "ser_core.h"
Functions | |
bool | writeSerSaveHeader (const char *filename, SerSaveHeader *data) |
Writes passed SerSaveHeader to passed file path. | |
bool | readSerSaveHeader (const char *filename, SerSaveHeader *data) |
Reads SerSaveHeader from passed file path into passed structure. | |
bool | deser_SaveHeader (SerSaveHeader *ser, SaveHeader *deser) |
Converts passed SerSaveHeader into a SaveHeader. | |
SaveHeader * | prep_saveHeader (const char *static_path, Koliseo *kls, bool force_init, bool *did_init, int saveslot_index) |
Tries reading binary save from passed path. | |
bool | appendSerTurncounter (const char *filename, SerTurncounter *data) |
bool | readSerTurncounter (const char *filename, size_t offset, SerTurncounter *data) |
bool | deser_Turncounter (SerTurncounter *ser, Turncounter *deser) |
bool | ser_Turncounter (Turncounter *deser, SerTurncounter *ser) |
bool | deser_Perk (SerPerk *ser, Perk *deser) |
bool | ser_Perk (Perk *deser, SerPerk *ser) |
bool | deser_Skillslot (SerSkillslot *ser, Skillslot *deser) |
bool | ser_Skillslot (Skillslot *deser, SerSkillslot *ser) |
bool | deser_Equip (SerEquip *ser, Equip *deser) |
bool | ser_Equip (Equip *deser, SerEquip *ser) |
bool | deser_Equipslot (SerEquipslot *ser, Equipslot *deser) |
bool | ser_Equipslot (Equipslot *deser, SerEquipslot *ser) |
bool | deser_Specialslot (SerSpecialslot *ser, Specialslot *deser) |
bool | ser_Specialslot (Specialslot *deser, SerSpecialslot *ser) |
bool | deser_Consumable (SerConsumable *ser, Consumable *deser) |
bool | ser_Consumable (Consumable *deser, SerConsumable *ser) |
bool | deser_Artifact (SerArtifact *ser, Artifact *deser) |
bool | ser_Artifact (Artifact *deser, SerArtifact *ser) |
bool | deser_countStats (SerCountstats *ser, countStats *deser) |
bool | ser_countStats (countStats *deser, SerCountstats *ser) |
bool | deser_Enemy (SerEnemy *ser, Enemy *deser) |
bool | ser_Enemy (Enemy *deser, SerEnemy *ser) |
bool | deser_Boss (SerBoss *ser, Boss *deser) |
bool | ser_Boss (Boss *deser, SerBoss *ser) |
bool | deser_Fighter (SerFighter *ser, Fighter *deser) |
bool | ser_Fighter (Fighter *deser, SerFighter *ser) |
bool | deser_FoeParty (SerFoeParty *ser, FoeParty *deser) |
bool | ser_FoeParty (FoeParty *deser, SerFoeParty *ser) |
bool | deser_Chest (SerChest *ser, Chest *deser) |
bool | ser_Chest (Chest *deser, SerChest *ser) |
bool | deser_Treasure (SerTreasure *ser, Treasure *deser) |
bool | ser_Treasure (Treasure *deser, SerTreasure *ser) |
bool | deser_Shop (SerShop *ser, Shop *deser) |
bool | ser_Shop (Shop *deser, SerShop *ser) |
bool | deser_Roadfork (SerRoadfork *ser, Roadfork *deser) |
bool | ser_Roadfork (Roadfork *deser, SerRoadfork *ser) |
bool | deser_Room (SerRoom *ser, Room *deser) |
bool | ser_Room (Room *deser, SerRoom *ser) |
bool | deser_Floor (SerFloor *ser, Floor *deser) |
bool | ser_Floor (Floor *deser, SerFloor *ser) |
bool | deser_Wincon (SerWincon *ser, Wincon *deser) |
bool | ser_Wincon (Wincon *deser, SerWincon *ser) |
bool | deser_Saveslot (SerSaveslot *ser, Saveslot *deser) |
bool | ser_Saveslot (Saveslot *deser, SerSaveslot *ser) |
bool | deser_Path (SerPath *ser, Path *deser) |
bool | ser_Path (Path *deser, SerPath *ser) |
bool | writeSerGamestate (const char *filename, SerGamestate *data) |
bool | appendSerGamestate (const char *filename, SerGamestate *data) |
bool | readSerGamestate (const char *filename, size_t offset, SerGamestate *data) |
bool | deser_Gamestate (SerGamestate *ser, Gamestate *deser) |
bool | ser_Gamestate (Gamestate *deser, SerGamestate *ser) |
bool | prep_Gamestate (Gamestate *gmst, const char *static_path, size_t offset, Koliseo *kls, bool force_init) |
Tries reading binary gamestate from passed path, at passed offset. | |
bool | read_savedir (const char *dirpath) |
bool | deser_GameOptions (SerGameOptions *ser, GameOptions *deser) |
bool | ser_GameOptions (GameOptions *deser, SerGameOptions *ser) |
bool | writeSerGameOptions (const char *filename, SerGameOptions *data) |
bool | appendSerGameOptions (const char *filename, SerGameOptions *data) |
bool | readSerGameOptions (const char *filename, size_t offset, SerGameOptions *data) |
bool | prep_GameOptions (GameOptions *game_options, const char *static_path, size_t offset, Koliseo *kls, bool force_init) |
bool appendSerGameOptions | ( | const char * | filename, |
SerGameOptions * | data ) |
bool appendSerGamestate | ( | const char * | filename, |
SerGamestate * | data ) |
bool appendSerTurncounter | ( | const char * | filename, |
SerTurncounter * | data ) |
bool deser_Artifact | ( | SerArtifact * | ser, |
Artifact * | deser ) |
bool deser_Consumable | ( | SerConsumable * | ser, |
Consumable * | deser ) |
bool deser_countStats | ( | SerCountstats * | ser, |
countStats * | deser ) |
bool deser_Equipslot | ( | SerEquipslot * | ser, |
Equipslot * | deser ) |
bool deser_Fighter | ( | SerFighter * | ser, |
Fighter * | deser ) |
bool deser_FoeParty | ( | SerFoeParty * | ser, |
FoeParty * | deser ) |
bool deser_GameOptions | ( | SerGameOptions * | ser, |
GameOptions * | deser ) |
bool deser_Gamestate | ( | SerGamestate * | ser, |
Gamestate * | deser ) |
bool deser_Roadfork | ( | SerRoadfork * | ser, |
Roadfork * | deser ) |
bool deser_SaveHeader | ( | SerSaveHeader * | ser, |
SaveHeader * | deser ) |
Converts passed SerSaveHeader into a SaveHeader.
ser | The SerSaveHeader to convert. |
deser | The SaveHeader destination. |
bool deser_Saveslot | ( | SerSaveslot * | ser, |
Saveslot * | deser ) |
bool deser_Skillslot | ( | SerSkillslot * | ser, |
Skillslot * | deser ) |
bool deser_Specialslot | ( | SerSpecialslot * | ser, |
Specialslot * | deser ) |
bool deser_Treasure | ( | SerTreasure * | ser, |
Treasure * | deser ) |
bool deser_Turncounter | ( | SerTurncounter * | ser, |
Turncounter * | deser ) |
bool prep_GameOptions | ( | GameOptions * | game_options, |
const char * | static_path, | ||
size_t | offset, | ||
Koliseo * | kls, | ||
bool | force_init ) |
bool prep_Gamestate | ( | Gamestate * | gmst, |
const char * | static_path, | ||
size_t | offset, | ||
Koliseo * | kls, | ||
bool | force_init ) |
Tries reading binary gamestate from passed path, at passed offset.
gmst | Pointer to Gamestate. |
static_path | The path to which we append to find our file. |
offset | The offset of the SerGameState into passed file. |
kls | Koliseo used for allocation. |
force_init | Used to force writing a new SerGamestate. |
SaveHeader * prep_saveHeader | ( | const char * | static_path, |
Koliseo * | kls, | ||
bool | force_init, | ||
bool * | did_init, | ||
int | saveslot_index ) |
Tries reading binary save from passed path.
static_path | The path to which we append to find our file. |
kls | Koliseo used for allocation. |
force_init | When true, forces the write of a new SerSaveHeader. |
did_init | Set to true when a new saveHeader is written. |
saveslot_index | Used to pass current saveslot index. |
bool read_savedir | ( | const char * | dirpath | ) |
bool readSerGameOptions | ( | const char * | filename, |
size_t | offset, | ||
SerGameOptions * | data ) |
bool readSerGamestate | ( | const char * | filename, |
size_t | offset, | ||
SerGamestate * | data ) |
bool readSerSaveHeader | ( | const char * | filename, |
SerSaveHeader * | data ) |
Reads SerSaveHeader from passed file path into passed structure.
filename | The path to read from. |
data | The structure to read into. |
bool readSerTurncounter | ( | const char * | filename, |
size_t | offset, | ||
SerTurncounter * | data ) |
bool ser_Artifact | ( | Artifact * | deser, |
SerArtifact * | ser ) |
bool ser_Consumable | ( | Consumable * | deser, |
SerConsumable * | ser ) |
bool ser_countStats | ( | countStats * | deser, |
SerCountstats * | ser ) |
bool ser_Equipslot | ( | Equipslot * | deser, |
SerEquipslot * | ser ) |
bool ser_Fighter | ( | Fighter * | deser, |
SerFighter * | ser ) |
bool ser_FoeParty | ( | FoeParty * | deser, |
SerFoeParty * | ser ) |
bool ser_GameOptions | ( | GameOptions * | deser, |
SerGameOptions * | ser ) |
bool ser_Gamestate | ( | Gamestate * | deser, |
SerGamestate * | ser ) |
bool ser_Roadfork | ( | Roadfork * | deser, |
SerRoadfork * | ser ) |
bool ser_Saveslot | ( | Saveslot * | deser, |
SerSaveslot * | ser ) |
bool ser_Skillslot | ( | Skillslot * | deser, |
SerSkillslot * | ser ) |
bool ser_Specialslot | ( | Specialslot * | deser, |
SerSpecialslot * | ser ) |
bool ser_Treasure | ( | Treasure * | deser, |
SerTreasure * | ser ) |
bool ser_Turncounter | ( | Turncounter * | deser, |
SerTurncounter * | ser ) |
bool writeSerGameOptions | ( | const char * | filename, |
SerGameOptions * | data ) |
bool writeSerGamestate | ( | const char * | filename, |
SerGamestate * | data ) |
bool writeSerSaveHeader | ( | const char * | filename, |
SerSaveHeader * | data ) |
Writes passed SerSaveHeader to passed file path.
filename | The path to write to. |
data | The structure to write. |