mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-27 18:12:58 -04:00
work on m_Do_audio and d_com_inf_game (#18)
* fix float issues and add decompctx.py tool * work on m_Do_audio and d_com_inf_game * fix build
This commit is contained in:
@@ -309,7 +309,7 @@ public:
|
||||
class dComIfG_inf_c {
|
||||
public:
|
||||
dComIfG_inf_c() { ct(); }
|
||||
~dComIfG_inf_c();
|
||||
~dComIfG_inf_c() {}
|
||||
|
||||
void ct();
|
||||
|
||||
@@ -344,6 +344,10 @@ inline void dComIfGs_setEventReg(u16 i_reg, u8 i_no) {
|
||||
g_dComIfG_gameInfo.save.getEvent().setEventReg(i_reg, i_no);
|
||||
}
|
||||
|
||||
inline u8 dComIfGs_getEventReg(u16 i_reg) {
|
||||
return g_dComIfG_gameInfo.save.getEvent().getEventReg(i_reg);
|
||||
}
|
||||
|
||||
inline BOOL dComIfGs_isEventBit(u16 id) {
|
||||
return g_dComIfG_gameInfo.save.getEvent().isEventBit(id);
|
||||
}
|
||||
@@ -503,6 +507,18 @@ inline dBgS* dComIfG_Bgsp() {
|
||||
return &g_dComIfG_gameInfo.play.mBgS;
|
||||
}
|
||||
|
||||
inline daShip_c* dComIfGp_getShipActor() {
|
||||
return (daShip_c*)g_dComIfG_gameInfo.play.getPlayerPtr(2);
|
||||
}
|
||||
|
||||
inline void dComIfGp_getIkadaShipBeforePos(Vec* o_pos) {
|
||||
*o_pos = g_dComIfG_gameInfo.play.mIkadaLinkPos;
|
||||
}
|
||||
|
||||
inline dStage_stageDt_c& dComIfGp_getStage() {
|
||||
return g_dComIfG_gameInfo.play.getStage();
|
||||
}
|
||||
|
||||
inline daPy_lk_c* daPy_getPlayerLinkActorClass() {
|
||||
return (daPy_lk_c*)g_dComIfG_gameInfo.play.getPlayerPtr(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user