mirror of
https://github.com/zeldaret/ss
synced 2026-06-08 20:20:24 -04:00
98f7e90125
* Fix .data sections misidentified as .rodata by dtk dtk can't always reliably identify REL sections in its initial analysis. This is a manual fix - the list of RELs to fix was found by looking at supposed .rodata splits that contained an fBase vtable, since vtables should be in .data. This fix is required for scripted creation of REL actors based on rel .data * More consistent d/t header paths * Data fixups for parsing * Tmp actor file setup * Fixes * Set up almost all REL templates * formatting * Fix formatting
37 lines
718 B
C++
37 lines
718 B
C++
#ifndef D_T_TIMER_H
|
|
#define D_T_TIMER_H
|
|
|
|
#include <d/a/d_a_base.h>
|
|
#include <d/t/d_tg.h>
|
|
|
|
class dTgTimer_c : public dTg_c {
|
|
public:
|
|
dTgTimer_c() {}
|
|
virtual ~dTgTimer_c() {}
|
|
|
|
virtual int create() override;
|
|
virtual int actorExecute() override;
|
|
|
|
int getSubtypeFromParams();
|
|
u16 getTimerFromParams();
|
|
|
|
u16 getCheckSceneflag();
|
|
u16 getSetSceneflag();
|
|
u16 getTimer();
|
|
void setTimer(u16 val);
|
|
u16 getTargetTime();
|
|
bool checkShouldTrigger();
|
|
u16 getStoredTargetTime();
|
|
|
|
u16 getConstant0x50();
|
|
void incrementTimer();
|
|
void resetTimer();
|
|
u16 getConstant0x50_Thunk();
|
|
|
|
u16 (dTgTimer_c::*mGetTargetTimeFunc)();
|
|
u16 mTimer;
|
|
u16 mTargetTime;
|
|
};
|
|
|
|
#endif
|