diff --git a/src/engine/server/register.cpp b/src/engine/server/register.cpp index 13f8de96e..f79287fad 100644 --- a/src/engine/server/register.cpp +++ b/src/engine/server/register.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include class CRegister : public IRegister diff --git a/src/engine/shared/econ.h b/src/engine/shared/econ.h index ab879e4b1..c7cc60f52 100644 --- a/src/engine/shared/econ.h +++ b/src/engine/shared/econ.h @@ -3,9 +3,12 @@ #include "network.h" -#include #include +class CConfig; +class CNetBan; +class ColorRGBA; + class CEcon { enum @@ -47,7 +50,7 @@ public: CEcon(); IConsole *Console() { return m_pConsole; } - void Init(CConfig *pConfig, IConsole *pConsole, class CNetBan *pNetBan); + void Init(CConfig *pConfig, IConsole *pConsole, CNetBan *pNetBan); void Update(); void Send(int ClientID, const char *pLine); void Shutdown(); diff --git a/src/engine/shared/filecollection.h b/src/engine/shared/filecollection.h index d16c2274d..4a8a398f0 100644 --- a/src/engine/shared/filecollection.h +++ b/src/engine/shared/filecollection.h @@ -3,10 +3,12 @@ #ifndef ENGINE_SHARED_FILECOLLECTION_H #define ENGINE_SHARED_FILECOLLECTION_H -#include +#include #include +class IStorage; + class CFileCollection { enum diff --git a/src/engine/shared/jobs.h b/src/engine/shared/jobs.h index 5bcec90cb..642299efc 100644 --- a/src/engine/shared/jobs.h +++ b/src/engine/shared/jobs.h @@ -12,7 +12,7 @@ class CJobPool; class IJob { - friend class CJobPool; + friend CJobPool; private: std::shared_ptr m_pNext; diff --git a/src/engine/shared/network.h b/src/engine/shared/network.h index c53d81122..09aa08cfc 100644 --- a/src/engine/shared/network.h +++ b/src/engine/shared/network.h @@ -3,13 +3,15 @@ #ifndef ENGINE_SHARED_NETWORK_H #define ENGINE_SHARED_NETWORK_H -#include "huffman.h" #include "ringbuffer.h" #include "stun.h" #include +#include -#include +class CHuffman; +class CMsgPacker; +class CNetBan; /* @@ -352,7 +354,7 @@ class CNetServer NETADDR m_Address; NETSOCKET m_Socket; - class CNetBan *m_pNetBan; + CNetBan *m_pNetBan; CSlot m_aSlots[NET_MAX_CLIENTS]; int m_MaxClients; int m_MaxClientsPerIP; @@ -393,7 +395,7 @@ public: int SetCallbacks(NETFUNC_NEWCLIENT pfnNewClient, NETFUNC_NEWCLIENT_NOAUTH pfnNewClientNoAuth, NETFUNC_CLIENTREJOIN pfnClientRejoin, NETFUNC_DELCLIENT pfnDelClient, void *pUser); // - bool Open(NETADDR BindAddr, class CNetBan *pNetBan, int MaxClients, int MaxClientsPerIP); + bool Open(NETADDR BindAddr, CNetBan *pNetBan, int MaxClients, int MaxClientsPerIP); int Close(); // @@ -409,7 +411,7 @@ public: bool HasSecurityToken(int ClientID) const { return m_aSlots[ClientID].m_Connection.SecurityToken() != NET_SECURITY_TOKEN_UNSUPPORTED; } NETADDR Address() const { return m_Address; } NETSOCKET Socket() const { return m_Socket; } - class CNetBan *NetBan() const { return m_pNetBan; } + CNetBan *NetBan() const { return m_pNetBan; } int NetType() const { return net_socket_type(m_Socket); } int MaxClients() const { return m_MaxClients; } @@ -439,7 +441,7 @@ class CNetConsole }; NETSOCKET m_Socket; - class CNetBan *m_pNetBan; + CNetBan *m_pNetBan; CSlot m_aSlots[NET_MAX_CONSOLE_CLIENTS]; NETFUNC_NEWCLIENT_CON m_pfnNewClient; @@ -452,7 +454,7 @@ public: void SetCallbacks(NETFUNC_NEWCLIENT_CON pfnNewClient, NETFUNC_DELCLIENT pfnDelClient, void *pUser); // - bool Open(NETADDR BindAddr, class CNetBan *pNetBan); + bool Open(NETADDR BindAddr, CNetBan *pNetBan); int Close(); // @@ -466,7 +468,7 @@ public: // status requests const NETADDR *ClientAddr(int ClientID) const { return m_aSlots[ClientID].m_Connection.PeerAddress(); } - class CNetBan *NetBan() const { return m_pNetBan; } + CNetBan *NetBan() const { return m_pNetBan; } }; // client side diff --git a/src/engine/shared/protocol_ex.cpp b/src/engine/shared/protocol_ex.cpp index e22b68fda..4d44ca7be 100644 --- a/src/engine/shared/protocol_ex.cpp +++ b/src/engine/shared/protocol_ex.cpp @@ -3,6 +3,8 @@ #include "config.h" #include "uuid_manager.h" +#include + #include void RegisterUuids(CUuidManager *pManager) @@ -12,7 +14,7 @@ void RegisterUuids(CUuidManager *pManager) #undef UUID } -int UnpackMessageID(int *pID, bool *pSys, struct CUuid *pUuid, CUnpacker *pUnpacker, CMsgPacker *pPacker) +int UnpackMessageID(int *pID, bool *pSys, CUuid *pUuid, CUnpacker *pUnpacker, CMsgPacker *pPacker) { *pID = 0; *pSys = false; diff --git a/src/engine/shared/protocol_ex.h b/src/engine/shared/protocol_ex.h index 0e2ffbd12..2ca61ac0c 100644 --- a/src/engine/shared/protocol_ex.h +++ b/src/engine/shared/protocol_ex.h @@ -1,7 +1,10 @@ #ifndef ENGINE_SHARED_PROTOCOL_EX_H #define ENGINE_SHARED_PROTOCOL_EX_H -#include +#include + +class CMsgPacker; +class CUnpacker; enum { @@ -29,9 +32,9 @@ enum SERVERCAPFLAG_SYNCWEAPONINPUT = 1 << 5, }; -void RegisterUuids(class CUuidManager *pManager); -bool NetworkExDefaultHandler(int *pID, struct CUuid *pUuid, CUnpacker *pUnpacker, CMsgPacker *pPacker, int Type); +void RegisterUuids(CUuidManager *pManager); +bool NetworkExDefaultHandler(int *pID, CUuid *pUuid, CUnpacker *pUnpacker, CMsgPacker *pPacker, int Type); -int UnpackMessageID(int *pID, bool *pSys, struct CUuid *pUuid, CUnpacker *pUnpacker, CMsgPacker *pPacker); +int UnpackMessageID(int *pID, bool *pSys, CUuid *pUuid, CUnpacker *pUnpacker, CMsgPacker *pPacker); #endif // ENGINE_SHARED_PROTOCOL_EX_H