完成输入管理器1
This commit is contained in:
@@ -14,6 +14,10 @@ class Renderer;
|
||||
class Camera;
|
||||
}
|
||||
|
||||
namespace engine::input {
|
||||
class InputManager;
|
||||
}
|
||||
|
||||
namespace engine::core { // 命名空间的最佳实践:与文件路径一致
|
||||
class Time;
|
||||
class Config;
|
||||
@@ -33,6 +37,7 @@ private:
|
||||
std::unique_ptr<engine::render::Renderer> renderer_;
|
||||
std::unique_ptr<engine::render::Camera> camera_;
|
||||
std::unique_ptr<engine::core::Config> config_;
|
||||
std::unique_ptr<engine::input::InputManager> input_manager_;
|
||||
public:
|
||||
GameApp();
|
||||
~GameApp();
|
||||
@@ -62,11 +67,13 @@ private:
|
||||
[[nodiscard]] bool initResourceManager();
|
||||
[[nodiscard]] bool initRenderer();
|
||||
[[nodiscard]] bool initCamera();
|
||||
[[nodiscard]] bool initInputManager();
|
||||
|
||||
// 测试用函数
|
||||
void testResourceManager();
|
||||
void testRenderer();
|
||||
void testCamera();
|
||||
void testInputManager();
|
||||
};
|
||||
|
||||
} // namespace engine::core
|
||||
|
||||
Reference in New Issue
Block a user