lua/wrappers/game/lua_dialogue_component.cpp
/**
	 * Sets if a dialogue subject is locked or unlocked for this dialogue component.
	 * Unlocked subjects will be available to use in dialogue.
	 * @param string subject The subject to lock or unlock.
	 * @param boolean locked Sets is the subject is locked or unlocked.
	 * @returns am.dialogue_component This
	 */
Sets if a dialogue subject is locked or unlocked for this dialogue component.
Unlocked subjects will be available to use in dialogue.
@param string subject The subject to lock or unlock.
@param boolean locked Sets is the subject is locked or unlocked.
Sets if a dialogue subject is locked or unlocked for this dialogue component . Unlocked subjects will be available to use in dialogue . @param string subject The subject to lock or unlock . @param boolean locked Sets is the subject is locked or unlocked .
int DialogueComponent_subject_lock(lua_State *lua)
	{
		DialogueComponent *comp = castUData<DialogueComponent>(lua, 1);
		if (comp)
		{
			if (lua_gettop(lua) == 2)
			{
				if (lua_isstr(lua, 2))
				{
					lua_pushboolean(lua, comp->isSubjectLocked(lua_tostring(lua, 2)));
					return 1;
				}
				return LuaState::expectedArgs(lua, "locked", "string subject");
			}
			else if (lua_isbool(lua, 3))
			{
				comp->setSubjectLock(lua_tostring(lua, 2), lua_tobool(lua, 3));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "locked", "string subject, boolean locked");
		}
		return LuaState::expectedContext(lua, "locked", "am.dialogue_component");
	}
int DialogueComponent_subject_lock ( lua_State * lua ) { DialogueComponent * comp = castUData < DialogueComponent > ( lua , 1 ) ; if ( comp ) { if ( lua_gettop ( lua ) == 2 ) { if ( lua_isstr ( lua , 2 ) ) { lua_pushboolean ( lua , comp -> isSubjectLocked ( lua_tostring ( lua , 2 ) ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } else if ( lua_isbool ( lua , 3 ) ) { comp -> setSubjectLock ( lua_tostring ( lua , 2 ) , lua_tobool ( lua , 3 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets if a dialogue subject is locked or unlocked for this dialogue component.
Sets if a dialogue subject is locked or unlocked for this dialogue component .