mirror of
https://github.com/zeldaret/botw
synced 2026-07-02 03:40:17 -04:00
ksys/res: Implement GParamList AnimalFollowOffset
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user