|
|
|
@ -51,11 +51,7 @@ CBaseEntity
@@ -51,11 +51,7 @@ CBaseEntity
|
|
|
|
|
|
|
|
|
|
// C functions for external declarations that call the appropriate C++ methods
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32 |
|
|
|
|
#define EXPORT _declspec( dllexport ) |
|
|
|
|
#else |
|
|
|
|
#define EXPORT /* */ |
|
|
|
|
#endif |
|
|
|
|
#include "exportdef.h" |
|
|
|
|
|
|
|
|
|
extern "C" EXPORT int GetEntityAPI( DLL_FUNCTIONS *pFunctionTable, int interfaceVersion ); |
|
|
|
|
extern "C" EXPORT int GetEntityAPI2( DLL_FUNCTIONS *pFunctionTable, int *interfaceVersion ); |
|
|
|
@ -373,15 +369,15 @@ public:
@@ -373,15 +369,15 @@ public:
|
|
|
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
|
|
#define SetThink( a ) m_pfnThink = static_cast <void (CBaseEntity::*)(void)> (a) |
|
|
|
|
#define SetTouch( a ) m_pfnTouch = static_cast <void (CBaseEntity::*)(CBaseEntity *)> (a) |
|
|
|
|
#define SetUse( a ) m_pfnUse = static_cast <void (CBaseEntity::*)( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )> (a) |
|
|
|
|
#define SetBlocked( a ) m_pfnBlocked = static_cast <void (CBaseEntity::*)(CBaseEntity *)> (a) |
|
|
|
|
#define ResetThink( ) m_pfnThink = static_cast <void (CBaseEntity::*)(void)> (NULL) |
|
|
|
|
#define ResetTouch( ) m_pfnTouch = static_cast <void (CBaseEntity::*)(CBaseEntity *)> (NULL) |
|
|
|
|
#define ResetUse( ) m_pfnUse = static_cast <void (CBaseEntity::*)( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )> (NULL) |
|
|
|
|
#define ResetBlocked( ) m_pfnBlocked = static_cast <void (CBaseEntity::*)(CBaseEntity *)> (NULL) |
|
|
|
|
|
|
|
|
|
#define SetThink( a ) m_pfnThink = static_cast <void (CBaseEntity::*)(void)> (a) |
|
|
|
|
#define SetTouch( a ) m_pfnTouch = static_cast <void (CBaseEntity::*)(CBaseEntity *)> (a) |
|
|
|
|
#define SetUse( a ) m_pfnUse = static_cast <void (CBaseEntity::*)( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )> (a) |
|
|
|
|
#define SetBlocked( a ) m_pfnBlocked = static_cast <void (CBaseEntity::*)(CBaseEntity *)> (a) |
|
|
|
|
#define ResetThink( ) m_pfnThink = static_cast <void (CBaseEntity::*)(void)> (NULL) |
|
|
|
|
#define ResetTouch( ) m_pfnTouch = static_cast <void (CBaseEntity::*)(CBaseEntity *)> (NULL) |
|
|
|
|
#define ResetUse( ) m_pfnUse = static_cast <void (CBaseEntity::*)( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )> (NULL) |
|
|
|
|
#define ResetBlocked( ) m_pfnBlocked = static_cast <void (CBaseEntity::*)(CBaseEntity *)> (NULL) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -557,8 +553,8 @@ public:
@@ -557,8 +553,8 @@ public:
|
|
|
|
|
// the button will be allowed to operate. Otherwise, it will be
|
|
|
|
|
// deactivated.
|
|
|
|
|
}; |
|
|
|
|
#define SetMoveDone( a ) m_pfnCallWhenMoveDone = static_cast <void (CBaseToggle::*)(void)> (a) |
|
|
|
|
|
|
|
|
|
#define SetMoveDone( a ) m_pfnCallWhenMoveDone = static_cast <void (CBaseToggle::*)(void)> (a) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// people gib if their health is <= this at the time of death
|
|
|
|
|