ksys/res: Implement GParamList ShiekerStone

This commit is contained in:
Léo Lam 2020-09-20 01:16:34 +02:00
parent 9aa37fdf5a
commit 2d566fbbd9
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
4 changed files with 39 additions and 2 deletions

View File

@ -85,6 +85,7 @@ add_executable(uking
src/KingSystem/Resource/GeneralParamList/resGParamListObjectPlayer.h
src/KingSystem/Resource/GeneralParamList/resGParamListObjectRod.h
src/KingSystem/Resource/GeneralParamList/resGParamListObjectSandworm.h
src/KingSystem/Resource/GeneralParamList/resGParamListObjectShiekerStone.h
src/KingSystem/Resource/GeneralParamList/resGParamListObjectShield.h
src/KingSystem/Resource/GeneralParamList/resGParamListObjectSmallSword.h
src/KingSystem/Resource/GeneralParamList/resGParamListObjectSpear.h

View File

@ -89085,7 +89085,7 @@
0x0000007101195c00,BgparamlistObjectArmorEffect::ctor,540,_ZN4ksys3res27GParamListObjectArmorEffectC2Ev
0x0000007101195e1c,BgparamlistObjectArmorHead::ctor,400,_ZN4ksys3res25GParamListObjectArmorHeadC2Ev
0x0000007101195fac,BgparamlistObjectArmorUpper::ctor,508,_ZN4ksys3res26GParamListObjectArmorUpperC2Ev
0x00000071011961a8,BgparamlistObjectShiekerStone::ctor,672,
0x00000071011961a8,BgparamlistObjectShiekerStone::ctor,672,_ZN4ksys3res28GParamListObjectShiekerStoneC2Ev
0x0000007101196448,BgparamlistObjectLiftable::ctor,1520,
0x0000007101196a38,BgparamlistObjectItem::ctor,664,
0x0000007101196cd0,BgparamlistObjectArrow::ctor,540,
@ -89173,7 +89173,7 @@
0x00000071011a7cc8,sub_71011A7CC8,12,_ZNK4ksys3res27GParamListObjectArmorEffect7getNameEv
0x00000071011a7cd4,sub_71011A7CD4,12,_ZNK4ksys3res25GParamListObjectArmorHead7getNameEv
0x00000071011a7ce0,sub_71011A7CE0,12,_ZNK4ksys3res26GParamListObjectArmorUpper7getNameEv
0x00000071011a7cec,sub_71011A7CEC,12,
0x00000071011a7cec,sub_71011A7CEC,12,_ZNK4ksys3res28GParamListObjectShiekerStone7getNameEv
0x00000071011a7cf8,sub_71011A7CF8,12,
0x00000071011a7d04,sub_71011A7D04,12,
0x00000071011a7d10,sub_71011A7D10,12,

Can't render this file because it is too large.

View File

@ -0,0 +1,34 @@
#pragma once
#include <agl/Utils/aglParameter.h>
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
#include "KingSystem/Utils/Types.h"
namespace ksys::res {
class GParamListObjectShiekerStone : public GParamListObject {
public:
GParamListObjectShiekerStone();
const char* getName() const override { return "ShiekerStone"; }
agl::utl::Parameter<sead::SafeString> mNodeNameWithWaist;
agl::utl::Parameter<sead::Vector3f> mTransOffsetWithWaist;
agl::utl::Parameter<sead::Vector3f> mRotOffsetWithWaist;
agl::utl::Parameter<sead::SafeString> mNodeNameWithHand;
agl::utl::Parameter<sead::Vector3f> mTransOffsetWithHand;
agl::utl::Parameter<sead::Vector3f> mRotOffsetWithHand;
};
KSYS_CHECK_SIZE_NX150(GParamListObjectShiekerStone, 0x128);
inline GParamListObjectShiekerStone::GParamListObjectShiekerStone() {
auto* const obj = &mObj;
mNodeNameWithWaist.init("Pod_C", "NodeNameWithWaist", "", obj);
mTransOffsetWithWaist.init({0.125, 0.0, -0.017}, "TransOffsetWithWaist", "", obj);
mRotOffsetWithWaist.init({2.0, 184.0, -3.0}, "RotOffsetWithWaist", "", obj);
mNodeNameWithHand.init("Weapon_L", "NodeNameWithHand", "", obj);
mTransOffsetWithHand.init({0.0, 0.0, 0.0}, "TransOffsetWithHand", "", obj);
mRotOffsetWithHand.init({180.0, 180.0, 0.0}, "RotOffsetWithHand", "", obj);
}
} // namespace ksys::res

View File

@ -24,6 +24,7 @@
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectPlayer.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectRod.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSandworm.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectShiekerStone.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectShield.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSmallSword.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSpear.h"
@ -95,6 +96,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
add<GParamListObjType::ArmorEffect>(archive.getRootList(), "ArmorEffect", heap, dummy_list);
add<GParamListObjType::ArmorHead>(archive.getRootList(), "ArmorHead", heap, dummy_list);
add<GParamListObjType::ArmorUpper>(archive.getRootList(), "ArmorUpper", heap, dummy_list);
add<GParamListObjType::ShiekerStone>(archive.getRootList(), "ShiekerStone", heap, dummy_list);
// TODO: the rest