networking i guess
This commit is contained in:
30
public/networkbase.h
Normal file
30
public/networkbase.h
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
#ifndef NETWORK_BASE_H
|
||||
#define NETWORK_BASE_H
|
||||
#include "tier1/interface.h"
|
||||
|
||||
struct NetPacket_t
|
||||
{
|
||||
void *pData;
|
||||
uint32_t uSize;
|
||||
};
|
||||
|
||||
abstract_class INetworkBase
|
||||
{
|
||||
public:
|
||||
virtual ~INetworkBase() = default;
|
||||
|
||||
virtual void NetThink() = 0;
|
||||
|
||||
virtual uint32_t BHasUpdates() = 0;
|
||||
virtual NetPacket_t RecievePacket() = 0;
|
||||
virtual NetPacket_t PeekPacket() = 0;
|
||||
|
||||
virtual void SendPacket( NetPacket_t stPacket ) = 0;
|
||||
|
||||
virtual uint64_t GetSteamID() = 0;
|
||||
virtual const char *GetIP() = 0;
|
||||
virtual uint16_t GetPort() = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user