linked SpkData and AnmModelObj

This commit is contained in:
Gabbo 2024-10-16 23:30:21 +02:00
parent 3a50e41bb9
commit ba448bd9b6
2 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ public:
virtual bool isKilledAtMoveDone() const;
virtual bool isRepeat() const;
virtual void startInner();
virtual void moveInner();
virtual inline void moveInner();
virtual void stopInner();
inline void exeWait();
@ -78,4 +78,4 @@ namespace NrvAnmModelObj {
NERVE_DECL(HostTypeWait, AnmModelObj, AnmModelObj::exeWait);
NERVE_DECL(HostTypeMove, AnmModelObj, AnmModelObj::exeMove);
NERVE_DECL(HostTypeDone, AnmModelObj, AnmModelObj::exeDone);
};
};

View File

@ -5,15 +5,15 @@ SpkData::SpkData(JKRArchive * archive) {
}
void SpkData::loadTable(u16 table) {
void* resource = FUN_8040f918(mArchive, table);
void* resource = mArchive->getResource(table);
mTable.setResource(resource);
}
void SpkData::loadWave(u16 wave) {
void* resource = FUN_8040f918(mArchive, wave);
void* resource = mArchive->getResource(wave);
mWave.setResource(resource);
}
bool SpkData::isValid() const {
return mTable.mInitialized && mWave.mResource;
}
}