1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00

Update ISource2GameClients and IProtobufBinding (#264)

Co-authored-by: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com>
This commit is contained in:
number201724 2024-08-16 03:49:51 +08:00 committed by GitHub
parent f1e7cc01ba
commit 0b862d725a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 15 deletions

View File

@ -616,6 +616,8 @@ public:
// The client has submitted a keyvalues command
virtual void ClientCommandKeyValues( CPlayerSlot slot, KeyValues *pKeyValues ) = 0;
virtual void unk001() = 0;
virtual bool ClientCanPause( CPlayerSlot slot ) = 0;
@ -629,18 +631,18 @@ public:
virtual IHLTVDirector *GetHLTVDirector( void ) = 0;
virtual void unk002( CPlayerSlot slot ) = 0;
virtual void unk003( CPlayerSlot slot ) = 0;
virtual void unk101( CPlayerSlot slot ) = 0;
virtual void unk102( CPlayerSlot slot ) = 0;
// Something NetMessage related
virtual void unk004() = 0;
// Handles incoming usermessages from the client
virtual void ClientSvcUserMessage( CPlayerSlot slot, int um_type, uint32 size, const void *buf ) = 0;
// Something pawn related
virtual void unk005() = 0;
virtual void unk006() = 0;
virtual void unk201() = 0;
virtual void unk202() = 0;
virtual void unk007() = 0;
virtual void unk008() = 0;
virtual void unk203() = 0;
virtual void unk204() = 0;
};
typedef IVEngineServer2 IVEngineServer;

View File

@ -10,6 +10,8 @@
#include <inetchannel.h>
#include "Color.h"
class CNetMessage;
abstract_class IProtobufBinding
{
public:
@ -22,15 +24,9 @@ public:
virtual Color GetGroupColor() = 0;
virtual NetChannelBufType_t GetBufType() = 0;
virtual bool ReadFromBuffer(void *pData, bf_read &pBuf) = 0;
virtual bool WriteToBuffer(const void *pData, bf_write &pBuf) = 0;
virtual void *AllocateMessage() = 0;
virtual void DeallocateMessage(void *pMsg) = 0;
virtual void *AllocateAndCopyConstructNetMessage(const void *pOther) = 0;
virtual CNetMessage *AllocateMessage() = 0;
virtual bool OkToRedispatch() = 0;
virtual void Copy(const void *pFrom, void *pTo) = 0;
virtual bool unk001() = 0;
};