lua/wrappers/game/lua_dialogue.cpp
int Dialogue_subject(lua_State *lua)
	{
		Dialogue *diag = castUData<Dialogue>(lua, 1);
		if (diag)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushstring(lua, diag->getSubject());
				return 1;
			}
			else if (lua_isstr(lua, 2))
			{
				diag->setSubject(lua_tostring(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "subject", "string subject");
		}
		return LuaState::expectedContext(lua, "subject", "am.dialogue");
	}
/**
	 * Sets the subject title for this dialogue. The subject can determine
	 * if a dialogue option is unlocked, as once any dialogue with a given subject
	 * is unlocked, all dialogue's with the same subject are unlocked.
	 * @param string subject The subject title for this dialogue.
	 * @returns am.dialogue This
	 */
Sets the subject title for this dialogue. The subject can determine
if a dialogue option is unlocked, as once any dialogue with a given subject
is unlocked, all dialogue's with the same subject are unlocked.
@param string subject The subject title for this dialogue.
Sets the subject title for this dialogue . The subject can determine if a dialogue option is unlocked as once any dialogue with a given subject is unlocked all dialogue ' s with the same subject are unlocked . @param string subject The subject title for this dialogue .
int Dialogue_subject(lua_State *lua)
	{
		Dialogue *diag = castUData<Dialogue>(lua, 1);
		if (diag)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushstring(lua, diag->getSubject());
				return 1;
			}
			else if (lua_isstr(lua, 2))
			{
				diag->setSubject(lua_tostring(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "subject", "string subject");
		}
		return LuaState::expectedContext(lua, "subject", "am.dialogue");
	}
int Dialogue_subject ( lua_State * lua ) { Dialogue * diag = castUData < Dialogue > ( lua , 1 ) ; if ( diag ) { if ( lua_gettop ( lua ) == 1 ) { lua_pushstring ( lua , diag -> getSubject ( ) ) ; return 1 ; } else if ( lua_isstr ( lua , 2 ) ) { diag -> setSubject ( lua_tostring ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the subject title for this dialogue.
Sets the subject title for this dialogue .