summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_ghostship.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2023-12-18 19:55:24 -0500
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2023-12-18 19:55:24 -0500
commit2498d687ebdca4e035887054fe6fd3b1a4ca09dd (patch)
treec49bae3f8eefeef393e06eeb4e64a39d677af59f /src/d/actor/d_a_ghostship.cpp
parent457a32d3b852d0a4e78567e7437b4382b3dbcb08 (diff)
use enums for file indexes in a few more actors
Diffstat (limited to 'src/d/actor/d_a_ghostship.cpp')
-rw-r--r--src/d/actor/d_a_ghostship.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/d/actor/d_a_ghostship.cpp b/src/d/actor/d_a_ghostship.cpp
index 425c4326..1e5bab71 100644
--- a/src/d/actor/d_a_ghostship.cpp
+++ b/src/d/actor/d_a_ghostship.cpp
@@ -12,6 +12,18 @@
#include "d/d_s_play.h"
#include "d/d_kankyo_wether.h"
+enum AYUSH_RES_FILE_ID { // IDs and indexes are synced
+ /* BDLM */
+ AYUSH_BDL_AYUSH=0x5,
+
+ /* BTK */
+ AYUSH_BTK_AYUSH=0x8,
+
+ /* TEX */
+ AYUSH_BTI_B_GSHIP_HATA=0xB,
+ AYUSH_BTI_B_GSHIP_HO=0xC,
+};
+
// Needed for .data to match.
static f32 dummy1[3] = {1.0f, 1.0f, 1.0f};
static f32 dummy2[3] = {1.0f, 1.0f, 1.0f};
@@ -36,7 +48,7 @@ static BOOL createHeap_CB(fopAc_ac_c* i_this) {
/* 00000118-0000032C .text _createHeap__13daGhostship_cFv */
BOOL daGhostship_c::_createHeap() {
- J3DModelData* modelData = static_cast<J3DModelData*>(dComIfG_getObjectRes(m_arc_name, 5));
+ J3DModelData* modelData = static_cast<J3DModelData*>(dComIfG_getObjectRes(m_arc_name, AYUSH_BDL_AYUSH));
JUT_ASSERT(88, modelData != 0);
mpModel = mDoExt_J3DModel__create(modelData, 0, 0x11020203);
@@ -44,16 +56,16 @@ BOOL daGhostship_c::_createHeap() {
return false;
}
- J3DAnmTextureSRTKey* btk = static_cast<J3DAnmTextureSRTKey*>(dComIfG_getObjectRes(m_arc_name, 8));
+ J3DAnmTextureSRTKey* btk = static_cast<J3DAnmTextureSRTKey*>(dComIfG_getObjectRes(m_arc_name, AYUSH_BTK_AYUSH));
JUT_ASSERT(95, btk != 0);
if(!mBtk.init(modelData, btk, true, J3DFrameCtrl::LOOP_REPEAT_e, 1.0f, 0, -1, false, 0)) {
return false;
}
- ResTIMG* res1 = static_cast<ResTIMG*>(dComIfG_getObjectRes(m_arc_name, 0xB));
- ResTIMG* res2 = static_cast<ResTIMG*>(dComIfG_getObjectRes(m_arc_name, 0xC));
- ResTIMG* res3 = static_cast<ResTIMG*>(dComIfG_getObjectRes(m_cloth_arc_name, 0x3));
+ ResTIMG* res1 = static_cast<ResTIMG*>(dComIfG_getObjectRes(m_arc_name, AYUSH_BTI_B_GSHIP_HATA));
+ ResTIMG* res2 = static_cast<ResTIMG*>(dComIfG_getObjectRes(m_arc_name, AYUSH_BTI_B_GSHIP_HO));
+ ResTIMG* res3 = static_cast<ResTIMG*>(dComIfG_getObjectRes(m_cloth_arc_name, CLOTH_BTI_CLOTHTOON));
mpCloth = dCloth_packetXlu_create(res1, res3, 5, 5, 700.0f, 350.0f, &mTevStr, 0);
mpCloth2 = dCloth_packetXlu_create(res2, res3, 6, 6, 1800.0f, 1000.0f, &mTevStr, 0);