mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
structs are structs, classes are classes
This commit is contained in:
parent
4dfcfc6913
commit
c2f75b0017
|
@ -32,20 +32,20 @@ class CRegister
|
|||
int m_RegisterFirst;
|
||||
int m_RegisterCount;
|
||||
|
||||
class CMasterserverInfo m_aMasterserverInfo[IMasterServer::MAX_MASTERSERVERS];
|
||||
CMasterserverInfo m_aMasterserverInfo[IMasterServer::MAX_MASTERSERVERS];
|
||||
int m_RegisterRegisteredServer;
|
||||
|
||||
void RegisterNewState(int State);
|
||||
void RegisterSendFwcheckresponse(NETADDR *pAddr);
|
||||
void RegisterSendHeartbeat(NETADDR Addr);
|
||||
void RegisterSendCountRequest(NETADDR Addr);
|
||||
void RegisterGotCount(class CNetChunk *pChunk);
|
||||
void RegisterGotCount(struct CNetChunk *pChunk);
|
||||
|
||||
public:
|
||||
CRegister();
|
||||
void Init(class CNetServer *pNetServer, class IEngineMasterServer *pMasterServer, class IConsole *pConsole);
|
||||
void RegisterUpdate(int Nettype);
|
||||
int RegisterProcessPacket(class CNetChunk *pPacket);
|
||||
int RegisterProcessPacket(struct CNetChunk *pPacket);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,7 +36,7 @@ class CConsole : public IConsole
|
|||
{
|
||||
public:
|
||||
const char *m_pFilename;
|
||||
struct CExecFile *m_pPrev;
|
||||
CExecFile *m_pPrev;
|
||||
};
|
||||
|
||||
CExecFile *m_pFirstExec;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// raw datafile access
|
||||
class CDataFileReader
|
||||
{
|
||||
class CDatafile *m_pDataFile;
|
||||
struct CDatafile *m_pDataFile;
|
||||
void *GetDataImpl(int Index, int Swap);
|
||||
public:
|
||||
CDataFileReader() : m_pDataFile(0) {}
|
||||
|
|
|
@ -30,7 +30,7 @@ class CMapChecker
|
|||
|
||||
public:
|
||||
CMapChecker();
|
||||
void AddMaplist(class CMapVersion *pMaplist, int Num);
|
||||
void AddMaplist(struct CMapVersion *pMaplist, int Num);
|
||||
bool IsMapValid(const char *pMapName, unsigned MapCrc, unsigned MapSize);
|
||||
bool ReadAndValidateMap(class IStorage *pStorage, const char *pFilename, int StorageType);
|
||||
};
|
||||
|
|
|
@ -192,7 +192,7 @@ public:
|
|||
int AckSequence() const { return m_Ack; }
|
||||
};
|
||||
|
||||
struct CNetRecvUnpacker
|
||||
class CNetRecvUnpacker
|
||||
{
|
||||
public:
|
||||
bool m_Valid;
|
||||
|
@ -222,13 +222,13 @@ public:
|
|||
};
|
||||
|
||||
private:
|
||||
class CSlot
|
||||
struct CSlot
|
||||
{
|
||||
public:
|
||||
CNetConnection m_Connection;
|
||||
};
|
||||
|
||||
class CBan
|
||||
struct CBan
|
||||
{
|
||||
public:
|
||||
CBanInfo m_Info;
|
||||
|
|
Loading…
Reference in a new issue