Added support for "fuzzy" map names in L4D and later (bug 5599, r=asherkin).

This commit is contained in:
Nicholas Hastings
2013-02-14 19:28:12 -05:00
parent 14b9902f6d
commit b296af6fe4
6 changed files with 58 additions and 4 deletions
+10
View File
@@ -308,6 +308,16 @@ namespace SourceMod
* @return Pointer to the string, or NULL if bad pointer.
*/
virtual const char *GetEntityClassname(CBaseEntity *pEntity) =0;
/**
* @brief Returns whether or not a map name is valid to use with the
* engine's Changelevel functionality. It need not be an exact filename on
* some engines. For a check on the exact name, use IVEngineServer::IsMapValid.
*
* @param map Map name.
* @return True if valid, otherwise false.
*/
virtual bool IsMapValid(const char *map) =0;
};
}