lua/wrappers/game/lua_game.cpp
/**
	 * Adds the given dialogue to the dialogue pool.
	 *
	 * @param am.dialogue dialogue The dialogue to add to the pool.
	 * @returns boolean True if the dialogue was successfully added, false
	 *  indicates that dialogue was nil or was already in the pool.
	 */
Adds the given dialogue to the dialogue pool.
@param am.dialogue dialogue The dialogue to add to the pool.
@returns boolean True if the dialogue was successfully added, false
indicates that dialogue was nil or was already in the pool.
Adds the given dialogue to the dialogue pool . @param am . dialogue dialogue The dialogue to add to the pool . @returns boolean True if the dialogue was successfully added false indicates that dialogue was nil or was already in the pool .
int Game_add_dialogue(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			Dialogue *diag = castUData<Dialogue>(lua, 2);
			if (diag)
			{
				lua_pushboolean(lua, game->addDialogue(diag));
				return 1;
			}
			return LuaState::expectedArgs(lua, "add_dialogue", "am.dialogue dialogue");
		}
		return LuaState::expectedContext(lua, "add_dialogue", "am.game");
	}
int Game_add_dialogue ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { Dialogue * diag = castUData < Dialogue > ( lua , 2 ) ; if ( diag ) { lua_pushboolean ( lua , game -> addDialogue ( diag ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Adds the given dialogue to the dialogue pool.
Adds the given dialogue to the dialogue pool .