summaryrefslogtreecommitdiff
path: root/src/KingSystem/Resource/GeneralParamList
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-09-20 11:55:42 +0200
committerLéo Lam <leo@leolam.fr>2020-09-20 11:55:47 +0200
commitef1925df9fb9e0841615cda9426414c486b7dec1 (patch)
tree5f5dbd8914031849ab7e61f6e8f22d4e22ca6e83 /src/KingSystem/Resource/GeneralParamList
parent518586b3528dcc1924853e3eba39908761c1209f (diff)
ksys/res: Implement GParamList Rope
Diffstat (limited to 'src/KingSystem/Resource/GeneralParamList')
-rw-r--r--src/KingSystem/Resource/GeneralParamList/resGParamListObjectRope.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/KingSystem/Resource/GeneralParamList/resGParamListObjectRope.h b/src/KingSystem/Resource/GeneralParamList/resGParamListObjectRope.h
new file mode 100644
index 00000000..ea2cf042
--- /dev/null
+++ b/src/KingSystem/Resource/GeneralParamList/resGParamListObjectRope.h
@@ -0,0 +1,42 @@
+#pragma once
+
+#include <agl/Utils/aglParameter.h>
+#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
+#include "KingSystem/Utils/Types.h"
+
+namespace ksys::res {
+
+class GParamListObjectRope : public GParamListObject {
+public:
+ GParamListObjectRope();
+ const char* getName() const override { return "Rope"; }
+
+ agl::utl::Parameter<bool> mIsAllowCutting;
+ agl::utl::Parameter<bool> mIsSetupKeyframed;
+ agl::utl::Parameter<f32> mBoneEffectiveLength;
+ agl::utl::Parameter<bool> mIsInterpolateEdge;
+ agl::utl::Parameter<bool> mIsDeformable;
+ agl::utl::Parameter<bool> mIsOneBoneOneShape;
+ agl::utl::Parameter<f32> mSplineOffsetRateA;
+ agl::utl::Parameter<f32> mSplineOffsetRateB;
+ agl::utl::Parameter<f32> mSplineOffsetRateC;
+ agl::utl::Parameter<f32> mMtxEndPosOffsetLength;
+};
+KSYS_CHECK_SIZE_NX150(GParamListObjectRope, 0x178);
+
+inline GParamListObjectRope::GParamListObjectRope() {
+ auto* const obj = &mObj;
+
+ mIsAllowCutting.init(true, "IsAllowCutting", "", obj);
+ mIsSetupKeyframed.init(false, "IsSetupKeyframed", "", obj);
+ mBoneEffectiveLength.init(0.1, "BoneEffectiveLength", "", obj);
+ mIsInterpolateEdge.init(true, "IsInterpolateEdge", "", obj);
+ mIsDeformable.init(true, "IsDeformable", "", obj);
+ mIsOneBoneOneShape.init(false, "IsOneBoneOneShape", "", obj);
+ mSplineOffsetRateA.init(0.0, "SplineOffsetRateA", "", obj);
+ mSplineOffsetRateB.init(0.0, "SplineOffsetRateB", "", obj);
+ mSplineOffsetRateC.init(0.0, "SplineOffsetRateC", "", obj);
+ mMtxEndPosOffsetLength.init(0.0, "MtxEndPosOffsetLength", "", obj);
+}
+
+} // namespace ksys::res