mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2024-12-04 16:24:16 +01:00
27de459d8f
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40164
39 lines
796 B
C++
39 lines
796 B
C++
//////////////////////////////////////////////////////////////////////////
|
|
// Shared data for testbail
|
|
|
|
#include <string>
|
|
#include "testevents.h"
|
|
|
|
namespace N_TestBail
|
|
{
|
|
extern StateList g_States;
|
|
extern SourceHook::ISourceHook *g_SHPtr;
|
|
|
|
MAKE_STATE_1(State_EatYams_Called, int);
|
|
MAKE_STATE_1(State_EatYams_Handler1_Called, int);
|
|
MAKE_STATE_1(State_EatYams_Handler2_Called, int);
|
|
MAKE_STATE_1(State_EatYams_Handler3_Called, int);
|
|
MAKE_STATE_1(State_EatYams_Return, int);
|
|
|
|
class IGaben
|
|
{
|
|
public:
|
|
virtual int EatYams(int a)
|
|
{
|
|
ADD_STATE(State_EatYams_Called(a));
|
|
return 5;
|
|
}
|
|
};
|
|
|
|
extern IGaben *g_Gabgab;
|
|
|
|
bool TestBail2(std::string &error);
|
|
}
|
|
|
|
using namespace N_TestBail;
|
|
|
|
namespace
|
|
{
|
|
SourceHook::Plugin g_PLID;
|
|
SH_DECL_HOOK1(IGaben, EatYams, SH_NOATTRIB, 0, int, int);
|
|
} |