24 std::string
title =
"Game Engine";
141 int buildGame(
const std::string& projectPath,
const std::string& outPath);
static ComponentSerializerRegistry & getInstance()
Retrieves singleton instance of the registry.
Definition ComponentSerializerRegistry.cpp:3
void registerComponent(const std::string &componentName, SerializerCallback serialize, DeserializerCallback deserialize)
Registers serializer callbacks for a component type.
Definition ComponentSerializerRegistry.hpp:50
GLFWwindow * window
Native window handle.
Definition Application.hpp:115
virtual void onShutdown()
Called during application shutdown.
Definition Application.hpp:90
void cleanupEngine()
Definition Application.cpp:159
std::unique_ptr< PluginManager > pluginManager
Pointer to the dynamic plugin manager.
Definition Application.hpp:129
void initEngine()
Definition Application.cpp:76
void quit()
Stops the application execution.
Definition Application.cpp:307
EditorModeState & getEditorMode()
Gets the current EditorModeState (e.g. isPlaying, flyMode).
Definition Application.hpp:95
VulkanRenderer & getRenderer()
Gets reference to the active VulkanRenderer.
Definition Application.hpp:111
SystemManager systemManager
System Manager driving sequential system update loops.
Definition Application.hpp:105
ApplicationConfig config
Active application config values.
Definition Application.hpp:132
Application(const ApplicationConfig &config=ApplicationConfig())
Construct a new Application.
Definition Application.cpp:32
bool running
Running status flag.
Definition Application.hpp:135
std::unique_ptr< EditorUI > editorUI
Editor graphical interface overlay.
Definition Application.hpp:119
void registerComponent(const std::string &componentName)
Templated method to register game-specific components to the serialization registry.
Definition Application.hpp:68
virtual ~Application()
Destroy the Application and release Vulkan/window resources.
Definition Application.cpp:47
void loadConfig()
Definition Application.cpp:51
std::shared_ptr< UISystem > uiSystem
Reference to UI system.
Definition Application.hpp:126
std::unique_ptr< VulkanRenderer > renderer
Reference to VulkanRenderer.
Definition Application.hpp:117
void run()
Boots and runs the main loop of the application.
Definition Application.cpp:230
virtual void onStart()
Called upon initialization. Override to register custom components and load startup scenes.
Definition Application.hpp:79
int buildGame(const std::string &projectPath, const std::string &outPath)
Definition Application.cpp:197
virtual void onUpdate(float dt)
Called each frame for custom update logic.
Definition Application.hpp:85
Registry registry
Registry instance for ECS entity-component database.
Definition Application.hpp:99
EditorModeState editorMode
Shared editor toggle and navigation states.
Definition Application.hpp:121
std::shared_ptr< RenderSystem > renderSystem
Reference to default rendering system.
Definition Application.hpp:124
SceneManager sceneManager
Scene Manager coordinates scene changes and loading.
Definition Application.hpp:102
Definition UISystem.hpp:10
Coordinates entities and components, providing creation, removal, lookup, and views.
Definition Registry.hpp:30
System that handles rendering of mesh and grid components, managing batches and Vulkan draw commands.
Definition RenderSystem.hpp:24
Manages a set of simultaneously loaded Scenes. Supports Single and Additive loading,...
Definition SceneManager.hpp:54
Manages registration and sequential updating of active ECS systems.
Definition SystemManager.hpp:13
Manages core Vulkan pipeline states, device interaction, frames, buffers, and command submissions.
Definition VulkanRenderer.hpp:127
Definition Application.hpp:16
Struct keeping track of active editor states (e.g. fly mode vs editor UI interaction).
Definition EditorModeState.hpp:7
Structure holding start configuration for window size, mode, and start scene paths.
Definition Application.hpp:23
int height
Definition Application.hpp:26
std::string startScenePath
Definition Application.hpp:28
std::string title
Definition Application.hpp:24
std::string exeDir
Directory where the editor/runtime executable lives. Used to locate engine plugins.
Definition Application.hpp:32
bool enableEditor
Definition Application.hpp:27
int width
Definition Application.hpp:25
std::string projectPath
Path to the game project directory. Scripts in <projectPath>/scripts/ are loaded automatically.
Definition Application.hpp:30