summaryrefslogtreecommitdiff
path: root/src/KingSystem/Resource/GeneralParamList/resGParamListObjectRope.h
blob: 0a71350387a9514b8ef231cf8f283f5fa321ff1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once

#include <utility/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