dvander@1412: /**
dvander@1412: * vim: set ts=4 :
dvander@1412: * =============================================================================
dvander@1412: * SourceMod
ds@1947: * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
dvander@1412: * =============================================================================
dvander@1412: *
dvander@1412: * This program is free software; you can redistribute it and/or modify it under
dvander@1412: * the terms of the GNU General Public License, version 3.0, as published by the
dvander@1412: * Free Software Foundation.
dvander@1412: *
dvander@1412: * This program is distributed in the hope that it will be useful, but WITHOUT
dvander@1412: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
dvander@1412: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
dvander@1412: * details.
dvander@1412: *
dvander@1412: * You should have received a copy of the GNU General Public License along with
dvander@1412: * this program. If not, see .
dvander@1412: *
dvander@1412: * As a special exception, AlliedModders LLC gives you permission to link the
dvander@1412: * code of this program (as well as its derivative works) to "Half-Life 2," the
dvander@1412: * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
dvander@1412: * by the Valve Corporation. You must obey the GNU General Public License in
dvander@1412: * all respects for all other code used. Additionally, AlliedModders LLC grants
dvander@1412: * this exception to all derivative works. AlliedModders LLC defines further
dvander@1412: * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
dvander@1412: * or .
dvander@1412: *
dvander@1412: * Version: $Id$
dvander@1412: */
dvander@1412:
dvander@1412: #ifndef _INCLUDE_SOURCEMOD_FRAME_HOOKS_H_
dvander@1412: #define _INCLUDE_SOURCEMOD_FRAME_HOOKS_H_
dvander@1412:
dvander@2562: #include
dvander@2562:
dvander@2562: using namespace SourceMod;
dvander@2476:
dvander@2476: struct FrameAction
dvander@2476: {
dvander@2562: FrameAction(FRAMEACTION a, void *d) : data(d), action(a)
dvander@2562: {
dvander@2562: }
dvander@2476: void *data;
dvander@2476: FRAMEACTION action;
dvander@2476: };
dvander@2476:
dvander@2235: extern bool g_PendingInternalPush;
dvander@2235:
dvander@2476: void AddFrameAction(const FrameAction & action);
dvander@1904: void RunFrameHooks(bool simulating);
dvander@1412:
dvander@1412: #endif //_INCLUDE_SOURCEMOD_FRAME_HOOKS_H_