mirror of
https://github.com/zeldaret/botw
synced 2026-09-10 03:52:13 -04:00
ksys/res: Implement GParamList WeaponThrow
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class GParamListObjectWeaponThrow : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectWeaponThrow();
|
||||
const char* getName() const override { return "WeaponThrow"; }
|
||||
|
||||
agl::utl::Parameter<f32> mThrowSpeed;
|
||||
agl::utl::Parameter<f32> mThrowRotSpeed;
|
||||
agl::utl::Parameter<f32> mThrowDist;
|
||||
agl::utl::Parameter<sead::Vector3f> mThrowRigidBodyBaseAxis;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(GParamListObjectWeaponThrow, 0xc0);
|
||||
|
||||
inline GParamListObjectWeaponThrow::GParamListObjectWeaponThrow() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mThrowSpeed.init(1.0, "ThrowSpeed", "", obj);
|
||||
mThrowRotSpeed.init(50.0, "ThrowRotSpeed", "", obj);
|
||||
mThrowDist.init(5.0, "ThrowDist", "", obj);
|
||||
mThrowRigidBodyBaseAxis.init({0.0, 0.0, 1.0}, "ThrowRigidBodyBaseAxis", "", obj);
|
||||
}
|
||||
|
||||
} // namespace ksys::res
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGeneral.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSystem.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectWeaponCommon.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectWeaponThrow.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListTraits.h"
|
||||
|
||||
namespace ksys::res {
|
||||
@@ -58,6 +59,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
||||
add<GParamListObjType::BindBone>(archive.getRootList(), "BindBone", heap, dummy_list);
|
||||
add<GParamListObjType::Attack>(archive.getRootList(), "Attack", heap, dummy_list);
|
||||
add<GParamListObjType::WeaponCommon>(archive.getRootList(), "WeaponCommon", heap, dummy_list);
|
||||
add<GParamListObjType::WeaponThrow>(archive.getRootList(), "WeaponThrow", heap, dummy_list);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user