lua/wrappers/game/lua_game.cpp
/**
	 * Removes a map from the map pool.
	 *
	 * @param am.map map The map to remove.
	 * @returns boolean True if the map was successfully removed, 
	 *  false indicates that map was not in the map pool.
	 */
Removes a map from the map pool.
Removes a map from the map pool .
int Game_remove_map(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			if (lua_isstr(lua, 2))
			{
				lua_pushboolean(lua, game->removeMap(lua_tostring(lua, 2)));
				return 1;
			}
			Map *map = castUData<Map>(lua, 2);
			if (map)
			{
				lua_pushboolean(lua, game->removeMap(map));
				return 1;
			}
			return LuaState::expectedArgs(lua, "remove_map", 2, "string map_name", "am.map map");
		}
		return LuaState::expectedContext(lua, "remove_map", "am.game");
	}
int Game_remove_map ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { if ( lua_isstr ( lua , 2 ) ) { lua_pushboolean ( lua , game -> removeMap ( lua_tostring ( lua , 2 ) ) ) ; return 1 ; } Map * map = castUData < Map > ( lua , 2 ) ; if ( map ) { lua_pushboolean ( lua , game -> removeMap ( map ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Removes a map from the map pool.
Removes a map from the map pool .