r5sdk/r5dev/public/server_class.h
Kawe Mazidjatari 217bbc8ea1 Add new work-in-progress entity structures to SDK
Thanks to rexx for the structures.
2023-01-18 00:46:17 +01:00

35 lines
961 B
C++

#pragma once
class SendTable;
//-----------------------------------------------------------------------------
// Purpose: Server side class definition
//-----------------------------------------------------------------------------
class ServerClass
{
public:
const char* GetName(void) const
{
return m_pNetworkName;
}
public:
char* m_pNetworkName;
SendTable* m_pSendTable;
ServerClass* m_pNext;
int m_Unknown1;
int m_ClassID;
int m_InstanceBaselineIndex;
};
// If you do a DECLARE_SERVERCLASS, you need to do this inside the class definition.
#define DECLARE_SERVERCLASS() \
public: \
virtual ServerClass* GetServerClass(); \
static SendTable *m_pClassSendTable; \
template <typename T> friend int ServerClassInit(T *); \
virtual int YouForgotToImplementOrDeclareServerClass(); \
#define DECLARE_SERVERCLASS_NOBASE() \
public: \
template <typename T> friend int ServerClassInit(T *); \