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

Function Spine_GetAnimationNames

Source/Wasm/WasmRuntime.cpp:1002–1014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();
1005 std::vector<std::string> res;
1006 res.reserve(anims.size());
1007 for (size_t i = 0; i < anims.size(); i++) {
1008 const auto& name = anims[i]->getName();
1009 res.push_back(std::string(name.buffer(), name.length()));
1010 }
1011 return res;
1012 }
1013 return std::vector<std::string>();
1014}
1015
1016// DragonBones
1017

Callers 1

spine_get_animationsFunction · 0.85

Calls 10

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

Tested by

no test coverage detected