summaryrefslogtreecommitdiff
path: root/src/KingSystem/Resource/GeneralParamList/resGParamListObjectBindBone.h
blob: 08b61e084a5969393a20f24328b240a84a3d7735 (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
#pragma once

#include <utility/aglParameter.h>
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
#include "KingSystem/Utils/Types.h"

namespace ksys::res {

class GParamListObjectBindBone : public GParamListObject {
public:
    GParamListObjectBindBone();
    const char* getName() const override { return "BindBone"; }

    agl::utl::Parameter<sead::SafeString> mBoneName;
    agl::utl::Parameter<sead::Vector3f> mBoneOffset;
    agl::utl::Parameter<sead::Vector3f> mBoneRotate;
};
KSYS_CHECK_SIZE_NX150(GParamListObjectBindBone, 0xb0);

inline GParamListObjectBindBone::GParamListObjectBindBone() {
    auto* const obj = &mObj;

    mBoneName.init("", "BoneName", "", obj);
    mBoneOffset.init({0.0, 0.0, 0.0}, "BoneOffset", "", obj);
    mBoneRotate.init({0.0, 0.0, 0.0}, "BoneRotate", "", obj);
}

}  // namespace ksys::res