mirror of https://github.com/zeldaret/botw.git
ksys/res: Implement GParamList GiantArmor
This commit is contained in:
parent
2770d637c7
commit
63c932e396
|
@ -88,6 +88,7 @@ add_executable(uking
|
|||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectExtendedEntity.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectFish.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectGeneral.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectGiantArmor.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectGiantArmorSlot.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectGrab.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectGuardianMiniWeapon.h
|
||||
|
|
|
@ -89202,7 +89202,7 @@
|
|||
0x00000071011a7e24,sub_71011A7E24,12,_ZNK4ksys3res26GParamListObjectHorseRider7getNameEv
|
||||
0x00000071011a7e30,sub_71011A7E30,12,_ZNK4ksys3res28GParamListObjectHorseCreator7getNameEv
|
||||
0x00000071011a7e3c,sub_71011A7E3C,12,_ZNK4ksys3res30GParamListObjectGiantArmorSlot7getNameEv
|
||||
0x00000071011a7e48,sub_71011A7E48,12,
|
||||
0x00000071011a7e48,sub_71011A7E48,12,_ZNK4ksys3res26GParamListObjectGiantArmor7getNameEv
|
||||
0x00000071011a7e54,sub_71011A7E54,12,
|
||||
0x00000071011a7e60,sub_71011A7E60,12,
|
||||
0x00000071011a7e6c,sub_71011A7E6C,12,
|
||||
|
|
Can't render this file because it is too large.
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue