Update CNetMessage, IRecipientFilter & INetChan (#313)

Co-authored-by: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com>
This commit is contained in:
hzqst 2025-08-05 16:19:26 +08:00 committed by GAMMACASE
parent 97f65865ac
commit 7030d81e73
4 changed files with 9 additions and 8 deletions

View File

@ -122,6 +122,7 @@ public:
virtual void SetInstantReplayIntercept( IInstantReplayIntercept *pInstantReplayIntercept ) = 0;
virtual bool IsNull( void ) const = 0;
virtual bool ProcessDemoPacket( NetPacket_t *packet ) = 0;
virtual void ProcessMessages() = 0;
virtual void InstallMessageFilter( INetworkMessageProcessingPreFilter *pFilter ) = 0;
virtual void UninstallMessageFilter( INetworkMessageProcessingPreFilter *pFilter ) = 0;
@ -138,11 +139,10 @@ public:
virtual EResult SendRawMessage( const void *pData, uint32 cbData, int nSendFlags ) = 0;
virtual int GetCurrentNetMessageBits( void ) const = 0;
virtual int GetCurrentNetMessageInSequenceNr( void ) const = 0;
virtual void unk211() = 0;
virtual void unk212() = 0;
virtual void unk213() = 0;
virtual void unk214() = 0;
};

View File

@ -72,7 +72,7 @@ public:
virtual float GetAvgChoke(int flow) const = 0;
virtual float GetAvgData( int flow ) const = 0; // data flow in bytes/sec
virtual float unk001( int flow ) const = 0;
virtual float GetAvgPacketBytes( int flow ) const = 0; //avg packet bytes/sec // flow=0: m_flOutBytesPerSec //flow=0: m_flInBytesPerSec
virtual float GetAvgPackets( int flow ) const = 0; // avg packets/sec
virtual int GetTotalData( int flow ) const = 0; // total flow in/out in bytes

View File

@ -25,8 +25,7 @@ public:
virtual NetChannelBufType_t GetNetworkBufType( void ) const = 0;
virtual bool IsInitMessage( void ) const = 0;
virtual int GetRecipientCount( void ) const = 0;
virtual CPlayerSlot GetRecipientIndex( int slot ) const = 0;
virtual const CBitVec<64> &GetRecipients( void ) const = 0;
};
#endif // IRECIPIENTFILTER_H

View File

@ -41,7 +41,9 @@ public:
}
private:
char unk001[32];
char unk001[24];
float m_flMargin;
char unk002[12];
};
// AMNOTE: This is a stub class over real CNetMessagePB!