| 55 | } |
| 56 | |
| 57 | db::Slot* DragonBoneCache::_buildSlot(const db::BuildArmaturePackage& dataPackage, const db::SlotData* slotData, db::Armature* armature) const { |
| 58 | const auto slot = db::BaseObject::borrowObject<DBSlot>(); |
| 59 | const auto node = DBSlotNode::create(); |
| 60 | node->setOrder(slotData->zOrder); |
| 61 | slot->init(slotData, armature, node, node); |
| 62 | return slot; |
| 63 | } |
| 64 | |
| 65 | db::DragonBonesData* DragonBoneCache::loadDragonBonesData(String filename) { |
| 66 | auto fullPath = SharedContent.getFullPath(filename); |