core/NextMap.h
author Matt Woodrow <pred@alliedmods.net>
Sun May 25 07:11:16 2008 +0000 (2008-05-25)
changeset 2077 3c6fe374e8b7
child 2203 159ab9bad58c
permissions -rw-r--r--
Fixed amb1454 - Nextmap broken on mods that use the scores usermsg differently to CS:S
pred@2077
     1
/**
pred@2077
     2
 * vim: set ts=4 :
pred@2077
     3
 * =============================================================================
pred@2077
     4
 * SourceMod
pred@2077
     5
 * Copyright (C) 2004-2008 AlliedModders LLC.  All rights reserved.
pred@2077
     6
 * =============================================================================
pred@2077
     7
 *
pred@2077
     8
 * This program is free software; you can redistribute it and/or modify it under
pred@2077
     9
 * the terms of the GNU General Public License, version 3.0, as published by the
pred@2077
    10
 * Free Software Foundation.
pred@2077
    11
 * 
pred@2077
    12
 * This program is distributed in the hope that it will be useful, but WITHOUT
pred@2077
    13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
pred@2077
    14
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
pred@2077
    15
 * details.
pred@2077
    16
 *
pred@2077
    17
 * You should have received a copy of the GNU General Public License along with
pred@2077
    18
 * this program.  If not, see <http://www.gnu.org/licenses/>.
pred@2077
    19
 *
pred@2077
    20
 * As a special exception, AlliedModders LLC gives you permission to link the
pred@2077
    21
 * code of this program (as well as its derivative works) to "Half-Life 2," the
pred@2077
    22
 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
pred@2077
    23
 * by the Valve Corporation.  You must obey the GNU General Public License in
pred@2077
    24
 * all respects for all other code used.  Additionally, AlliedModders LLC grants
pred@2077
    25
 * this exception to all derivative works.  AlliedModders LLC defines further
pred@2077
    26
 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
pred@2077
    27
 * or <http://www.sourcemod.net/license.php>.
pred@2077
    28
 *
pred@2077
    29
 * Version: $Id$
pred@2077
    30
 */
pred@2077
    31
pred@2077
    32
#ifndef _INCLUDE_SOURCEMOD_NEXTMAP_H_
pred@2077
    33
#define _INCLUDE_SOURCEMOD_NEXTMAP_H_
pred@2077
    34
pred@2077
    35
#include "sm_globals.h"
pred@2077
    36
#include "eiface.h"
pred@2077
    37
pred@2077
    38
class NextMapManager : public SMGlobalClass
pred@2077
    39
{
pred@2077
    40
public:
pred@2077
    41
	void OnSourceModAllInitialized_Post();
pred@2077
    42
	void OnSourceModShutdown();
pred@2077
    43
pred@2077
    44
	const char *GetNextMap();
pred@2077
    45
	bool SetNextMap(const char *map);
pred@2077
    46
pred@2077
    47
	void HookChangeLevel(const char *map, const char *unknown);
pred@2077
    48
};
pred@2077
    49
pred@2077
    50
extern NextMapManager g_NextMap;
pred@2077
    51
pred@2077
    52
#endif //_INCLUDE_SOURCEMOD_NEXTMAP_H_