mirror of
https://github.com/zeldaret/botw
synced 2026-08-15 04:33:28 -04:00
ksys/res: Implement GParamList ArmorEffect
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 GParamListObjectArmorEffect : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectArmorEffect();
|
||||
const char* getName() const override { return "ArmorEffect"; }
|
||||
|
||||
agl::utl::Parameter<sead::SafeString> mEffectType;
|
||||
agl::utl::Parameter<s32> mEffectLevel;
|
||||
agl::utl::Parameter<bool> mAncientPowUp;
|
||||
agl::utl::Parameter<bool> mEnableClimbWaterfall;
|
||||
agl::utl::Parameter<bool> mEnableSpinAttack;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(GParamListObjectArmorEffect, 0xe0);
|
||||
|
||||
inline GParamListObjectArmorEffect::GParamListObjectArmorEffect() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mEffectType.init("None", "EffectType", "", obj);
|
||||
mEffectLevel.init(0, "EffectLevel", "", obj);
|
||||
mAncientPowUp.init(false, "AncientPowUp", "", obj);
|
||||
mEnableClimbWaterfall.init(false, "EnableClimbWaterfall", "", obj);
|
||||
mEnableSpinAttack.init(false, "EnableSpinAttack", "", obj);
|
||||
}
|
||||
|
||||
} // namespace ksys::res
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "KingSystem/ActorSystem/actActorParamMgr.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectArmor.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectArmorEffect.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectAttack.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectAttackInterval.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectBindBone.h"
|
||||
@@ -89,6 +90,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
||||
add<GParamListObjType::Camera>(archive.getRootList(), "Camera", heap, dummy_list);
|
||||
add<GParamListObjType::Grab>(archive.getRootList(), "Grab", heap, dummy_list);
|
||||
add<GParamListObjType::Armor>(archive.getRootList(), "Armor", heap, dummy_list);
|
||||
add<GParamListObjType::ArmorEffect>(archive.getRootList(), "ArmorEffect", heap, dummy_list);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user