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
4 changed files with 29 additions and 1 deletions
@@ -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
@@ -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