mirror of
https://github.com/zeldaret/botw
synced 2026-08-05 01:19:17 -04:00
ksys/res: Implement GParamList Prey
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class GParamListObjectPrey : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectPrey();
|
||||
const char* getName() const override { return "Prey"; }
|
||||
|
||||
agl::utl::Parameter<f32> mEatActorFindRadius;
|
||||
agl::utl::Parameter<f32> mEatActorFindRotDegree;
|
||||
agl::utl::Parameter<f32> mWaitTimeForStartEat;
|
||||
agl::utl::Parameter<bool> mIsEnableGroupEscape;
|
||||
agl::utl::Parameter<f32> mAimEscapeOffsetRate;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(GParamListObjectPrey, 0xd8);
|
||||
|
||||
inline GParamListObjectPrey::GParamListObjectPrey() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mEatActorFindRadius.init(-1.0, "EatActorFindRadius", "", obj);
|
||||
mEatActorFindRotDegree.init(135.0, "EatActorFindRotDegree", "", obj);
|
||||
mWaitTimeForStartEat.init(150.0, "WaitTimeForStartEat", "", obj);
|
||||
mIsEnableGroupEscape.init(true, "IsEnableGroupEscape", "", obj);
|
||||
mAimEscapeOffsetRate.init(1.0, "AimEscapeOffsetRate", "", obj);
|
||||
}
|
||||
|
||||
} // namespace ksys::res
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectNpc.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectNpcEquipment.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectPlayer.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectPrey.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectRod.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectRupee.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSandworm.h"
|
||||
@@ -124,6 +125,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
||||
add<GParamListObjType::NpcEquipment>(archive.getRootList(), "NpcEquipment", heap, dummy_list);
|
||||
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);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user