lua/wrappers/game/lua_game.cpp
/**
	 * Removes a dialogue from the dialogue pool.
	 *
	 * @param string dialogue_id The dialogue id of the dialogue to remove.
	 * @returns boolean True if the dialogue was successfully removed, false
	 *  indicates that the dialogue was nil or not found.
	 */
Removes a dialogue from the dialogue pool.
@param string dialogue_id The dialogue id of the dialogue to remove.
@returns boolean True if the dialogue was successfully removed, false
indicates that the dialogue was nil or not found.
Removes a dialogue from the dialogue pool . @param string dialogue_id The dialogue id of the dialogue to remove . @returns boolean True if the dialogue was successfully removed false indicates that the dialogue was nil or not found .
int Game_remove_dialogue(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			if (lua_isstr(lua, 2))
			{
				lua_pushboolean(lua, game->removeDialogue(lua_tostring(lua, 2)));
				return 1;
			}
			Dialogue *diag = castUData<Dialogue>(lua, 2);
			if (diag)
			{
				lua_pushboolean(lua, game->removeDialogue(diag->getId()));
				return 1;
			}
			return LuaState::expectedArgs(lua, "remove_dialogue", 2, "string dialogue_id", "am.dialogue dialogue");
		}
		return LuaState::expectedContext(lua, "remove_dialogue", "am.game");
	}
int Game_remove_dialogue ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { if ( lua_isstr ( lua , 2 ) ) { lua_pushboolean ( lua , game -> removeDialogue ( lua_tostring ( lua , 2 ) ) ) ; return 1 ; } Dialogue * diag = castUData < Dialogue > ( lua , 2 ) ; if ( diag ) { lua_pushboolean ( lua , game -> removeDialogue ( diag -> getId ( ) ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Removes a dialogue from the dialogue pool.
Removes a dialogue from the dialogue pool .