This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
MyGameFramework/lib/gwen/gwen_hook.cpp
Gered c5cdddbeaa initial commit
current versions of all of my basic framework sources, build configurations/scripts, and supporting assets
2013-01-31 12:53:05 -05:00

32 lines
441 B
C++

/*
GWEN
Copyright (c) 2010 Facepunch Studios
See license in Gwen.h
*/
#include "gwen_hook.h"
#ifdef GWEN_HOOKSYSTEM
using namespace Gwen;
using namespace Gwen::Hook;
stl::list<BaseHook*> g_HookList;
void Gwen::Hook::AddHook( BaseHook* pHook )
{
g_HookList.push_back( pHook );
}
void Gwen::Hook::RemoveHook( BaseHook* pHook )
{
g_HookList.remove( pHook );
}
HookList& Gwen::Hook::GetHookList()
{
return g_HookList;
}
#endif