[refactor] Refactor ChatManager

* Extracted all commands into CustomCommands.cpp
* Moved all chat-related packet handlers into ChatManger.cpp
* Cleaned up redundant includes
* Unified handler naming scheme
* Made all command handlers in CustomCommands.cpp static
This commit is contained in:
2021-03-12 20:07:26 +01:00
parent 4cd3a3dabd
commit 2d7129111a
13 changed files with 1180 additions and 1163 deletions

9
src/CustomCommands.hpp Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include "CNProtocol.hpp"
namespace CustomCommands {
void init();
bool runCmd(std::string full, CNSocket* sock);
};