mirror of
https://github.com/zeldaret/botw
synced 2026-08-13 12:09:26 -04:00
ksys/res: Implement GParamList GiantArmor
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class GParamListObjectGiantArmor : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectGiantArmor();
|
||||
const char* getName() const override { return "GiantArmor"; }
|
||||
|
||||
agl::utl::Parameter<f32> mDamageScale;
|
||||
agl::utl::Parameter<sead::Vector3f> mRotOffset;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(GParamListObjectGiantArmor, 0x80);
|
||||
|
||||
inline GParamListObjectGiantArmor::GParamListObjectGiantArmor() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mDamageScale.init(0.0, "DamageScale", "", obj);
|
||||
mRotOffset.init({0.0, 0.0, 0.0}, "RotOffset", "", obj);
|
||||
}
|
||||
|
||||
} // namespace ksys::res
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectExtendedEntity.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectFish.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGeneral.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGiantArmor.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGiantArmorSlot.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGrab.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGuardianMiniWeapon.h"
|
||||
@@ -157,6 +158,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
||||
add<GParamListObjType::HorseCreator>(archive.getRootList(), "HorseCreator", heap, dummy_list);
|
||||
add<GParamListObjType::GiantArmorSlot>(archive.getRootList(), "GiantArmorSlot", heap,
|
||||
dummy_list);
|
||||
add<GParamListObjType::GiantArmor>(archive.getRootList(), "GiantArmor", heap, dummy_list);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user