mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
Added OnlineGameScene and OnlineGameUIManager class
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
#include "GameApplication.h"
|
||||
#include "utils/Tools.h"
|
||||
#include "Time.h"
|
||||
GameApplication::GameApplication() {
|
||||
|
||||
|
||||
GameApplication::GameApplication()
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
GameApplication::~GameApplication() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
bool GameApplication::initialize() {
|
||||
@@ -23,6 +27,9 @@ bool GameApplication::initialize() {
|
||||
SDL_Log("无法加载json");
|
||||
}
|
||||
Time::init();
|
||||
|
||||
|
||||
|
||||
// 输入管理
|
||||
m_inputManager = std::make_unique<InputManager>();
|
||||
// 窗口管理
|
||||
@@ -95,4 +102,5 @@ void GameApplication::run() {
|
||||
m_windowManager->endUI();
|
||||
|
||||
m_windowManager->Present();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ private:
|
||||
std::unique_ptr<UIRenderer> m_uiRenderer;
|
||||
std::unique_ptr<DebugManager> m_debugManager;
|
||||
Config m_config;
|
||||
|
||||
|
||||
public:
|
||||
GameApplication();
|
||||
@@ -29,5 +30,4 @@ public:
|
||||
bool initialize();
|
||||
SDL_AppResult handleInputEvent(SDL_Event* event);
|
||||
void run();
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user