Fixed dynamic asset loading.

This commit is contained in:
2022-12-16 09:04:12 -08:00
parent 71dbf6e646
commit 4090e61406
7 changed files with 29 additions and 4 deletions

View File

@ -15,6 +15,10 @@ void AssetManager::init() {
}
void AssetManager::update() {
this->syncTick();
}
void AssetManager::queueLoad(std::vector<Asset*> assets) {
vectorAppend(&this->assetsToLoad, &assets);
}

View File

@ -26,6 +26,11 @@ namespace Dawn {
*/
void init();
/**
* Updates the asset manager.
*/
void update();
/**
* Queue a loading of a list of assets. Does not actually begin loading.
*