2023-05-03 08:57:49 +03:00
|
|
|
#ifndef PROTOBUFBINDING_H
|
|
|
|
#define PROTOBUFBINDING_H
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#pragma once
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <tier1/utlstring.h>
|
|
|
|
#include <tier1/bitbuf.h>
|
2023-05-04 09:48:18 +03:00
|
|
|
#include <inetchannel.h>
|
2023-05-03 08:57:49 +03:00
|
|
|
#include "Color.h"
|
|
|
|
|
2024-08-16 03:49:51 +08:00
|
|
|
class CNetMessage;
|
|
|
|
|
2023-05-03 08:57:49 +03:00
|
|
|
abstract_class IProtobufBinding
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual const char *GetName() = 0;
|
|
|
|
virtual int GetSize() = 0;
|
|
|
|
|
|
|
|
virtual const char *ToString(const void *pData, CUtlString &sResult) = 0;
|
|
|
|
|
|
|
|
virtual const char *GetGroup() = 0;
|
|
|
|
virtual Color GetGroupColor() = 0;
|
|
|
|
virtual NetChannelBufType_t GetBufType() = 0;
|
|
|
|
|
2024-08-16 03:49:51 +08:00
|
|
|
virtual CNetMessage *AllocateMessage() = 0;
|
2023-05-03 08:57:49 +03:00
|
|
|
|
|
|
|
virtual bool OkToRedispatch() = 0;
|
|
|
|
virtual bool unk001() = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PROTOBUFBINDING_H */
|