mirror of https://github.com/zeldaret/tp.git
33 lines
990 B
C
33 lines
990 B
C
#ifndef C_PHASE_H
|
|
#define C_PHASE_H
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
typedef int (*cPhs__Handler)(void*);
|
|
|
|
enum cPhs__Step {
|
|
cPhs_ZERO_e = 0x00,
|
|
cPhs_UNK_1 = 0x01,
|
|
cPhs_UNK_2 = 0x02,
|
|
// names from Wind Waker debug strings
|
|
cPhs_COMPLEATE_e = 0x04,
|
|
cPhs_ERROR_e = 0x05,
|
|
cPhs_NEXT_e = 0x06,
|
|
};
|
|
|
|
typedef struct request_of_phase_process_class {
|
|
cPhs__Handler* mpHandlerTable;
|
|
int mPhaseStep;
|
|
} request_of_phase_process_class;
|
|
|
|
void cPhs_Reset(request_of_phase_process_class* pPhase);
|
|
void cPhs_Set(request_of_phase_process_class* pPhase, cPhs__Handler* pHandlerTable);
|
|
void cPhs_UnCompleate(request_of_phase_process_class* pPhase);
|
|
int cPhs_Compleate(request_of_phase_process_class* pPhase);
|
|
int cPhs_Next(request_of_phase_process_class* pPhase);
|
|
int cPhs_Do(request_of_phase_process_class* pPhase, void* pUserData);
|
|
int cPhs_Handler(request_of_phase_process_class* pPhase, cPhs__Handler* pHandlerTable,
|
|
void* pUserData);
|
|
|
|
#endif /* C_PHASE_H */
|