Feature/assets (#1784)

General overhaul of the Asset loading system
This commit is contained in:
Alexander Bock
2021-12-19 21:04:01 +04:00
committed by GitHub
parent f8b5d4b662
commit debcb43ade
167 changed files with 3251 additions and 4441 deletions

View File

@@ -92,7 +92,6 @@ public:
std::vector<std::byte> encode();
void decode(std::vector<std::byte> data);
void scheduleLoadSingleAsset(std::string assetPath);
void toggleShutdownMode();
// Guaranteed to return a valid pointer
@@ -110,7 +109,7 @@ public:
static scripting::LuaLibrary luaLibrary();
private:
void loadAsset(const std::string& assetName);
void loadAssets();
void loadFonts();
void runGlobalCustomizationScripts();
@@ -126,9 +125,6 @@ private:
std::unique_ptr<LoadingScreen> _loadingScreen;
std::unique_ptr<VersionChecker> _versionChecker;
bool _hasScheduledAssetLoading = false;
std::string _scheduledAssetPathToLoad;
glm::vec2 _mousePosition = glm::vec2(0.f);
//grabs json from each module to pass to the documentation engine.