| 1000 | return std::vector<std::string>(); |
| 1001 | } |
| 1002 | static 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 | |