MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / Spine_GetLookNames

Function Spine_GetLookNames

Source/Wasm/WasmRuntime.cpp:989–1001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987// Spine
988
989static std::vector<std::string> Spine_GetLookNames(String spineStr) {
990 if (auto skelData = SharedSkeletonCache.load(spineStr)) {
991 auto& skins = skelData->getSkel()->getSkins();
992 std::vector<std::string> res;
993 res.reserve(skins.size());
994 for (size_t i = 0; i < skins.size(); i++) {
995 const auto& name = skins[i]->getName();
996 res.push_back(std::string(name.buffer(), name.length()));
997 }
998 return res;
999 }
1000 return std::vector<std::string>();
1001}
1002static std::vector<std::string> Spine_GetAnimationNames(String spineStr) {
1003 if (auto skelData = SharedSkeletonCache.load(spineStr)) {
1004 auto& anims = skelData->getSkel()->getAnimations();

Callers 1

spine_get_looksFunction · 0.85

Calls 9

stringFunction · 0.85
getSkelMethod · 0.80
bufferMethod · 0.80
loadMethod · 0.65
getNameMethod · 0.65
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected