lua/wrappers/game/lua_door.cpp
/**
	 * Sets is the door is opened.
	 *
	 * @param boolean opened If the door should be opened.
	 * @returns am.door This
	 */
Sets is the door is opened.
@param boolean opened If the door should be opened.
Sets is the door is opened . @param boolean opened If the door should be opened .
int Door_opened(lua_State *lua)
	{
		Door *door = castUData<Door>(lua, 1);
		if (door)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushboolean(lua, door->isOpened());
				return 1;
			}
			else if (lua_isbool(lua, 2))
			{
				door->setOpened(lua_tobool(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "opened", "boolean opened");
		}
		return LuaState::expectedContext(lua, "opened", "am.door");
	}
int Door_opened ( lua_State * lua ) { Door * door = castUData < Door > ( lua , 1 ) ; if ( door ) { if ( lua_gettop ( lua ) == 1 ) { lua_pushboolean ( lua , door -> isOpened ( ) ) ; return 1 ; } else if ( lua_isbool ( lua , 2 ) ) { door -> setOpened ( lua_tobool ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets is the door is opened.
Sets is the door is opened .