| 1008 | return ResourceManager::getInstance().load(_file); |
| 1009 | } |
| 1010 | void MemberObsolete<SkinManager>::loadOldSkinFormat( |
| 1011 | xml::ElementPtr _node, |
| 1012 | std::string_view /*_file*/, |
| 1013 | Version _version, |
| 1014 | std::string_view _tag) |
| 1015 | { |
| 1016 | const std::string& resourceCategory = ResourceManager::getInstance().getCategoryName(); |
| 1017 | |
| 1018 | // берем детей и крутимся, основной цикл со скинами |
| 1019 | xml::ElementEnumerator skin = _node->getElementEnumerator(); |
| 1020 | while (skin.next(_tag)) |
| 1021 | { |
| 1022 | std::string_view type = skin->findAttribute("type"); |
| 1023 | if (type.empty()) |
| 1024 | type = "ResourceSkin"; |
| 1025 | |
| 1026 | IObject* object = FactoryManager::getInstance().createObject(resourceCategory, type); |
| 1027 | if (object != nullptr) |
| 1028 | { |
| 1029 | ResourceSkin* data = object->castType<ResourceSkin>(); |
| 1030 | data->deserialization(skin.current(), _version); |
| 1031 | |
| 1032 | ResourceManager::getInstance().addResource(data); |
| 1033 | } |
| 1034 | } |
| 1035 | } |
| 1036 | |
| 1037 | |
| 1038 | void MemberObsolete<WidgetManager>::destroyWidgetsVector(VectorWidgetPtr& _widgets) |
nothing calls this directly
no test coverage detected