loading bar

This commit is contained in:
devZoGok
2025-03-28 19:56:06 +02:00
parent e5377a5152
commit 12c3a67122
13 changed files with 166 additions and 30 deletions
+2 -9
View File
@@ -12,6 +12,7 @@
#include <stateManager.h>
#include "map.h"
#include "util.h"
#include "game.h"
#include "player.h"
#include "gameObject.h"
@@ -394,16 +395,8 @@ namespace battleship{
//TODO move minimap loading elsewhere
void Map::loadPlayerGameObjects(){
AssetManager *assetManager = AssetManager::getSingleton();
string path = GameManager::getSingleton()->getPath();
assetManager->load(path + DEFAULT_TEXTURE);
sol::state_view SOL_LUA_VIEW = generateView();
string vfxPrefix = SOL_LUA_VIEW["vfxPrefix"], gameObjPrefix = SOL_LUA_VIEW["gameObjPrefix"];
assetManager->load(path + vfxPrefix, true);
assetManager->load(path + gameObjPrefix, true);
int numPlayers = Game::getSingleton()->getNumPlayers();
sol::state_view SOL_LUA_VIEW = generateView();
string playerInd = "players";
for(int i = 0; i < numPlayers; i++){