lua/wrappers/game/lua_game.cpp
/**
	 * Returns true if a map with the given map name is found in the map pool.
	 * @param string map_name The map name to look up.
	 * @returns boolean True if the map was found.
	 */
Returns true if a map with the given map name is found in the map pool.
@param string map_name The map name to look up.
@returns boolean True if the map was found.
Returns true if a map with the given map name is found in the map pool . @param string map_name The map name to look up . @returns boolean True if the map was found .
int Game_has_map(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			if (lua_isstr(lua, 2))
			{
				lua_pushboolean(lua, game->hasMap(lua_tostring(lua, 2)));
				return 1;
			}
			return LuaState::expectedArgs(lua, "has_map", "string map_name");
		}
		return LuaState::expectedContext(lua, "has_map", "am.game");
	}
int Game_has_map ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { if ( lua_isstr ( lua , 2 ) ) { lua_pushboolean ( lua , game -> hasMap ( lua_tostring ( lua , 2 ) ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Returns true if a map with the given map name is found in the map pool.
Returns true if a map with the given map name is found in the map pool .