cssdm_main.h
author Ruben Gonzalez <drifter01620@gmail.com>
Wed Oct 01 11:50:24 2014 -0400 (2014-10-01)
changeset 193 277c856152b0
parent 15 2f8a465297b4
permissions -rw-r--r--
Update linix CS:GO gamedata
     1 /**
     2  * vim: set ts=4 :
     3  * ===============================================================
     4  * CS:S DM, Copyright (C) 2004-2007 AlliedModders LLC. 
     5  * By David "BAILOPAN" Anderson
     6  * All rights reserved.
     7  * ===============================================================
     8  *
     9  * This program is free software; you can redistribute it and/or modify
    10  * it under the terms of the GNU General Public License as published by
    11  * the Free Software Foundation; either version 2 of the License, or (at
    12  * your option) any later version.
    13  * 
    14  * This program is distributed in the hope that it will be useful, but
    15  * WITHOUT ANY WARRANTY; without even the implied warranty of
    16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    17  * General Public License for more details.
    18  * 
    19  * You should have received a copy of the GNU General Public License
    20  * along with this program; see the file COPYING; if not, write to the
    21  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
    22  * MA 02110-1301 USA
    23  * 
    24  * Version: $Id$
    25  */
    26 
    27 
    28 #ifndef _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
    29 #define _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
    30 
    31 /**
    32  * @file extension.h
    33  * @brief Sample extension code header.
    34  */
    35 
    36 #include "smsdk_ext.h"
    37 #include <IBinTools.h>
    38 
    39 /**
    40  * @brief Sample implementation of the SDK Extension.
    41  * Note: Uncomment one of the pre-defined virtual functions in order to use it.
    42  */
    43 class Deathmatch : public SDKExtension
    44 {
    45 public:
    46 	virtual bool SDK_OnLoad(char *error, size_t maxlength, bool late);
    47 	virtual void SDK_OnUnload();
    48 	virtual void SDK_OnAllLoaded();
    49 	//virtual void SDK_OnPauseChange(bool paused);
    50 	virtual bool QueryRunning(char *error, size_t maxlength);
    51 	bool QueryInterfaceDrop(SMInterface *pInterface);
    52 	void NotifyInterfaceDrop(SMInterface *pInterface);
    53 	const char *GetExtensionVerString();
    54 public:
    55 	virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlength, bool late);
    56 	//virtual bool SDK_OnMetamodUnload(char *error, size_t maxlength);
    57 	//virtual bool SDK_OnMetamodPauseChange(bool paused, char *error, size_t maxlength);
    58 };
    59 
    60 extern Deathmatch g_DM;
    61 
    62 #endif // _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_