mirror of
https://github.com/SMGCommunity/Petari.git
synced 2024-11-23 05:29:50 +00:00
linked SpkData and AnmModelObj
This commit is contained in:
parent
3a50e41bb9
commit
ba448bd9b6
@ -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);
|
||||
};
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user