mirror of
https://github.com/zeldaret/tp
synced 2026-08-02 08:32:23 -04:00
d_event_debug equivalent & modifications to dEvLib_callback_c (#2359)
* WIP d_event_debug * Implemented most functions close to matching * Removed erroneous comment in d_com_inf_game.h * Implemented getEventP in dEvDtBase_c * Retyped dEvLib_callback_c function returns from BOOL to bool * Implemented getHeader, getEventList, and setDbgData in dEvent_manager_c * Moved relevant dEvDb_* classes from d_event.h to d_event_debug.h and changed to structs * Extended JORFile mFilename character array from 8 to 256 characters * Implemented combo boxes and update slider functionalities in JORMContext * Named field_0xC of JORProperyEvent as id, based on use of field in d_event_debug.cpp * Corrected debug event tables and created missing table * Debug tables explicitly pasted in d_event_debug.cpp to circumvent ShiftJIS not properly encoding tables via #include directive * Change return types for implemented virtual functions of actors that inherit from dEvLib_callback_c * Add const modifier to several d_com_inf_game functions called in d_event_debug, and change respective fields in dEvDb_bit & reg_c to be const * d_event_debug Equivalent * Changed configure.py entry to equivalent instead of matching * Preliminary documentation * Remove debug tables from d_event.cpp
This commit is contained in:
+13
-13
@@ -7,7 +7,7 @@ class fopAc_ac_c;
|
||||
|
||||
template <typename A0>
|
||||
struct action_class {
|
||||
typedef BOOL (A0::*fptr)();
|
||||
typedef bool (A0::*fptr)();
|
||||
fptr init;
|
||||
fptr execute;
|
||||
|
||||
@@ -28,21 +28,21 @@ public:
|
||||
mAction = NULL;
|
||||
}
|
||||
|
||||
/* 8004886C */ BOOL eventUpdate();
|
||||
/* 800488A4 */ BOOL setEvent(int, int, int);
|
||||
/* 8004886C */ bool eventUpdate();
|
||||
/* 800488A4 */ bool setEvent(int, int, int);
|
||||
/* 80048940 */ void orderEvent(int, int, int);
|
||||
/* 80048970 */ BOOL setAction(action_class<dEvLib_callback_c>*);
|
||||
/* 800489A8 */ BOOL initAction();
|
||||
/* 800489F8 */ BOOL executeAction();
|
||||
/* 80048A50 */ BOOL initStart();
|
||||
/* 80048A70 */ BOOL executeStart();
|
||||
/* 80048B1C */ BOOL initRun();
|
||||
/* 80048B48 */ BOOL executeRun();
|
||||
/* 80048970 */ bool setAction(action_class<dEvLib_callback_c>*);
|
||||
/* 800489A8 */ bool initAction();
|
||||
/* 800489F8 */ bool executeAction();
|
||||
/* 80048A50 */ bool initStart();
|
||||
/* 80048A70 */ bool executeStart();
|
||||
/* 80048B1C */ bool initRun();
|
||||
/* 80048B48 */ bool executeRun();
|
||||
|
||||
virtual ~dEvLib_callback_c() {}
|
||||
virtual BOOL eventStart() { return TRUE; }
|
||||
virtual BOOL eventRun() { return TRUE; }
|
||||
virtual BOOL eventEnd() { return TRUE; }
|
||||
virtual bool eventStart() { return true; }
|
||||
virtual bool eventRun() { return true; }
|
||||
virtual bool eventEnd() { return true; }
|
||||
|
||||
/* 0x4 */ fopAc_ac_c* mActor;
|
||||
/* 0x8 */ action_class<dEvLib_callback_c>* mAction;
|
||||
|
||||
Reference in New Issue
Block a user