mirror of
https://github.com/zeldaret/botw
synced 2026-08-16 04:44:33 -04:00
ksys/res: Implement GParamList Armor
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class GParamListObjectArmor : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectArmor();
|
||||
const char* getName() const override { return "Armor"; }
|
||||
|
||||
agl::utl::Parameter<s32> mStarNum;
|
||||
agl::utl::Parameter<s32> mDefenceAddLevel;
|
||||
agl::utl::Parameter<sead::SafeString> mWindScaleMesh;
|
||||
agl::utl::Parameter<f32> mWindScale;
|
||||
agl::utl::Parameter<sead::SafeString> mNextRankName;
|
||||
agl::utl::Parameter<sead::Vector3f> mAffectTransOffsetShield;
|
||||
agl::utl::Parameter<sead::Vector3f> mAffectRotOffsetShield;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(GParamListObjectArmor, 0x138);
|
||||
|
||||
inline GParamListObjectArmor::GParamListObjectArmor() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mStarNum.init(0, "StarNum", "", obj);
|
||||
mDefenceAddLevel.init(0, "DefenceAddLevel", "", obj);
|
||||
mWindScaleMesh.init("", "WindScaleMesh", "", obj);
|
||||
mWindScale.init(0.0, "WindScale", "", obj);
|
||||
mNextRankName.init("", "NextRankName", "", obj);
|
||||
mAffectTransOffsetShield.init({0.0, 0.0, 0.0}, "AffectTransOffsetShield", "", obj);
|
||||
mAffectRotOffsetShield.init({0.0, 0.0, 0.0}, "AffectRotOffsetShield", "", 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/resGParamListObjectArmor.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectAttack.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectAttackInterval.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectBindBone.h"
|
||||
@@ -87,6 +88,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
||||
add<GParamListObjType::Player>(archive.getRootList(), "Player", heap, dummy_list);
|
||||
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);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user