core/concmd_cleaner.h
author David Anderson <dvander@alliedmods.net>
Tue Dec 04 01:08:03 2007 +0000 (2007-12-04)
changeset 1756 33f9fa5adfe3
parent 1643 2ea224c9e9a1
child 1947 e73a1e51833b
permissions -rw-r--r--
added @t, @ts, @ct, @cts target patterns
dvander@1582
     1
/**
dvander@1582
     2
 * vim: set ts=4 :
dvander@1582
     3
 * =============================================================================
dvander@1582
     4
 * SourceMod
dvander@1582
     5
 * Copyright (C) 2004-2007 AlliedModders LLC.  All rights reserved.
dvander@1582
     6
 * =============================================================================
dvander@1582
     7
 *
dvander@1582
     8
 * This program is free software; you can redistribute it and/or modify it under
dvander@1582
     9
 * the terms of the GNU General Public License, version 3.0, as published by the
dvander@1582
    10
 * Free Software Foundation.
dvander@1582
    11
 * 
dvander@1582
    12
 * This program is distributed in the hope that it will be useful, but WITHOUT
dvander@1582
    13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
dvander@1582
    14
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
dvander@1582
    15
 * details.
dvander@1582
    16
 *
dvander@1582
    17
 * You should have received a copy of the GNU General Public License along with
dvander@1582
    18
 * this program.  If not, see <http://www.gnu.org/licenses/>.
dvander@1582
    19
 *
dvander@1582
    20
 * As a special exception, AlliedModders LLC gives you permission to link the
dvander@1582
    21
 * code of this program (as well as its derivative works) to "Half-Life 2," the
dvander@1582
    22
 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
dvander@1582
    23
 * by the Valve Corporation.  You must obey the GNU General Public License in
dvander@1582
    24
 * all respects for all other code used.  Additionally, AlliedModders LLC grants
dvander@1582
    25
 * this exception to all derivative works.  AlliedModders LLC defines further
dvander@1582
    26
 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
dvander@1582
    27
 * or <http://www.sourcemod.net/license.php>.
dvander@1582
    28
 *
dvander@1582
    29
 * Version: $Id$
dvander@1582
    30
 */
dvander@1582
    31
dvander@1584
    32
#ifndef _INCLUDE_CONCMD_TRACKER_H_
dvander@1584
    33
#define _INCLUDE_CONCMD_TRACKER_H_
dvander@1584
    34
dvander@1582
    35
class IConCommandTracker
dvander@1582
    36
{
dvander@1582
    37
public:
dvander@1582
    38
	virtual void OnUnlinkConCommandBase(ConCommandBase *pBase, const char *name, bool is_read_safe) = 0;
dvander@1582
    39
};
dvander@1582
    40
faluco@1643
    41
ConCommandBase *FindConCommandBase(const char *name);
dvander@1582
    42
void TrackConCommandBase(ConCommandBase *pBase, IConCommandTracker *me);
dvander@1582
    43
void UntrackConCommandBase(ConCommandBase *pBase, IConCommandTracker *me);
dvander@1582
    44
void Global_OnUnlinkConCommandBase(ConCommandBase *pBase);
dvander@1582
    45
dvander@1584
    46
#endif //_INCLUDE_CONCMD_TRACKER_H_