ksys/res: Implement GParamList AnimalFollowOffset

This commit is contained in:
Léo Lam 2020-09-20 11:44:40 +02:00
parent ee9dfe6ae3
commit 2fd514a30d
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
4 changed files with 29 additions and 1 deletions

View File

@ -64,6 +64,7 @@ add_executable(uking
src/KingSystem/MessageSystem/mesTransceiver.h
src/KingSystem/Resource/GeneralParamList/resGParamListObject.h
src/KingSystem/Resource/GeneralParamList/resGParamListObjectAnimalFollowOffset.h
src/KingSystem/Resource/GeneralParamList/resGParamListObjectArmor.h
src/KingSystem/Resource/GeneralParamList/resGParamListObjectArmorEffect.h
src/KingSystem/Resource/GeneralParamList/resGParamListObjectArmorHead.h

View File

@ -89188,7 +89188,7 @@
0x00000071011a7d7c,sub_71011A7D7C,12,_ZNK4ksys3res20GParamListObjectZora7getNameEv
0x00000071011a7d88,sub_71011A7D88,12,_ZNK4ksys3res24GParamListObjectTraveler7getNameEv
0x00000071011a7d94,sub_71011A7D94,12,_ZNK4ksys3res20GParamListObjectPrey7getNameEv
0x00000071011a7da0,sub_71011A7DA0,12,
0x00000071011a7da0,sub_71011A7DA0,12,_ZNK4ksys3res34GParamListObjectAnimalFollowOffset7getNameEv
0x00000071011a7dac,sub_71011A7DAC,12,
0x00000071011a7db8,sub_71011A7DB8,12,
0x00000071011a7dc4,sub_71011A7DC4,12,

Can't render this file because it is too large.

View File

@ -0,0 +1,24 @@
#pragma once
#include <agl/Utils/aglParameter.h>
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
#include "KingSystem/Utils/Types.h"
namespace ksys::res {
class GParamListObjectAnimalFollowOffset : public GParamListObject {
public:
GParamListObjectAnimalFollowOffset();
const char* getName() const override { return "AnimalFollowOffset"; }
agl::utl::Parameter<sead::Vector3f> mEatLocalOffset;
};
KSYS_CHECK_SIZE_NX150(GParamListObjectAnimalFollowOffset, 0x60);
inline GParamListObjectAnimalFollowOffset::GParamListObjectAnimalFollowOffset() {
auto* const obj = &mObj;
mEatLocalOffset.init({0.0, 0.0, 0.0}, "EatLocalOffset", "", obj);
}
} // namespace ksys::res

View File

@ -3,6 +3,7 @@
#include <prim/seadRuntimeTypeInfo.h>
#include "KingSystem/ActorSystem/actActorParamMgr.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectAnimalFollowOffset.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectArmor.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectArmorEffect.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectArmorHead.h"
@ -126,6 +127,8 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
add<GParamListObjType::Zora>(archive.getRootList(), "Zora", heap, dummy_list);
add<GParamListObjType::Traveler>(archive.getRootList(), "Traveler", heap, dummy_list);
add<GParamListObjType::Prey>(archive.getRootList(), "Prey", heap, dummy_list);
add<GParamListObjType::AnimalFollowOffset>(archive.getRootList(), "AnimalFollowOffset", heap,
dummy_list);
// TODO: the rest