extensions/sdktools/hooks.h
author Nicholas Hastings <skamonkey@gmail.com>
Wed Aug 14 14:20:57 2013 -0400 (2013-08-14)
changeset 4008 490b01aa0683
parent 3619 0249ba510bfe
child 4141 8ff66ae5ffcc
permissions -rw-r--r--
Updated some CS:GO gamedata.
pred@2711
     1
/**
pred@2711
     2
* vim: set ts=4 :
pred@2711
     3
* =============================================================================
pred@2711
     4
* SourceMod SDKTools Extension
pred@2711
     5
* Copyright (C) 2004-2008 AlliedModders LLC.  All rights reserved.
pred@2711
     6
* =============================================================================
pred@2711
     7
*
pred@2711
     8
* This program is free software; you can redistribute it and/or modify it under
pred@2711
     9
* the terms of the GNU General Public License, version 3.0, as published by the
pred@2711
    10
* Free Software Foundation.
pred@2711
    11
*
pred@2711
    12
* This program is distributed in the hope that it will be useful, but WITHOUT
pred@2711
    13
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
pred@2711
    14
* FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
pred@2711
    15
* details.
pred@2711
    16
*
pred@2711
    17
* You should have received a copy of the GNU General Public License along with
pred@2711
    18
* this program.  If not, see <http://www.gnu.org/licenses/>.
pred@2711
    19
*
pred@2711
    20
* As a special exception, AlliedModders LLC gives you permission to link the
pred@2711
    21
* code of this program (as well as its derivative works) to "Half-Life 2," the
pred@2711
    22
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
pred@2711
    23
* by the Valve Corporation.  You must obey the GNU General Public License in
pred@2711
    24
* all respects for all other code used.  Additionally, AlliedModders LLC grants
pred@2711
    25
* this exception to all derivative works.  AlliedModders LLC defines further
pred@2711
    26
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
pred@2711
    27
* or <http://www.sourcemod.net/license.php>.
pred@2711
    28
*
pred@2711
    29
* Version: $Id$
pred@2711
    30
*/
pred@2711
    31
pred@2711
    32
#ifndef _INCLUDE_HOOKS_H_
pred@2711
    33
#define _INCLUDE_HOOKS_H_
pred@2711
    34
pred@2711
    35
#include "basehandle.h"
pred@2711
    36
#undef ARRAYSIZE
pred@2713
    37
#include "vector.h"
pred@2713
    38
#include "utlvector.h"
dvander@2785
    39
#include <shareddefs.h>
pred@2711
    40
#include "usercmd.h"
pred@2711
    41
#include "extension.h"
pred@2711
    42
aangione@3619
    43
class CHookManager : IPluginsListener, IFeatureProvider
pred@2711
    44
{
pred@2711
    45
public:
pred@2711
    46
	CHookManager();
pred@2711
    47
	void Initialize();
pred@2711
    48
	void Shutdown();
pred@2711
    49
	void OnClientPutInServer(int client);
pred@2711
    50
	void OnClientDisconnecting(int client);
pred@2711
    51
	void PlayerRunCmd(CUserCmd *ucmd, IMoveHelper *moveHelper);
skamonkey@3084
    52
public: //IPluginsListener
skamonkey@3084
    53
	void OnPluginLoaded(IPlugin *plugin);
skamonkey@3084
    54
	void OnPluginUnloaded(IPlugin *plugin);
aangione@3619
    55
public: //IFeatureProvider
aangione@3619
    56
	virtual FeatureStatus GetFeatureStatus(FeatureType type, const char *name);
pred@2711
    57
pred@2711
    58
private:
pred@2711
    59
	IForward *m_usercmdsFwd;
pred@2711
    60
};
pred@2711
    61
pred@2711
    62
extern CHookManager g_Hooks;
pred@2711
    63
pred@2711
    64
#endif // _INCLUDE_HOOKS_H_