From 5c12165f91ab64977b83c777687fe75af15fe757 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Sun, 5 Nov 2023 19:32:23 +0000 Subject: [PATCH] FORMAT-AUTO: automatic format on pull request #143 --- src/Client/Systems/Menus/Menu/MenuSystems.cpp | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/Client/Systems/Menus/Menu/MenuSystems.cpp b/src/Client/Systems/Menus/Menu/MenuSystems.cpp index e1fe9ae9..951e5d29 100644 --- a/src/Client/Systems/Menus/Menu/MenuSystems.cpp +++ b/src/Client/Systems/Menus/Menu/MenuSystems.cpp @@ -219,9 +219,7 @@ namespace Systems { Nitwork::NitworkClient::getInstance().disconnectLobby(); Scene::SceneManager::getInstance().changeScene(SELECT_LOBBY); break; - case LOADING_SCREEN: - Scene::SceneManager::getInstance().stop(); - break; + case LOADING_SCREEN: Scene::SceneManager::getInstance().stop(); break; } } } @@ -259,11 +257,13 @@ namespace Systems { std::string textKeyword = "loading"; Json &json = Json::getInstance(); - nlohmann::json jsonData = json.getDataByJsonType(ResourcesManager::getPathByJsonType(JsonType::MENU), "background"); + nlohmann::json jsonData = json.getDataByJsonType( + ResourcesManager::getPathByJsonType(JsonType::MENU), + "background"); std::string path = json.getDataFromJson(jsonData, "imgPath"); - float width = json.getDataFromJson(jsonData, "width"); - float height = json.getDataFromJson(jsonData, "height"); - auto background = Raylib::Sprite::fromFile(path, width, height, id); + float width = json.getDataFromJson(jsonData, "width"); + float height = json.getDataFromJson(jsonData, "height"); + auto background = Raylib::Sprite::fromFile(path, width, height, id); Registry::getInstance().getComponents().insertBack(background); Registry::getInstance().setToFrontLayers(id); Registry::getInstance().getComponents().insertBack(position); @@ -279,9 +279,9 @@ namespace Systems { static void updateText(std::size_t size, std::size_t loadedTexture) { - std::size_t percentage = (loadedTexture * 100) / size; - std::string textKeyword = "loading"; - auto &arrText = Registry::getInstance().getComponents(); + std::size_t percentage = (loadedTexture * 100) / size; + std::string textKeyword = "loading"; + auto &arrText = Registry::getInstance().getComponents(); auto ids = Registry::getInstance().getEntitiesByComponents({typeid(Raylib::TextShared)}); for (auto id : ids) { @@ -317,7 +317,6 @@ namespace Systems { initLoadingScreen(); step++; } - } void initSceneGame(std::size_t managerId, std::size_t systemId)