validate.h (430B)
1 #ifndef PH_ENGINE_VALIDATE_H 2 #define PH_ENGINE_VALIDATE_H 3 4 #include "engine/area.h" 5 #include "engine/battle.h" 6 7 /* Read-only preflight. Returns 0 or -1, with the first error in the optional 8 * caller buffer. World validation loads and releases every configured map. */ 9 int ph_validate_world(const PhWorldSetup *setup, char *error, size_t size); 10 int ph_validate_spells(const PhSpellBook *spells, char *error, size_t size); 11 12 #endif