assets loading removed from UiXmlReader. Use preload.json instead

This commit is contained in:
MihailRis
2024-03-18 19:06:50 +03:00
parent 9310454271
commit bca4de179d
5 changed files with 6 additions and 22 deletions
+1 -3
View File
@@ -24,8 +24,6 @@ struct uidocscript {
using uinodes_map = std::unordered_map<std::string, std::shared_ptr<gui::UINode>>;
class AssetsLoader;
class UiDocument {
std::string id;
uidocscript script;
@@ -49,7 +47,7 @@ public:
/* Collect map of all uinodes having identifiers */
static void collect(uinodes_map& map, std::shared_ptr<gui::UINode> node);
static std::unique_ptr<UiDocument> read(AssetsLoader& loader, int env, std::string namesp, fs::path file);
static std::unique_ptr<UiDocument> read(int env, std::string namesp, fs::path file);
};
#endif // FRONTEND_UI_DOCUMENT_H_