core/frame_hooks.h
author Fyren <fyrenmoo@gmail.com>
Thu Feb 19 14:22:22 2009 +1300 (2009-02-19)
changeset 2589 450192701928
parent 2476 c21fd6e89ff5
child 2562 af4b3f9a8168
permissions -rw-r--r--
Fixed modules.versions not including clientprefs (bug 3647, r=dvander)
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@2476
    35
typedef void (*FRAMEACTION)(void *data);
dvander@2476
    36
dvander@2476
    37
struct FrameAction
dvander@2476
    38
{
dvander@2476
    39
	void *data;
dvander@2476
    40
	FRAMEACTION action;
dvander@2476
    41
};
dvander@2476
    42
dvander@2235
    43
extern bool g_PendingInternalPush;
dvander@2235
    44
dvander@2476
    45
void AddFrameAction(const FrameAction & action);
dvander@1904
    46
void RunFrameHooks(bool simulating);
dvander@1412
    47
dvander@1412
    48
#endif //_INCLUDE_SOURCEMOD_FRAME_HOOKS_H_