save.h (440B)
1 #ifndef PH_ENGINE_SAVE_H 2 #define PH_ENGINE_SAVE_H 3 4 #include "engine/area.h" 5 #include "engine/battle.h" 6 7 enum { PH_SAVE_VERSION = 1 }; 8 9 int ph_save_write(const char *path, PhWorld *world, const PhSpellBook *spells); 10 /* Returns 1 when loaded, 0 when no save exists, and -1 for an invalid save. */ 11 int ph_save_load(const char *path, PhWorld *world, const PhWorldSetup *setup, 12 PhSpellBook *spells, float viewport_w, float viewport_h); 13 14 #endif