diff --git a/data/uking_functions.csv b/data/uking_functions.csv index e75e07a4..967271d7 100644 --- a/data/uking_functions.csv +++ b/data/uking_functions.csv @@ -93541,7 +93541,7 @@ Address,Quality,Size,Name 0x000000710121cc30,O,000072,_ZN4ksys4phys10ClothParamD2Ev 0x000000710121cc78,O,000004,_ZN4ksys4phys10ClothParamD0Ev 0x000000710121cc7c,O,000004,_ZN4ksys4phys17ClothSubWindParamD0Ev -0x000000710121cc80,U,000152, +0x000000710121cc80,O,000152,_ZN4ksys4phys13ClothResourceC1Ev 0x000000710121cd18,U,000356, 0x000000710121ce7c,U,000036, 0x000000710121cea0,U,000068, diff --git a/src/KingSystem/Physics/CMakeLists.txt b/src/KingSystem/Physics/CMakeLists.txt index 5c96a9fd..3a8542e7 100644 --- a/src/KingSystem/Physics/CMakeLists.txt +++ b/src/KingSystem/Physics/CMakeLists.txt @@ -1,6 +1,8 @@ target_sources(uking PRIVATE Cloth/physClothParam.cpp Cloth/physClothParam.h + Cloth/physClothResource.cpp + Cloth/physClothResource.h Ragdoll/physRagdollConfig.cpp Ragdoll/physRagdollConfig.h diff --git a/src/KingSystem/Physics/Cloth/physClothResource.cpp b/src/KingSystem/Physics/Cloth/physClothResource.cpp new file mode 100644 index 00000000..2dba43d8 --- /dev/null +++ b/src/KingSystem/Physics/Cloth/physClothResource.cpp @@ -0,0 +1,7 @@ +#include "KingSystem/Physics/Cloth/physClothResource.h" + +namespace ksys::phys { + +ClothResource::ClothResource() = default; + +} // namespace ksys::phys diff --git a/src/KingSystem/Physics/Cloth/physClothResource.h b/src/KingSystem/Physics/Cloth/physClothResource.h new file mode 100644 index 00000000..b849a49a --- /dev/null +++ b/src/KingSystem/Physics/Cloth/physClothResource.h @@ -0,0 +1,25 @@ +#pragma once + +#include +#include + +namespace ksys::phys { + +class ClothResource : public sead::DirectResource { +public: + ClothResource(); + ~ClothResource() override; + + void doCreate_(u8* buffer, u32 bufferSize, sead::Heap* heap) override; + +private: + void* _20{}; + int _28{}; + void* _30{}; + int _38{}; + void* _40{}; + u8 _48{}; + sead::FixedSafeString<128> _50; +}; + +} // namespace ksys::phys