diff options
| author | Léo Lam <leo@leolam.fr> | 2021-04-23 14:51:42 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-04-23 19:16:18 +0200 |
| commit | f98b6b0dbaf342ca8ae4ea0b4666ff0cb4e891c7 (patch) | |
| tree | 712b284a9bc675121960ed2010a9e63caaecca86 /src/KingSystem/Resource/resResourceAttClient.cpp | |
| parent | 6518fe5c73ab1e762361ea332325c59d9933e7b5 (diff) | |
ksys/res: Start adding AttCheck
Most of the check() functions are unimplemented because they require
doing more physics/collision stuff.
Diffstat (limited to 'src/KingSystem/Resource/resResourceAttClient.cpp')
| -rw-r--r-- | src/KingSystem/Resource/resResourceAttClient.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/KingSystem/Resource/resResourceAttClient.cpp b/src/KingSystem/Resource/resResourceAttClient.cpp index 5038bfac..ab99bec3 100644 --- a/src/KingSystem/Resource/resResourceAttClient.cpp +++ b/src/KingSystem/Resource/resResourceAttClient.cpp @@ -1,3 +1,22 @@ #include "KingSystem/Resource/resResourceAttClient.h" -namespace ksys::res {} // namespace ksys::res +namespace ksys::res { + +AttClient::~AttClient() { + // TODO + mChecks.freeBuffer(); +} + +void AttClient::doCreate_(u8*, u32, sead::Heap*) {} + +AttPos::AttPos() = default; + +void AttPos::init(agl::utl::IParameterObj* obj, const char* node_key, const char* offset_key, + const char* rotate_key, const char* y_rot_only_key) { + node.init("", node_key, "ノード", "", obj); + offset.init(sead::Vector3f::zero, offset_key, "オフセット", "Min=-100.f,Max=100.f", obj); + rotate.init(sead::Vector3f::zero, rotate_key, "回転", "Min=-3.1415f,Max=3.1415f", obj); + y_rot_only.init(false, y_rot_only_key, "Y軸回転のみ有効", "", obj); +} + +} // namespace ksys::res |
