lua/wrappers/game/lua_dialogue.cpp
/**
	 * @static
	 * Finds a dialogue in the dialogue pool with the given dialogue id.
	 * @param string dialogue_id The dialogue id to search for.
	 * @returns am.dialogue The found dialogue or nil.
	 */
@static
Finds a dialogue in the dialogue pool with the given dialogue id.
@param string dialogue_id The dialogue id to search for.
@returns am.dialogue The found dialogue or nil.
@static Finds a dialogue in the dialogue pool with the given dialogue id . @param string dialogue_id The dialogue id to search for . @returns am . dialogue The found dialogue or nil .
int Dialogue_get_dialogue(lua_State *lua)
	{
		if (lua_isstr(lua, 1))
		{
			Dialogue *diag = Engine::getGame()->getDialogue(lua_tostring(lua, 1));
			if (diag)
			{
				wrapRefObject<Dialogue>(lua, diag);
				return 1;
			}
			lua_pushnil(lua);
			return 1;
		}
		return LuaState::expectedArgs(lua, "@dialogue", "string dialogue_id");
	}
int Dialogue_get_dialogue ( lua_State * lua ) { if ( lua_isstr ( lua , 1 ) ) { Dialogue * diag = Engine :: getGame ( ) -> getDialogue ( lua_tostring ( lua , 1 ) ) ; if ( diag ) { wrapRefObject < Dialogue > ( lua , diag ) ; return 1 ; } lua_pushnil ( lua ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
@static
 Finds a dialogue in the dialogue pool with the given dialogue id.
@static Finds a dialogue in the dialogue pool with the given dialogue id .