core/frame_hooks.h
author Nicholas Hastings <skamonkey@gmail.com>
Fri Nov 04 10:01:33 2011 -0400 (2011-11-04)
changeset 3438 07a1b8a8a2ba
parent 2562 af4b3f9a8168
permissions -rw-r--r--
Updated TF2_OnIsHolidayActive ret behavior to match doc (bug 5155, r=fyren).
dvander@1412
     1
/**
dvander@1412
     2
 * vim: set ts=4 :
dvander@1412
     3
 * =============================================================================
dvander@1412
     4
 * SourceMod
ds@1947
     5
 * Copyright (C) 2004-2008 AlliedModders LLC.  All rights reserved.
dvander@1412
     6
 * =============================================================================
dvander@1412
     7
 *
dvander@1412
     8
 * This program is free software; you can redistribute it and/or modify it under
dvander@1412
     9
 * the terms of the GNU General Public License, version 3.0, as published by the
dvander@1412
    10
 * Free Software Foundation.
dvander@1412
    11
 * 
dvander@1412
    12
 * This program is distributed in the hope that it will be useful, but WITHOUT
dvander@1412
    13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
dvander@1412
    14
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
dvander@1412
    15
 * details.
dvander@1412
    16
 *
dvander@1412
    17
 * You should have received a copy of the GNU General Public License along with
dvander@1412
    18
 * this program.  If not, see <http://www.gnu.org/licenses/>.
dvander@1412
    19
 *
dvander@1412
    20
 * As a special exception, AlliedModders LLC gives you permission to link the
dvander@1412
    21
 * code of this program (as well as its derivative works) to "Half-Life 2," the
dvander@1412
    22
 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
dvander@1412
    23
 * by the Valve Corporation.  You must obey the GNU General Public License in
dvander@1412
    24
 * all respects for all other code used.  Additionally, AlliedModders LLC grants
dvander@1412
    25
 * this exception to all derivative works.  AlliedModders LLC defines further
dvander@1412
    26
 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
dvander@1412
    27
 * or <http://www.sourcemod.net/license.php>.
dvander@1412
    28
 *
dvander@1412
    29
 * Version: $Id$
dvander@1412
    30
 */
dvander@1412
    31
dvander@1412
    32
#ifndef _INCLUDE_SOURCEMOD_FRAME_HOOKS_H_
dvander@1412
    33
#define _INCLUDE_SOURCEMOD_FRAME_HOOKS_H_
dvander@1412
    34
dvander@2562
    35
#include <ISourceMod.h>
dvander@2562
    36
dvander@2562
    37
using namespace SourceMod;
dvander@2476
    38
dvander@2476
    39
struct FrameAction
dvander@2476
    40
{
dvander@2562
    41
	FrameAction(FRAMEACTION a, void *d) : data(d), action(a)
dvander@2562
    42
	{
dvander@2562
    43
	}
dvander@2476
    44
	void *data;
dvander@2476
    45
	FRAMEACTION action;
dvander@2476
    46
};
dvander@2476
    47
dvander@2235
    48
extern bool g_PendingInternalPush;
dvander@2235
    49
dvander@2476
    50
void AddFrameAction(const FrameAction & action);
dvander@1904
    51
void RunFrameHooks(bool simulating);
dvander@1412
    52
dvander@1412
    53
#endif //_INCLUDE_SOURCEMOD_FRAME_HOOKS_H_