r5sdk/r5dev/public/idatablock.h
Kawe Mazidjatari 45b10aa0e9 Rename NetDataBlockReceiver method
This is a debug method that is called from 'CClientState::ProcessDataBlock()'.
2023-08-21 16:32:39 +02:00

27 lines
663 B
C++

#ifndef IDATABLOCK_H
#define IDATABLOCK_H
#define DATABLOCK_STATUS_SIZE 0x300
abstract_class NetDataBlockSender
{
public:
virtual ~NetDataBlockSender() {};
virtual void SendDataBlock(short unk0, int unk1,
short unk2, short unk3, const void* buffer, int length) = 0;
virtual float GetResendRate() const = 0;
virtual const char* GetReceiverName() const = 0;
};
abstract_class NetDataBlockReceiver
{
public:
virtual ~NetDataBlockReceiver() {};
// Called when cvar 'net_debugDataBlockReceiver' is set;
// currently a nullsub in the engine.
virtual void DebugDataBlockReceiver() {};
virtual void AcknowledgeTransmission() = 0;
};
#endif // IDATABLOCK_H