Files
tp/include/SComponent/c_phase.h
T

33 lines
940 B
C
Raw Normal View History

2020-11-30 14:26:55 -08:00
#ifndef SCOMPONENT_C_PHASE_H
#define SCOMPONENT_C_PHASE_H
2020-12-26 11:31:49 -05:00
typedef int (*cPhs__Handler)(void*);
2020-11-30 14:26:55 -08:00
enum cPhs__Step {
2020-12-26 11:31:49 -05:00
cPhs_ZERO_e = 0x00,
2020-11-30 14:26:55 -08:00
// names from Wind Waker debug strings
cPhs_COMPLEATE_e = 0x04,
2020-12-26 11:31:49 -05:00
cPhs_ERROR_e = 0x05,
cPhs_NEXT_e = 0x06,
2020-11-30 14:26:55 -08:00
};
2020-12-31 21:12:29 +01:00
typedef struct request_of_phase_process_class {
2020-12-26 11:31:49 -05:00
cPhs__Handler* mpHandlerTable;
2020-11-30 14:26:55 -08:00
int mPhaseStep;
2020-12-31 21:12:29 +01:00
} request_of_phase_process_class;
2020-11-30 14:26:55 -08:00
extern "C" {
2020-12-26 11:31:49 -05:00
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);
2020-11-30 14:26:55 -08:00
};
#endif