diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 22:38:46 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-22 15:02:46 +0800 |
| commit | f25eec7a0ba4a8a868eb87c76ec8b88f76f3a124 (patch) | |
| tree | a3f7c6e07b895327beee62d5f83602b6b083df33 /src/inputManager.hpp | |
| parent | 45ca296a55332a4d79319f8a706f332aa8feb336 (diff) | |
feat: inputManager and commandHandler (#7)
server now have ability to send chat like any clients.
can also run commands(registered in commands.cpp)
Diffstat (limited to 'src/inputManager.hpp')
| -rw-r--r-- | src/inputManager.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/inputManager.hpp b/src/inputManager.hpp new file mode 100644 index 0000000..ef75b52 --- /dev/null +++ b/src/inputManager.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include <memory> + +class CInputManager { + public: + CInputManager(); + ~CInputManager(); + + void run(); + void inputLoop(); +}; +inline std::unique_ptr<CInputManager> g_pInputManager; |
