mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-11-17 07:20:05 +00:00
[refactor] Mark all internal functions static
All packet handlers and helper functions that are only used in the source file they're declared in have been taken out of the namespaces in the corresponding header files, have been marked static, and have been reordered to avoid the need for declarations at the top of each source file. Each source file now contains a "using namespace" directive so that the static functions don't need to prefix the source file's symbols with their namespace. All redundant namespace prefixes found have been removed. An unused nano power resetting function in NanoManager has been removed.
This commit is contained in:
@@ -8,19 +8,6 @@ namespace ChatManager {
|
||||
extern std::vector<std::string> dump;
|
||||
void init();
|
||||
|
||||
void chatHandler(CNSocket* sock, CNPacketData* data);
|
||||
void emoteHandler(CNSocket* sock, CNPacketData* data);
|
||||
void menuChatHandler(CNSocket* sock, CNPacketData* data);
|
||||
void announcementHandler(CNSocket* sock, CNPacketData* data);
|
||||
|
||||
void buddyChatHandler(CNSocket* sock, CNPacketData* data);
|
||||
void buddyMenuChatHandler(CNSocket* sock, CNPacketData* data);
|
||||
|
||||
void tradeChatHandler(CNSocket* sock, CNPacketData* data);
|
||||
|
||||
void groupChatHandler(CNSocket* sock, CNPacketData* data);
|
||||
void groupMenuChatHandler(CNSocket* sock, CNPacketData* data);
|
||||
|
||||
void sendServerMessage(CNSocket* sock, std::string msg); // uses MOTD
|
||||
std::string sanitizeText(std::string text, bool allowNewlines=false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user