8#ifndef GALAXY_CORE_APPLICATION_HPP_
9#define GALAXY_CORE_APPLICATION_HPP_
13#include <SDL3/SDL_events.h>
32 explicit App(
const std::string& config_file =
"config.json");
46 void load(
const std::string& app_data =
"base.galaxy");
53 void save(
const std::string& app_data);
65 SDL_Event&
events()
noexcept;
App(const App &)=delete
Copy constructor.
void setup_config(std::string_view config_file)
Setup config module.
void run()
Main game loop.
SDL_Event & events() noexcept
Get event data.
App(const std::string &config_file="config.json")
Default constructor.
void save(const std::string &app_data)
Save all active scenes and sub data within those scenes.
App & operator=(const App &)=delete
Copy assignment operator.
void setup_fs()
Setup filesystem module.
SDL_Event m_events
Core event data.
void setup_logging()
Setup logging module.
void setup_ui()
Setup ui module.
void setup_async()
Setup async module.
void setup_input()
Setup input module.
void setup_factory()
Setup factory module.
void setup_rendering()
Setup graphics module.
std::unique_ptr< Editor > m_editor
Editor data.
void load(const std::string &app_data="base.galaxy")
Load app data file into scene manager.
void setup_services()
Setup services.
App & operator=(App &&)=delete
Move assignment operator.
void setup_scripting()
Setup scripting module.
void setup_platform()
Setup platform module.
App(App &&)=delete
Move constructor.