working asset manager !
All checks were successful
Linux arm64 / Build (push) Successful in 1m58s

This commit is contained in:
2025-05-27 21:29:56 +02:00
parent 3d1feb6295
commit d50714ef8c
8 changed files with 175 additions and 19 deletions

View File

@@ -1,12 +1,12 @@
#include "AppMenu.h"
#include "../AssetManager.h"
#include "../../Utils/AssetManager.h"
AppMenu::AppMenu(std::shared_ptr<MenuStack> menuStack, std::shared_ptr<Settings> settings, std::shared_ptr<sf::RenderWindow> renderWindow) : menuStack(menuStack),
settings(settings),
renderWindow(renderWindow)
{
Asset file = getResource(AssetName::data_fonts_pressstart_prstartk_ttf);
const Asset& file = getResource(AssetName::data_fonts_pressstart_prstartk_ttf);
this->pressStartFont = sf::Font(file.data, file.size);
}