lua/wrappers/game/lua_map.cpp
/**
	 * Removes a game object from the map.
	 *
	 * @param am.game_object The game object to remove from the map.
	 * @returns boolean True if the game object was successfully removed from the map.
	 */
Removes a game object from the map.
@param am.game_object The game object to remove from the map.
@returns boolean True if the game object was successfully removed from the map.
Removes a game object from the map . @param am . game_object The game object to remove from the map . @returns boolean True if the game object was successfully removed from the map .
int Map_remove_game_object(lua_State *lua)
	{
		Map *map = castUData<Map>(lua, 1);
		if (map)
		{
			GameObject *obj = getGameObject(lua, 2);
			if (obj)
			{
				lua_pushboolean(lua, map->removeGameObject(obj));
				return 1;
			}
			return LuaState::expectedArgs(lua, "remove_game_object", "am.game_object game_object");
		}
		return LuaState::expectedContext(lua, "remove_game_object", "am.map");
	}
int Map_remove_game_object ( lua_State * lua ) { Map * map = castUData < Map > ( lua , 1 ) ; if ( map ) { GameObject * obj = getGameObject ( lua , 2 ) ; if ( obj ) { lua_pushboolean ( lua , map -> removeGameObject ( obj ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Removes a game object from the map.
Removes a game object from the map .