mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-14 17:11:04 +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:
@@ -1,23 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "CNProtocol.hpp"
|
||||
#include "CNStructs.hpp"
|
||||
#include "CNShardServer.hpp"
|
||||
|
||||
#include "db/Database.hpp"
|
||||
#include "PlayerManager.hpp"
|
||||
#include "ItemManager.hpp"
|
||||
#include "ChatManager.hpp"
|
||||
|
||||
namespace Email {
|
||||
void init();
|
||||
|
||||
void emailUpdateCheck(CNSocket* sock, CNPacketData* data);
|
||||
void emailReceivePageList(CNSocket* sock, CNPacketData* data);
|
||||
void emailRead(CNSocket* sock, CNPacketData* data);
|
||||
void emailReceiveTaros(CNSocket* sock, CNPacketData* data);
|
||||
void emailReceiveItemSingle(CNSocket* sock, CNPacketData* data);
|
||||
void emailReceiveItemAll(CNSocket* sock, CNPacketData* data);
|
||||
void emailDelete(CNSocket* sock, CNPacketData* data);
|
||||
void emailSend(CNSocket* sock, CNPacketData* data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user