1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/cssdm_main.h Sun Jun 24 21:58:09 2007 +0000
1.3 @@ -0,0 +1,59 @@
1.4 +/**
1.5 + * vim: set ts=4 :
1.6 + * ===============================================================
1.7 + * CS:S DM, Copyright (C) 2004-2007 AlliedModders LLC.
1.8 + * By David "BAILOPAN" Anderson
1.9 + * All rights reserved.
1.10 + * ===============================================================
1.11 + *
1.12 + * This program is free software; you can redistribute it and/or modify
1.13 + * it under the terms of the GNU General Public License as published by
1.14 + * the Free Software Foundation; either version 2 of the License, or (at
1.15 + * your option) any later version.
1.16 + *
1.17 + * This program is distributed in the hope that it will be useful, but
1.18 + * WITHOUT ANY WARRANTY; without even the implied warranty of
1.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.20 + * General Public License for more details.
1.21 + *
1.22 + * You should have received a copy of the GNU General Public License
1.23 + * along with this program; see the file COPYING; if not, write to the
1.24 + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
1.25 + * MA 02110-1301 USA
1.26 + *
1.27 + * Version: $Id$
1.28 + */
1.29 +
1.30 +
1.31 +#ifndef _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
1.32 +#define _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
1.33 +
1.34 +/**
1.35 + * @file extension.h
1.36 + * @brief Sample extension code header.
1.37 + */
1.38 +
1.39 +#include "smsdk_ext.h"
1.40 +#include <IBinTools.h>
1.41 +
1.42 +/**
1.43 + * @brief Sample implementation of the SDK Extension.
1.44 + * Note: Uncomment one of the pre-defined virtual functions in order to use it.
1.45 + */
1.46 +class Deathmatch : public SDKExtension
1.47 +{
1.48 +public:
1.49 + virtual bool SDK_OnLoad(char *error, size_t maxlength, bool late);
1.50 + virtual void SDK_OnUnload();
1.51 + virtual void SDK_OnAllLoaded();
1.52 + //virtual void SDK_OnPauseChange(bool paused);
1.53 + virtual bool QueryRunning(char *error, size_t maxlength);
1.54 +public:
1.55 + virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlength, bool late);
1.56 + //virtual bool SDK_OnMetamodUnload(char *error, size_t maxlength);
1.57 + //virtual bool SDK_OnMetamodPauseChange(bool paused, char *error, size_t maxlength);
1.58 +};
1.59 +
1.60 +extern Deathmatch g_DM;
1.61 +
1.62 +#endif // _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_