papermario/include/si.h

29 lines
881 B
C
Raw Normal View History

2020-08-15 23:12:50 +02:00
#ifndef _SI_H_
2020-08-16 08:55:51 +02:00
#define _SI_H_
2020-08-19 02:21:04 +02:00
#include "ultra64.h"
#include "types.h"
2020-09-22 23:36:30 +02:00
#include "macros.h"
2020-10-02 08:07:54 +02:00
#include "common_structs.h"
2020-08-19 02:21:04 +02:00
#define SI_VAR_0 0xFE363C80
2020-08-16 08:55:51 +02:00
/* Return type of si_execute_next_command */
#define SI_CONTINUE 0 /* Continue to next command */
#define SI_ABORT 1 /* Quit execution */
#define SI_FINISH 255 /* Return from script */
/* Return type of script API functions */
typedef s32 ApiStatus;
#define ApiStatus_BLOCK 0 /* Call again next frame */
#define ApiStatus_DONE1 1 /* Unconditional. Probably only exists to return a bool from functions */
#define ApiStatus_DONE2 2 /* Conditional on ScriptInstance->disableScripts */
#define ApiStatus_REPEAT 3 /* Call again immediately */
#define ApiStatus_FINISH 255 /* Corresponds to SI_FINISH */
2020-10-02 08:07:54 +02:00
struct ScriptInstance;
typedef ApiStatus (*ApiFunc)(struct ScriptInstance* script, s32 isInitialCall);
2020-09-22 23:36:30 +02:00
2020-08-15 18:36:00 +02:00
#endif