From 89b95a683de44ccd89bb033f3015574cd7520dbb Mon Sep 17 00:00:00 2001 From: divinity76 Date: Sun, 20 Oct 2024 03:37:40 +0200 Subject: [PATCH 1/8] allow disabling "Hunting Rounds Limit" --- mods/game_bot/default_configs/vBot_4.8/cavebot/supply_check.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/game_bot/default_configs/vBot_4.8/cavebot/supply_check.lua b/mods/game_bot/default_configs/vBot_4.8/cavebot/supply_check.lua index c694bdeb6e..882564d10a 100644 --- a/mods/game_bot/default_configs/vBot_4.8/cavebot/supply_check.lua +++ b/mods/game_bot/default_configs/vBot_4.8/cavebot/supply_check.lua @@ -90,7 +90,7 @@ CaveBot.Extensions.SupplyCheck.setup = function() supplyRetries = 0 missedChecks = 0 return false - elseif supplyRetries > (storage.extras.huntRoutes or 50) then + elseif (storage.extras.huntRoutes or 0) ~= 0 and supplyRetries > (storage.extras.huntRoutes or 50) then print("CaveBot[SupplyCheck]: Round limit reached, going back on refill. Last round took: " .. round) setCaveBotData() return false From e4311b568c55db4c5fd0092193b5df499886bebc Mon Sep 17 00:00:00 2001 From: Jon Daniel Date: Sun, 20 Oct 2024 18:14:05 +0200 Subject: [PATCH 2/8] improve: use GNUInstallDirs and add cmake/Findphmap.cmake --- CMakeLists.txt | 2 +- cmake/Findphmap.cmake | 4 ++++ src/CMakeLists.txt | 11 +++++++---- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 cmake/Findphmap.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index c18f2d60b7..bff3500cea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) # ***************************************************************************** include(MessageColors) include(LoggingHelper) -include(CheckIncludeFileCXX) +include(GNUInstallDirs) # ***************************************************************************** # Options diff --git a/cmake/Findphmap.cmake b/cmake/Findphmap.cmake new file mode 100644 index 0000000000..f9ede425fe --- /dev/null +++ b/cmake/Findphmap.cmake @@ -0,0 +1,4 @@ +include(CheckIncludeFileCXX) +set(CMAKE_REQUIRED_INCLUDES "${CMAKE_INSTALL_INCLUDEDIR}") +check_include_file_cxx(parallel_hashmap/phmap.h PHMAP_PHMAP_INCLUDE) +check_include_file_cxx(parallel_hashmap/btree.h PHMAP_BTREE_INCLUDE) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0894346395..0e215bf394 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -187,6 +187,7 @@ add_definitions(-D"BUILD_REVISION=\\\"${BUILD_REVISION}\\\"") find_package(OpenSSL QUIET) find_package(PhysFS REQUIRED) find_package(ZLIB REQUIRED) +find_package(phmap REQUIRED) find_package(absl CONFIG REQUIRED) find_package(Protobuf REQUIRED) find_package(LibLZMA REQUIRED) @@ -197,7 +198,6 @@ find_package(STDUUID CONFIG REQUIRED) find_package(pugixml CONFIG REQUIRED) find_package(ZLIB REQUIRED) find_package(httplib CONFIG REQUIRED) -CHECK_INCLUDE_FILE_CXX(phmap/phmap.h PHMAP_Found REQUIRED) if(APPLE) # Required for Physfs @@ -455,7 +455,8 @@ if(MSVC) target_include_directories(${PROJECT_NAME} PRIVATE - ${CMAKE_SOURCE_DIR}/src + $ + $ ${LUAJIT_INCLUDE_DIR} ${Protobuf_INCLUDE_DIRS} ${VORBISFILE_INCLUDE_DIR} @@ -496,7 +497,8 @@ if(MSVC) elseif(ANDROID) target_include_directories(${PROJECT_NAME} PRIVATE - ${CMAKE_SOURCE_DIR}/src + $ + $ ${LUAJIT_INCLUDE_DIR} ${CMAKE_THREAD_LIBS_INIT} ${Protobuf_INCLUDE_DIRS} @@ -540,7 +542,8 @@ elseif(ANDROID) else() # Linux target_include_directories(${PROJECT_NAME} PRIVATE - ${CMAKE_SOURCE_DIR}/src + $ + $ ${LUAJIT_INCLUDE_DIR} ${CMAKE_THREAD_LIBS_INIT} ${Protobuf_INCLUDE_DIRS} From 01fd6c0931ed42dad2e228def301895abb0c117d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Paix=C3=A3o?= Date: Mon, 21 Oct 2024 14:14:14 -0300 Subject: [PATCH 3/8] fix: containers name (#942) --- modules/game_containers/containers.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/game_containers/containers.lua b/modules/game_containers/containers.lua index 6f7439103f..d12357110d 100644 --- a/modules/game_containers/containers.lua +++ b/modules/game_containers/containers.lua @@ -124,9 +124,8 @@ function onContainerOpen(container, previousContainer) local name = container:getName() name = name:sub(1, 1):upper() .. name:sub(2) - if name:len() > 11 then - name = string.sub(name, 1, #name - 3) - name = name .. "..." + if name:len() > 14 then + name = name:sub(1, 14) .. "..." end containerWindow:setText(name) From 9136550af8a5c43ec87f91369ae9dfbb477c032c Mon Sep 17 00:00:00 2001 From: kokekanon <114332266+kokekanon@users.noreply.github.com> Date: Thu, 24 Oct 2024 23:56:24 -0300 Subject: [PATCH 4/8] fix: Vbot 4.8 UISpinBox | fix: #943 --- modules/corelib/ui/uispinbox.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/corelib/ui/uispinbox.lua b/modules/corelib/ui/uispinbox.lua index de85fc7277..22794083d8 100644 --- a/modules/corelib/ui/uispinbox.lua +++ b/modules/corelib/ui/uispinbox.lua @@ -84,10 +84,12 @@ end function UISpinBox:onStyleApply(styleName, styleNode) for name, value in pairs(styleNode) do if name == 'maximum' then + self.maximum = value addEvent(function() self:setMaximum(value) end) elseif name == 'minimum' then + self.minimum = value addEvent(function() self:setMinimum(value) end) From bdf9ab813f28fb234ea11ad52022fe89a9a43aac Mon Sep 17 00:00:00 2001 From: Renato Machado Date: Mon, 28 Oct 2024 15:57:56 -0300 Subject: [PATCH 5/8] fix: walking with high ping --- modules/corelib/keyboard.lua | 4 +++ modules/game_interface/gameinterface.lua | 12 ++++----- src/client/creature.cpp | 15 ++++++------ src/client/game.cpp | 23 +++++++++-------- src/client/localplayer.cpp | 13 ++-------- src/client/localplayer.h | 7 +----- src/client/luafunctions.cpp | 2 -- src/framework/luafunctions.cpp | 1 + src/framework/platform/platformwindow.cpp | 30 ++++++++++++----------- src/framework/platform/platformwindow.h | 17 ++++++++++--- 10 files changed, 62 insertions(+), 62 deletions(-) diff --git a/modules/corelib/keyboard.lua b/modules/corelib/keyboard.lua index 01ca97edd2..cb0eda5e5f 100644 --- a/modules/corelib/keyboard.lua +++ b/modules/corelib/keyboard.lua @@ -136,6 +136,10 @@ local function connectKeyPressEvent(widget) widget.boundKeyPressCombos = {} end +function g_keyboard.setKeyDelay(key, delay) + g_window.setKeyDelay(getKeyCode(key), delay); +end + -- public functions function g_keyboard.bindKeyDown(keyComboDesc, callback, widget, alone) widget = widget or rootWidget diff --git a/modules/game_interface/gameinterface.lua b/modules/game_interface/gameinterface.lua index 7e480ff2b7..1f87592706 100644 --- a/modules/game_interface/gameinterface.lua +++ b/modules/game_interface/gameinterface.lua @@ -182,18 +182,21 @@ function bindWalkKey(key, dir) onWalkKeyDown(dir) end, gameRootPanel, true) g_keyboard.bindKeyUp(key, function() - g_game.getLocalPlayer():setNextWalkDir(Directions.Invalid) changeWalkDir(dir, true) end, gameRootPanel, true) g_keyboard.bindKeyPress(key, function() smartWalk(dir) end, gameRootPanel) + + g_keyboard.setKeyDelay(key, 10) end function unbindWalkKey(key) g_keyboard.unbindKeyDown(key, gameRootPanel) g_keyboard.unbindKeyUp(key, gameRootPanel) g_keyboard.unbindKeyPress(key, gameRootPanel) + + g_keyboard.setKeyDelay(key, 30) end function bindTurnKey(key, dir) @@ -494,12 +497,7 @@ function smartWalk(dir) return false end - - local dire = smartWalkDir or dir - - g_game.getLocalPlayer():setNextWalkDir(dire) - - g_game.walk(dire) + g_game.walk(smartWalkDir or dir) return true end diff --git a/src/client/creature.cpp b/src/client/creature.cpp index e9278f1e78..c6bc9ae447 100644 --- a/src/client/creature.cpp +++ b/src/client/creature.cpp @@ -642,10 +642,6 @@ void Creature::nextWalkUpdate() // do the update updateWalk(); - if (isLocalPlayer()) { - g_map.notificateCameraMove(m_walkOffset); - } - if (!m_walking) return; auto action = [self = static_self_cast()] { @@ -658,17 +654,23 @@ void Creature::nextWalkUpdate() void Creature::updateWalk(const bool isPreWalking) { - const float walkTicksPerPixel = getStepDuration(true) / static_cast(g_gameConfig.getSpriteSize()); + const float walkTicksPerPixel = (getStepDuration(true) + 8.f) / static_cast(g_gameConfig.getSpriteSize()); const int totalPixelsWalked = std::min(m_walkTimer.ticksElapsed() / walkTicksPerPixel, g_gameConfig.getSpriteSize()); // needed for paralyze effect m_walkedPixels = std::max(m_walkedPixels, totalPixelsWalked); + const auto oldWalkOffset = m_walkOffset; + updateWalkAnimation(); updateWalkOffset(m_walkedPixels); updateWalkingTile(); + if (isLocalPlayer() && oldWalkOffset != m_walkOffset) { + g_map.notificateCameraMove(m_walkOffset); + } + if (m_walkedPixels == g_gameConfig.getSpriteSize() && !isPreWalking) { terminateWalk(); } @@ -939,9 +941,6 @@ uint16_t Creature::getStepDuration(bool ignoreDiagonal, Otc::Direction dir) stepDuration = ((stepDuration + serverBeat - 1) / serverBeat) * serverBeat; } - if (isLocalPlayer() && stepDuration <= 100) - stepDuration += 10; - m_stepCache.duration = stepDuration; m_stepCache.walkDuration = std::min(stepDuration / g_gameConfig.getSpriteSize(), DrawPool::FPS60); diff --git a/src/client/game.cpp b/src/client/game.cpp index 7da1f899e4..28cad81b75 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -645,6 +645,13 @@ bool Game::walk(const Otc::Direction direction, bool force) if (!canPerformGameAction()) return false; + // must cancel auto walking, and wait next try + if (m_localPlayer->isAutoWalking()) { + m_protocolGame->sendStop(); + m_localPlayer->stopAutoWalk(); + return false; + } + if (!force) { if (nextWalkSchedule) return false; @@ -652,13 +659,16 @@ bool Game::walk(const Otc::Direction direction, bool force) if (m_localPlayer->getWalkSteps() > 0) { uint16_t delay = 0; if (m_localPlayer->getWalkSteps() == 1) { + if (m_localPlayer->isWalking()) + return false; + delay = m_walkFirstStepDelay; } else if (direction != m_localPlayer->getDirection()) delay = m_walkTurnDelay; if (delay > 0) { nextWalkSchedule = g_dispatcher.scheduleEvent([this, direction] { - if (m_localPlayer && m_localPlayer->getNextWalkDir() != Otc::InvalidDirection) { + if (m_localPlayer) { m_localPlayer->setWalkSteps(1); walk(direction, true); } @@ -670,15 +680,8 @@ bool Game::walk(const Otc::Direction direction, bool force) } } - // must cancel auto walking, and wait next try - if (m_localPlayer->isAutoWalking()) { - m_protocolGame->sendStop(); - m_localPlayer->stopAutoWalk(); - return false; - } - // check we can walk and add new walk event if false - if (!m_localPlayer->canWalk()) { + if (!m_localPlayer->canWalk(direction)) { return false; } @@ -751,7 +754,7 @@ void Game::autoWalk(const std::vector& dirs, const Position& sta const Otc::Direction direction = *dirs.begin(); if (const auto& toTile = g_map.getTile(startPos.translatedToDirection(direction))) { - if (startPos == m_localPlayer->m_lastPrewalkDestination && toTile->isWalkable() && m_localPlayer->canWalk(true)) { + if (startPos == m_localPlayer->m_lastPrewalkDestination && toTile->isWalkable() && m_localPlayer->canWalk(direction, true)) { m_localPlayer->preWalk(direction); } } diff --git a/src/client/localplayer.cpp b/src/client/localplayer.cpp index a4947bdcac..c01dccde50 100644 --- a/src/client/localplayer.cpp +++ b/src/client/localplayer.cpp @@ -31,7 +31,7 @@ void LocalPlayer::lockWalk(uint16_t millis) m_walkLockExpiration = std::max(m_walkLockExpiration, g_clock.millis() + millis); } -bool LocalPlayer::canWalk(bool ignoreLock) +bool LocalPlayer::canWalk(Otc::Direction dir, bool ignoreLock) { // paralyzed if (isDead()) @@ -41,7 +41,7 @@ bool LocalPlayer::canWalk(bool ignoreLock) if (isWalkLocked() && !ignoreLock) return false; - return !m_walking && m_walkTimer.ticksElapsed() >= getStepDuration(); + return m_walkTimer.ticksElapsed() >= getStepDuration() && (dir == m_direction || !m_walking); } void LocalPlayer::walk(const Position& oldPos, const Position& newPos) @@ -208,15 +208,6 @@ void LocalPlayer::terminateWalk() { Creature::terminateWalk(); m_preWalking = false; - - if (!static_self_cast()->isAutoWalking()) { - g_dispatcher.addEvent([] { - g_dispatcher.deferEvent([] { - if (g_game.getLocalPlayer()) - g_game.walk(g_game.getLocalPlayer()->getNextWalkDir()); - }); - }); - } } void LocalPlayer::onPositionChange(const Position& newPos, const Position& oldPos) diff --git a/src/client/localplayer.h b/src/client/localplayer.h index f68240eec1..eaf37ab5c9 100644 --- a/src/client/localplayer.h +++ b/src/client/localplayer.h @@ -34,7 +34,7 @@ class LocalPlayer : public Player void stopAutoWalk(); bool autoWalk(const Position& destination, bool retry = false); - bool canWalk(bool ignoreLock = false); + bool canWalk(Otc::Direction dir, bool ignoreLock = false); void setStates(uint32_t states); void setSkill(Otc::Skill skillId, uint16_t level, uint16_t levelPercent); @@ -59,14 +59,11 @@ class LocalPlayer : public Player void setSpells(const std::vector& spells); void setBlessings(uint16_t blessings); void setResourceBalance(Otc::ResourceTypes_t type, uint64_t value); - void setNextWalkDir(Otc::Direction dir) { m_nextWalkDir = dir; } void takeScreenshot(uint8_t type); uint32_t getFreeCapacity() { return m_freeCapacity; } uint32_t getTotalCapacity() { return m_totalCapacity; } - auto getNextWalkDir() { return m_nextWalkDir; } - uint8_t getVocation() { return m_vocation; } uint8_t getMagicLevel() { return m_magicLevel; } uint8_t getMagicLevelPercent() { return m_magicLevelPercent; } @@ -185,6 +182,4 @@ class LocalPlayer : public Player uint16_t m_stamina{ 0 }; uint16_t m_regenerationTime{ 0 }; uint16_t m_offlineTrainingTime{ 0 }; - - Otc::Direction m_nextWalkDir{ Otc::InvalidDirection }; }; diff --git a/src/client/luafunctions.cpp b/src/client/luafunctions.cpp index 28fbccba04..dc484ee700 100644 --- a/src/client/luafunctions.cpp +++ b/src/client/luafunctions.cpp @@ -855,8 +855,6 @@ void Client::registerLuaFunctions() g_lua.bindClassMemberFunction("getResourceBalance", &LocalPlayer::getResourceBalance); g_lua.bindClassMemberFunction("setResourceBalance", &LocalPlayer::setResourceBalance); g_lua.bindClassMemberFunction("getTotalMoney", &LocalPlayer::getTotalMoney); - g_lua.bindClassMemberFunction("setNextWalkDir", &LocalPlayer::setNextWalkDir); - g_lua.bindClassMemberFunction("getNextWalkDir", &LocalPlayer::getNextWalkDir); g_lua.registerClass(); g_lua.bindClassMemberFunction("clean", &Tile::clean); diff --git a/src/framework/luafunctions.cpp b/src/framework/luafunctions.cpp index 1426c553ff..edba4f14f7 100644 --- a/src/framework/luafunctions.cpp +++ b/src/framework/luafunctions.cpp @@ -374,6 +374,7 @@ void Application::registerLuaFunctions() g_lua.bindSingletonFunction("g_window", "isMaximized", &PlatformWindow::isMaximized, &g_window); g_lua.bindSingletonFunction("g_window", "hasFocus", &PlatformWindow::hasFocus, &g_window); g_lua.bindSingletonFunction("g_window", "getDisplayDensity", &PlatformWindow::getDisplayDensity, &g_window); + g_lua.bindSingletonFunction("g_window", "setKeyDelay", &PlatformWindow::setKeyDelay, &g_window); // Input g_lua.registerSingletonClass("g_mouse"); diff --git a/src/framework/platform/platformwindow.cpp b/src/framework/platform/platformwindow.cpp index b87bc2c1a7..47835c13dd 100644 --- a/src/framework/platform/platformwindow.cpp +++ b/src/framework/platform/platformwindow.cpp @@ -92,11 +92,11 @@ void PlatformWindow::processKeyDown(Fw::Key keyCode) return; } - if (m_keysState[keyCode]) + if (m_keyInfo[keyCode].state) return; - m_keysState[keyCode] = true; - m_lastKeysPress[keyCode] = -1; + m_keyInfo[keyCode].state = true; + m_keyInfo[keyCode].lastTicks = -1; m_inputEvent.reset(Fw::KeyDownInputEvent); m_inputEvent.type = Fw::KeyDownInputEvent; @@ -107,8 +107,8 @@ void PlatformWindow::processKeyDown(Fw::Key keyCode) m_inputEvent.reset(Fw::KeyPressInputEvent); m_inputEvent.keyCode = keyCode; - m_lastKeysPress[keyCode] = g_clock.millis(); - m_firstKeysPress[keyCode] = g_clock.millis(); + m_keyInfo[keyCode].lastTicks = g_clock.millis(); + m_keyInfo[keyCode].firstTicks = g_clock.millis(); m_onInputEvent(m_inputEvent); } } @@ -138,15 +138,15 @@ void PlatformWindow::processKeyUp(Fw::Key keyCode) } if (keyCode == Fw::KeyNumLock) { for (uint8_t k = Fw::KeyNumpad0; k <= Fw::KeyNumpad9; ++k) { - if (m_keysState[static_cast(k)]) + if (m_keyInfo[static_cast(k)].state) processKeyUp(static_cast(k)); } } - if (!m_keysState[keyCode]) + if (!m_keyInfo[keyCode].state) return; - m_keysState[keyCode] = false; + m_keyInfo[keyCode].state = false; if (m_onInputEvent) { m_inputEvent.reset(Fw::KeyUpInputEvent); @@ -158,7 +158,7 @@ void PlatformWindow::processKeyUp(Fw::Key keyCode) void PlatformWindow::releaseAllKeys() { for (size_t keyCode = 0; keyCode < Fw::KeyLast; ++keyCode) { - const bool pressed = m_keysState[keyCode]; + const bool pressed = m_keyInfo[keyCode].state; if (!pressed) continue; @@ -177,21 +177,23 @@ void PlatformWindow::fireKeysPress() m_keyPressTimer.restart(); for (size_t keyCode = 0; keyCode < Fw::KeyLast; ++keyCode) { - const bool pressed = m_keysState[keyCode]; + auto& keyInfo = m_keyInfo[keyCode]; + + const bool pressed = keyInfo.state; if (!pressed) continue; - const ticks_t lastPressTicks = m_lastKeysPress[keyCode]; - const ticks_t firstKeyPress = m_firstKeysPress[keyCode]; - if (g_clock.millis() - lastPressTicks >= KEY_PRESS_REPEAT_INTERVAL) { + const ticks_t lastPressTicks = keyInfo.lastTicks; + const ticks_t firstKeyPress = keyInfo.firstTicks; + if (g_clock.millis() - lastPressTicks >= keyInfo.delay) { if (m_onInputEvent) { m_inputEvent.reset(Fw::KeyPressInputEvent); m_inputEvent.keyCode = static_cast(keyCode); m_inputEvent.autoRepeatTicks = g_clock.millis() - firstKeyPress; m_onInputEvent(m_inputEvent); } - m_lastKeysPress[keyCode] = g_clock.millis(); + keyInfo.lastTicks = g_clock.millis(); } } } \ No newline at end of file diff --git a/src/framework/platform/platformwindow.h b/src/framework/platform/platformwindow.h index b985b61829..4fbf97535c 100644 --- a/src/framework/platform/platformwindow.h +++ b/src/framework/platform/platformwindow.h @@ -35,6 +35,14 @@ class PlatformWindow KEY_PRESS_REPEAT_INTERVAL = 30, }; + struct KeyInfo + { + ticks_t firstTicks = 0; + ticks_t lastTicks = 0; + bool state = false; + uint8_t delay = KEY_PRESS_REPEAT_INTERVAL; + }; + using OnResizeCallback = std::function; using OnInputEventCallback = std::function; @@ -87,7 +95,7 @@ class PlatformWindow Point getMousePosition() { return m_inputEvent.mousePos; } int getKeyboardModifiers() { return m_inputEvent.keyboardModifiers; } - bool isKeyPressed(Fw::Key keyCode) { return m_keysState[keyCode]; } + bool isKeyPressed(Fw::Key keyCode) { return m_keyInfo[keyCode].state; } bool isMouseButtonPressed(Fw::MouseButton mouseButton) { if (mouseButton == Fw::MouseNoButton) return m_mouseButtonStates != 0; return (m_mouseButtonStates & (1u << mouseButton)) == (1u << mouseButton); } bool isVisible() { return m_visible; } @@ -103,7 +111,10 @@ class PlatformWindow void addKeyListener(std::function listener) { m_keyListeners.push_back(listener); } + void setKeyDelay(const Fw::Key key, uint8_t delay) { if (key < Fw::KeyLast) m_keyInfo[key].delay = delay; } + protected: + virtual int internalLoadMouseCursor(const ImagePtr& image, const Point& hotSpot) = 0; void updateUnmaximizedCoords(); @@ -114,9 +125,7 @@ class PlatformWindow void fireKeysPress(); stdext::map m_keyMap; - std::array m_keysState; - std::array m_firstKeysPress; - std::array m_lastKeysPress; + std::array m_keyInfo = {}; Timer m_keyPressTimer; Size m_size; From 75f0240514994e48b8cf1830aca6d9eb3f22b252 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Mon, 28 Oct 2024 22:42:15 -0300 Subject: [PATCH 6/8] improve: remove protobuf generated files Added files to be included directly from the "build" folder, instead of needing to be included in the project. Improves protobuf dependencies and eliminates the need to have files generated by compilation in the repository. --- src/CMakeLists.txt | 18 +- src/client/animator.h | 2 +- src/client/thingtypemanager.cpp | 2 +- src/protobuf/CMakeLists.txt | 40 +- src/protobuf/appearances.pb.cc | 9461 ----------------------- src/protobuf/appearances.pb.h | 12031 ------------------------------ vc17/otclient.vcxproj | 82 +- 7 files changed, 77 insertions(+), 21559 deletions(-) delete mode 100644 src/protobuf/appearances.pb.cc delete mode 100644 src/protobuf/appearances.pb.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0e215bf394..cdb1f8882b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -63,6 +63,7 @@ endif() if (TOGGLE_FRAMEWORK_NET) set(FRAMEWORK_DEFINITIONS ${FRAMEWORK_DEFINITIONS} -DFRAMEWORK_NET) endif() + if (TOGGLE_FRAMEWORK_EDITOR) set(FRAMEWORK_DEFINITIONS ${FRAMEWORK_DEFINITIONS} -DFRAMEWORK_EDITOR) endif() @@ -122,10 +123,12 @@ if(ASAN_ENABLED) log_option_enabled("asan") if(MSVC) - target_compile_options(${PROJECT_NAME} PUBLIC /fsanitize=address) + string(REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + target_compile_options(${PROJECT_NAME} PUBLIC /fsanitize=address) + target_link_options(${PROJECT_NAME} PUBLIC /fsanitize=address) else() - target_compile_options(${PROJECT_NAME} PUBLIC -fsanitize=address) - target_link_options(${PROJECT_NAME} PUBLIC -fsanitize=address) + target_compile_options(${PROJECT_NAME} PUBLIC -fsanitize=address) + target_link_options(${PROJECT_NAME} PUBLIC -fsanitize=address) endif() else() log_option_disabled("asan") @@ -347,7 +350,6 @@ set(SOURCE_FILES client/uiprogressrect.cpp client/uisprite.cpp - protobuf/appearances.pb.cc main.cpp androidmain.cpp ) @@ -448,9 +450,11 @@ if(MSVC) set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib") find_package(Vorbis REQUIRED) set_property(TARGET ${PROJECT_NAME} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") + set(VCPKG_TARGET_TRIPLET "x64-windows-static" CACHE STRING "") else() log_option_disabled("STATIC_LIBRARY") target_compile_options(${PROJECT_NAME} PUBLIC /MP /FS /Zf /EHsc ) + set(VCPKG_TARGET_TRIPLET "x64-windows" CACHE STRING "") endif() target_include_directories(${PROJECT_NAME} @@ -484,7 +488,7 @@ if(MSVC) ${DBGHELP_LIBRARY} ${STDUUID} - protobuf::libprotobuf + protobuf::libprotobuf protobuf absl::log_internal_check_op Threads::Threads GLEW::GLEW @@ -527,7 +531,7 @@ elseif(ANDROID) ${STDUUID} ${MINIZIP_LIBRARY} - protobuf::libprotobuf + protobuf::libprotobuf protobuf absl::log_internal_check_op Threads::Threads asio::asio @@ -575,7 +579,7 @@ else() # Linux ${OPENSSL_CRYPTO_LIBRARY} ${HTTPLIB_LIBRARY} - protobuf::libprotobuf + protobuf::libprotobuf protobuf absl::log_internal_check_op Threads::Threads X11::X11 diff --git a/src/client/animator.h b/src/client/animator.h index ffb864f823..5a9d3baeec 100644 --- a/src/client/animator.h +++ b/src/client/animator.h @@ -27,7 +27,7 @@ #include #include -#include +#include using namespace otclient::protobuf; diff --git a/src/client/thingtypemanager.cpp b/src/client/thingtypemanager.cpp index cd86fe27c0..ff657a46d1 100644 --- a/src/client/thingtypemanager.cpp +++ b/src/client/thingtypemanager.cpp @@ -39,7 +39,7 @@ #include #include -#include "protobuf/appearances.pb.h" +#include #include diff --git a/src/protobuf/CMakeLists.txt b/src/protobuf/CMakeLists.txt index 0d5d8d86d0..3f350eaee9 100644 --- a/src/protobuf/CMakeLists.txt +++ b/src/protobuf/CMakeLists.txt @@ -8,6 +8,7 @@ if(APPLE) endif(APPLE) find_package(Protobuf REQUIRED) +find_package(Threads) if(EXISTS ${PROTOBUF_PROTOC_EXECUTABLE}) message(STATUS "Found Protobuf Compiler: ${PROTOBUF_PROTOC_EXECUTABLE}") @@ -16,27 +17,32 @@ else() endif() if(PROTOBUF_FOUND) + include_directories(${PROTOBUF_INCLUDE_DIRS}) - protobuf_generate_cpp(ProtoSources ProtoHeaders appearances.proto) + file(GLOB ProtoFiles + "${CMAKE_CURRENT_SOURCE_DIR}/**/*.proto" + "${CMAKE_CURRENT_SOURCE_DIR}/*.proto" + ) - if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/appearances.pb.cc OR NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/appearances.pb.h) - message(FATAL_ERROR, "Failed to generate protobuf files") + if (MSVC) + if (BUILD_STATIC_LIBRARY) + add_library(${PROJECT_NAME} STATIC ${ProtoFiles}) + set_property(TARGET ${PROJECT_NAME} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") + else() + add_library(${PROJECT_NAME} ${ProtoFiles}) + set_property(TARGET ${PROJECT_NAME} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") + endif() + else() + add_library(${PROJECT_NAME} ${ProtoFiles}) endif() - add_library(${PROJECT_NAME} STATIC ${ProtoSources} ${ProtoHeaders}) - target_link_libraries(${PROJECT_NAME} ${PROTOBUF_LIBRARY}) - - add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD - - # Copy files "appearances.pb.cc" to the "src/protobuf" folder - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_CURRENT_BINARY_DIR}/appearances.pb.cc - ${CMAKE_CURRENT_SOURCE_DIR}/appearances.pb.cc - - # Copy files "appearances.pb.h" to the "src/protobuf" folder - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_CURRENT_BINARY_DIR}/appearances.pb.h - ${CMAKE_CURRENT_SOURCE_DIR}/appearances.pb.h + target_link_libraries(${PROJECT_NAME} + PUBLIC + protobuf::libprotobuf ) + target_compile_definitions(${PROJECT_NAME} PUBLIC _DISABLE_VECTOR_ANNOTATION _DISABLE_STRING_ANNOTATION) + target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) + + protobuf_generate(TARGET ${PROJECT_NAME} LANGUAGE cpp) endif(PROTOBUF_FOUND) diff --git a/src/protobuf/appearances.pb.cc b/src/protobuf/appearances.pb.cc deleted file mode 100644 index be96c3db0d..0000000000 --- a/src/protobuf/appearances.pb.cc +++ /dev/null @@ -1,9461 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: appearances.proto - -#include "appearances.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace otclient { -namespace protobuf { -namespace appearances { - -inline constexpr SpritePhase::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - duration_min_{0u}, - duration_max_{0u} {} - -template -PROTOBUF_CONSTEXPR SpritePhase::SpritePhase(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SpritePhaseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SpritePhaseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SpritePhaseDefaultTypeInternal() {} - union { - SpritePhase _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpritePhaseDefaultTypeInternal _SpritePhase_default_instance_; - -inline constexpr SpecialMeaningAppearanceIds::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - gold_coin_id_{0u}, - platinum_coin_id_{0u}, - crystal_coin_id_{0u}, - tibia_coin_id_{0u}, - stamped_letter_id_{0u}, - supply_stash_id_{0u} {} - -template -PROTOBUF_CONSTEXPR SpecialMeaningAppearanceIds::SpecialMeaningAppearanceIds(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SpecialMeaningAppearanceIdsDefaultTypeInternal { - PROTOBUF_CONSTEXPR SpecialMeaningAppearanceIdsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SpecialMeaningAppearanceIdsDefaultTypeInternal() {} - union { - SpecialMeaningAppearanceIds _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpecialMeaningAppearanceIdsDefaultTypeInternal _SpecialMeaningAppearanceIds_default_instance_; - -inline constexpr Coordinate::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - x_{0u}, - y_{0u}, - z_{0u} {} - -template -PROTOBUF_CONSTEXPR Coordinate::Coordinate(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CoordinateDefaultTypeInternal { - PROTOBUF_CONSTEXPR CoordinateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CoordinateDefaultTypeInternal() {} - union { - Coordinate _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CoordinateDefaultTypeInternal _Coordinate_default_instance_; - -inline constexpr Box::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - x_{0u}, - y_{0u}, - width_{0u}, - height_{0u} {} - -template -PROTOBUF_CONSTEXPR Box::Box(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BoxDefaultTypeInternal { - PROTOBUF_CONSTEXPR BoxDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BoxDefaultTypeInternal() {} - union { - Box _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoxDefaultTypeInternal _Box_default_instance_; - -inline constexpr AppearanceFlagWriteOnce::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - max_text_length_once_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagWriteOnce::AppearanceFlagWriteOnce(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagWriteOnceDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagWriteOnceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagWriteOnceDefaultTypeInternal() {} - union { - AppearanceFlagWriteOnce _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagWriteOnceDefaultTypeInternal _AppearanceFlagWriteOnce_default_instance_; - -inline constexpr AppearanceFlagWrite::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - max_text_length_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagWrite::AppearanceFlagWrite(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagWriteDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagWriteDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagWriteDefaultTypeInternal() {} - union { - AppearanceFlagWrite _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagWriteDefaultTypeInternal _AppearanceFlagWrite_default_instance_; - -inline constexpr AppearanceFlagUpgradeClassification::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - upgrade_classification_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagUpgradeClassification::AppearanceFlagUpgradeClassification(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagUpgradeClassificationDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagUpgradeClassificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagUpgradeClassificationDefaultTypeInternal() {} - union { - AppearanceFlagUpgradeClassification _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagUpgradeClassificationDefaultTypeInternal _AppearanceFlagUpgradeClassification_default_instance_; - -inline constexpr AppearanceFlagShift::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - x_{0u}, - y_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagShift::AppearanceFlagShift(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagShiftDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagShiftDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagShiftDefaultTypeInternal() {} - union { - AppearanceFlagShift _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagShiftDefaultTypeInternal _AppearanceFlagShift_default_instance_; - -inline constexpr AppearanceFlagNPC::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - currency_quest_flag_display_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sale_price_{0u}, - buy_price_{0u}, - currency_object_type_id_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagNPC::AppearanceFlagNPC(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagNPCDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagNPCDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagNPCDefaultTypeInternal() {} - union { - AppearanceFlagNPC _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagNPCDefaultTypeInternal _AppearanceFlagNPC_default_instance_; - -inline constexpr AppearanceFlagMarket::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - restrict_to_profession_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - trade_as_object_id_{0u}, - show_as_object_id_{0u}, - minimum_level_{0u}, - category_{static_cast< ::otclient::protobuf::appearances::ITEM_CATEGORY >(1)} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagMarket::AppearanceFlagMarket(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagMarketDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagMarketDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagMarketDefaultTypeInternal() {} - union { - AppearanceFlagMarket _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagMarketDefaultTypeInternal _AppearanceFlagMarket_default_instance_; - -inline constexpr AppearanceFlagLight::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - brightness_{0u}, - color_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagLight::AppearanceFlagLight(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagLightDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagLightDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagLightDefaultTypeInternal() {} - union { - AppearanceFlagLight _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagLightDefaultTypeInternal _AppearanceFlagLight_default_instance_; - -inline constexpr AppearanceFlagLenshelp::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagLenshelp::AppearanceFlagLenshelp(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagLenshelpDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagLenshelpDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagLenshelpDefaultTypeInternal() {} - union { - AppearanceFlagLenshelp _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagLenshelpDefaultTypeInternal _AppearanceFlagLenshelp_default_instance_; - -inline constexpr AppearanceFlagHook::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - south_{static_cast< ::otclient::protobuf::appearances::HOOK_TYPE >(1)}, - east_{static_cast< ::otclient::protobuf::appearances::HOOK_TYPE >(1)} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagHook::AppearanceFlagHook(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagHookDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagHookDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagHookDefaultTypeInternal() {} - union { - AppearanceFlagHook _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagHookDefaultTypeInternal _AppearanceFlagHook_default_instance_; - -inline constexpr AppearanceFlagHeight::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - elevation_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagHeight::AppearanceFlagHeight(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagHeightDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagHeightDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagHeightDefaultTypeInternal() {} - union { - AppearanceFlagHeight _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagHeightDefaultTypeInternal _AppearanceFlagHeight_default_instance_; - -inline constexpr AppearanceFlagDefaultAction::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_{static_cast< ::otclient::protobuf::appearances::PLAYER_ACTION >(0)} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagDefaultAction::AppearanceFlagDefaultAction(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagDefaultActionDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagDefaultActionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagDefaultActionDefaultTypeInternal() {} - union { - AppearanceFlagDefaultAction _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagDefaultActionDefaultTypeInternal _AppearanceFlagDefaultAction_default_instance_; - -inline constexpr AppearanceFlagCyclopedia::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - cyclopedia_type_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagCyclopedia::AppearanceFlagCyclopedia(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagCyclopediaDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagCyclopediaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagCyclopediaDefaultTypeInternal() {} - union { - AppearanceFlagCyclopedia _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagCyclopediaDefaultTypeInternal _AppearanceFlagCyclopedia_default_instance_; - -inline constexpr AppearanceFlagClothes::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - slot_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagClothes::AppearanceFlagClothes(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagClothesDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagClothesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagClothesDefaultTypeInternal() {} - union { - AppearanceFlagClothes _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagClothesDefaultTypeInternal _AppearanceFlagClothes_default_instance_; - -inline constexpr AppearanceFlagChangedToExpire::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - former_object_typeid_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagChangedToExpire::AppearanceFlagChangedToExpire(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagChangedToExpireDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagChangedToExpireDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagChangedToExpireDefaultTypeInternal() {} - union { - AppearanceFlagChangedToExpire _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagChangedToExpireDefaultTypeInternal _AppearanceFlagChangedToExpire_default_instance_; - -inline constexpr AppearanceFlagBank::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - waypoints_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagBank::AppearanceFlagBank(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagBankDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagBankDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagBankDefaultTypeInternal() {} - union { - AppearanceFlagBank _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagBankDefaultTypeInternal _AppearanceFlagBank_default_instance_; - -inline constexpr AppearanceFlagAutomap::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - color_{0u} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlagAutomap::AppearanceFlagAutomap(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagAutomapDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagAutomapDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagAutomapDefaultTypeInternal() {} - union { - AppearanceFlagAutomap _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagAutomapDefaultTypeInternal _AppearanceFlagAutomap_default_instance_; - -inline constexpr SpriteAnimation::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - sprite_phase_{}, - default_start_phase_{0u}, - synchronized_{false}, - random_start_phase_{false}, - loop_count_{0u}, - loop_type_{static_cast< ::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE >(-1)} {} - -template -PROTOBUF_CONSTEXPR SpriteAnimation::SpriteAnimation(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SpriteAnimationDefaultTypeInternal { - PROTOBUF_CONSTEXPR SpriteAnimationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SpriteAnimationDefaultTypeInternal() {} - union { - SpriteAnimation _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpriteAnimationDefaultTypeInternal _SpriteAnimation_default_instance_; - -inline constexpr AppearanceFlags::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - npcsaledata_{}, - bank_{nullptr}, - write_{nullptr}, - write_once_{nullptr}, - hook_{nullptr}, - light_{nullptr}, - shift_{nullptr}, - height_{nullptr}, - automap_{nullptr}, - lenshelp_{nullptr}, - clothes_{nullptr}, - default_action_{nullptr}, - market_{nullptr}, - changedtoexpire_{nullptr}, - cyclopediaitem_{nullptr}, - upgradeclassification_{nullptr}, - clip_{false}, - bottom_{false}, - top_{false}, - container_{false}, - cumulative_{false}, - usable_{false}, - forceuse_{false}, - multiuse_{false}, - liquidpool_{false}, - unpass_{false}, - unmove_{false}, - unsight_{false}, - avoid_{false}, - no_movement_animation_{false}, - take_{false}, - liquidcontainer_{false}, - hang_{false}, - rotate_{false}, - dont_hide_{false}, - translucent_{false}, - lying_object_{false}, - animate_always_{false}, - fullbank_{false}, - ignore_look_{false}, - wrap_{false}, - unwrap_{false}, - topeffect_{false}, - corpse_{false}, - player_corpse_{false}, - ammo_{false}, - show_off_socket_{false}, - reportable_{false}, - reverse_addons_east_{false}, - reverse_addons_west_{false}, - reverse_addons_south_{false}, - reverse_addons_north_{false}, - wearout_{false}, - clockexpire_{false}, - expire_{false}, - expirestop_{false}, - deco_kit_{false} {} - -template -PROTOBUF_CONSTEXPR AppearanceFlags::AppearanceFlags(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceFlagsDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceFlagsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceFlagsDefaultTypeInternal() {} - union { - AppearanceFlags _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceFlagsDefaultTypeInternal _AppearanceFlags_default_instance_; - -inline constexpr SpriteInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - sprite_id_{}, - bounding_box_per_direction_{}, - animation_{nullptr}, - pattern_width_{0u}, - pattern_height_{0u}, - pattern_depth_{0u}, - layers_{0u}, - bounding_square_{0u}, - is_opaque_{false} {} - -template -PROTOBUF_CONSTEXPR SpriteInfo::SpriteInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SpriteInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR SpriteInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SpriteInfoDefaultTypeInternal() {} - union { - SpriteInfo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpriteInfoDefaultTypeInternal _SpriteInfo_default_instance_; - -inline constexpr FrameGroup::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - sprite_info_{nullptr}, - fixed_frame_group_{static_cast< ::otclient::protobuf::appearances::FIXED_FRAME_GROUP >(0)}, - id_{0u} {} - -template -PROTOBUF_CONSTEXPR FrameGroup::FrameGroup(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FrameGroupDefaultTypeInternal { - PROTOBUF_CONSTEXPR FrameGroupDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FrameGroupDefaultTypeInternal() {} - union { - FrameGroup _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameGroupDefaultTypeInternal _FrameGroup_default_instance_; - -inline constexpr Appearance::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - frame_group_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - flags_{nullptr}, - id_{0u} {} - -template -PROTOBUF_CONSTEXPR Appearance::Appearance(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearanceDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearanceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearanceDefaultTypeInternal() {} - union { - Appearance _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearanceDefaultTypeInternal _Appearance_default_instance_; - -inline constexpr Appearances::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - object_{}, - outfit_{}, - effect_{}, - missile_{}, - special_meaning_appearance_ids_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Appearances::Appearances(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppearancesDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppearancesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppearancesDefaultTypeInternal() {} - union { - Appearances _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppearancesDefaultTypeInternal _Appearances_default_instance_; -} // namespace appearances -} // namespace protobuf -} // namespace otclient -static ::_pb::Metadata file_level_metadata_appearances_2eproto[26]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_appearances_2eproto[6]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_appearances_2eproto = nullptr; -const ::uint32_t TableStruct_appearances_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Coordinate, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Coordinate, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Coordinate, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Coordinate, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Coordinate, _impl_.z_), - 0, - 1, - 2, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearances, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearances, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearances, _impl_.object_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearances, _impl_.outfit_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearances, _impl_.effect_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearances, _impl_.missile_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearances, _impl_.special_meaning_appearance_ids_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpritePhase, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpritePhase, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpritePhase, _impl_.duration_min_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpritePhase, _impl_.duration_max_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteAnimation, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteAnimation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteAnimation, _impl_.default_start_phase_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteAnimation, _impl_.synchronized_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteAnimation, _impl_.random_start_phase_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteAnimation, _impl_.loop_type_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteAnimation, _impl_.loop_count_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteAnimation, _impl_.sprite_phase_), - 0, - 1, - 2, - 4, - 3, - ~0u, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Box, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Box, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Box, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Box, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Box, _impl_.width_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Box, _impl_.height_), - 0, - 1, - 2, - 3, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _impl_.pattern_width_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _impl_.pattern_height_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _impl_.pattern_depth_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _impl_.layers_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _impl_.sprite_id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _impl_.bounding_square_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _impl_.animation_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _impl_.is_opaque_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpriteInfo, _impl_.bounding_box_per_direction_), - 1, - 2, - 3, - 4, - ~0u, - 5, - 0, - 6, - ~0u, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::FrameGroup, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::FrameGroup, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::FrameGroup, _impl_.fixed_frame_group_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::FrameGroup, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::FrameGroup, _impl_.sprite_info_), - 1, - 2, - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearance, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearance, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearance, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearance, _impl_.frame_group_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearance, _impl_.flags_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearance, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::Appearance, _impl_.description_), - 3, - ~0u, - 2, - 0, - 1, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.bank_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.clip_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.bottom_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.top_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.container_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.cumulative_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.usable_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.forceuse_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.multiuse_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.write_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.write_once_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.liquidpool_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.unpass_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.unmove_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.unsight_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.avoid_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.no_movement_animation_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.take_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.liquidcontainer_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.hang_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.hook_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.rotate_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.light_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.dont_hide_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.translucent_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.shift_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.lying_object_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.animate_always_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.automap_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.lenshelp_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.fullbank_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.ignore_look_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.clothes_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.default_action_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.market_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.wrap_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.unwrap_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.topeffect_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.npcsaledata_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.changedtoexpire_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.corpse_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.player_corpse_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.cyclopediaitem_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.ammo_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.show_off_socket_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.reportable_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.upgradeclassification_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.reverse_addons_east_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.reverse_addons_west_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.reverse_addons_south_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.reverse_addons_north_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.wearout_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.clockexpire_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.expire_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.expirestop_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlags, _impl_.deco_kit_), - 0, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 1, - 2, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 3, - 32, - 4, - 33, - 34, - 5, - 6, - 35, - 36, - 7, - 8, - 37, - 38, - 9, - 10, - 11, - 39, - 40, - 41, - ~0u, - 12, - 42, - 43, - 13, - 44, - 45, - 46, - 14, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54, - 55, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification, _impl_.upgrade_classification_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagBank, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagBank, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagBank, _impl_.waypoints_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagWrite, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagWrite, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagWrite, _impl_.max_text_length_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagWriteOnce, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagWriteOnce, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagWriteOnce, _impl_.max_text_length_once_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagLight, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagLight, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagLight, _impl_.brightness_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagLight, _impl_.color_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagHeight, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagHeight, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagHeight, _impl_.elevation_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagShift, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagShift, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagShift, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagShift, _impl_.y_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagClothes, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagClothes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagClothes, _impl_.slot_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagDefaultAction, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagDefaultAction, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagDefaultAction, _impl_.action_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagMarket, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagMarket, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagMarket, _impl_.category_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagMarket, _impl_.trade_as_object_id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagMarket, _impl_.show_as_object_id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagMarket, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagMarket, _impl_.restrict_to_profession_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagMarket, _impl_.minimum_level_), - 4, - 1, - 2, - 0, - ~0u, - 3, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagNPC, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagNPC, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagNPC, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagNPC, _impl_.location_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagNPC, _impl_.sale_price_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagNPC, _impl_.buy_price_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagNPC, _impl_.currency_object_type_id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagNPC, _impl_.currency_quest_flag_display_name_), - 0, - 1, - 3, - 4, - 5, - 2, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagAutomap, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagAutomap, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagAutomap, _impl_.color_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagHook, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagHook, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagHook, _impl_.south_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagHook, _impl_.east_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagLenshelp, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagLenshelp, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagLenshelp, _impl_.id_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagChangedToExpire, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagChangedToExpire, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagChangedToExpire, _impl_.former_object_typeid_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagCyclopedia, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagCyclopedia, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::AppearanceFlagCyclopedia, _impl_.cyclopedia_type_), - 0, - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds, _impl_.gold_coin_id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds, _impl_.platinum_coin_id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds, _impl_.crystal_coin_id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds, _impl_.tibia_coin_id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds, _impl_.stamped_letter_id_), - PROTOBUF_FIELD_OFFSET(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds, _impl_.supply_stash_id_), - 0, - 1, - 2, - 3, - 4, - 5, -}; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::otclient::protobuf::appearances::Coordinate)}, - {14, 27, -1, sizeof(::otclient::protobuf::appearances::Appearances)}, - {32, 42, -1, sizeof(::otclient::protobuf::appearances::SpritePhase)}, - {44, 58, -1, sizeof(::otclient::protobuf::appearances::SpriteAnimation)}, - {64, 76, -1, sizeof(::otclient::protobuf::appearances::Box)}, - {80, 97, -1, sizeof(::otclient::protobuf::appearances::SpriteInfo)}, - {106, 117, -1, sizeof(::otclient::protobuf::appearances::FrameGroup)}, - {120, 133, -1, sizeof(::otclient::protobuf::appearances::Appearance)}, - {138, 203, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlags)}, - {260, 269, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification)}, - {270, 279, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagBank)}, - {280, 289, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagWrite)}, - {290, 299, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagWriteOnce)}, - {300, 310, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagLight)}, - {312, 321, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagHeight)}, - {322, 332, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagShift)}, - {334, 343, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagClothes)}, - {344, 353, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagDefaultAction)}, - {354, 368, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagMarket)}, - {374, 388, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagNPC)}, - {394, 403, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagAutomap)}, - {404, 414, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagHook)}, - {416, 425, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagLenshelp)}, - {426, 435, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagChangedToExpire)}, - {436, 445, -1, sizeof(::otclient::protobuf::appearances::AppearanceFlagCyclopedia)}, - {446, 460, -1, sizeof(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::otclient::protobuf::appearances::_Coordinate_default_instance_._instance, - &::otclient::protobuf::appearances::_Appearances_default_instance_._instance, - &::otclient::protobuf::appearances::_SpritePhase_default_instance_._instance, - &::otclient::protobuf::appearances::_SpriteAnimation_default_instance_._instance, - &::otclient::protobuf::appearances::_Box_default_instance_._instance, - &::otclient::protobuf::appearances::_SpriteInfo_default_instance_._instance, - &::otclient::protobuf::appearances::_FrameGroup_default_instance_._instance, - &::otclient::protobuf::appearances::_Appearance_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlags_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagUpgradeClassification_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagBank_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagWrite_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagWriteOnce_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagLight_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagHeight_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagShift_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagClothes_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagDefaultAction_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagMarket_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagNPC_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagAutomap_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagHook_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagLenshelp_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagChangedToExpire_default_instance_._instance, - &::otclient::protobuf::appearances::_AppearanceFlagCyclopedia_default_instance_._instance, - &::otclient::protobuf::appearances::_SpecialMeaningAppearanceIds_default_instance_._instance, -}; -const char descriptor_table_protodef_appearances_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\021appearances.proto\022\035otclient.protobuf.a" - "ppearances\"-\n\nCoordinate\022\t\n\001x\030\001 \001(\r\022\t\n\001y" - "\030\002 \001(\r\022\t\n\001z\030\003 \001(\r\"\336\002\n\013Appearances\0229\n\006obj" - "ect\030\001 \003(\0132).otclient.protobuf.appearance" - "s.Appearance\0229\n\006outfit\030\002 \003(\0132).otclient." - "protobuf.appearances.Appearance\0229\n\006effec" - "t\030\003 \003(\0132).otclient.protobuf.appearances." - "Appearance\022:\n\007missile\030\004 \003(\0132).otclient.p" - "rotobuf.appearances.Appearance\022b\n\036specia" - "l_meaning_appearance_ids\030\005 \001(\0132:.otclien" - "t.protobuf.appearances.SpecialMeaningApp" - "earanceIds\"9\n\013SpritePhase\022\024\n\014duration_mi" - "n\030\001 \001(\r\022\024\n\014duration_max\030\002 \001(\r\"\375\001\n\017Sprite" - "Animation\022\033\n\023default_start_phase\030\001 \001(\r\022\024" - "\n\014synchronized\030\002 \001(\010\022\032\n\022random_start_pha" - "se\030\003 \001(\010\022E\n\tloop_type\030\004 \001(\01622.otclient.p" - "rotobuf.appearances.ANIMATION_LOOP_TYPE\022" - "\022\n\nloop_count\030\005 \001(\r\022@\n\014sprite_phase\030\006 \003(" - "\0132*.otclient.protobuf.appearances.Sprite" - "Phase\":\n\003Box\022\t\n\001x\030\001 \001(\r\022\t\n\001y\030\002 \001(\r\022\r\n\005wi" - "dth\030\003 \001(\r\022\016\n\006height\030\004 \001(\r\"\254\002\n\nSpriteInfo" - "\022\025\n\rpattern_width\030\001 \001(\r\022\026\n\016pattern_heigh" - "t\030\002 \001(\r\022\025\n\rpattern_depth\030\003 \001(\r\022\016\n\006layers" - "\030\004 \001(\r\022\021\n\tsprite_id\030\005 \003(\r\022\027\n\017bounding_sq" - "uare\030\007 \001(\r\022A\n\tanimation\030\006 \001(\0132..otclient" - ".protobuf.appearances.SpriteAnimation\022\021\n" - "\tis_opaque\030\010 \001(\010\022F\n\032bounding_box_per_dir" - "ection\030\t \003(\0132\".otclient.protobuf.appeara" - "nces.Box\"\245\001\n\nFrameGroup\022K\n\021fixed_frame_g" - "roup\030\001 \001(\01620.otclient.protobuf.appearanc" - "es.FIXED_FRAME_GROUP\022\n\n\002id\030\002 \001(\r\022>\n\013spri" - "te_info\030\003 \001(\0132).otclient.protobuf.appear" - "ances.SpriteInfo\"\272\001\n\nAppearance\022\n\n\002id\030\001 " - "\001(\r\022>\n\013frame_group\030\002 \003(\0132).otclient.prot" - "obuf.appearances.FrameGroup\022=\n\005flags\030\003 \001" - "(\0132..otclient.protobuf.appearances.Appea" - "ranceFlags\022\014\n\004name\030\004 \001(\t\022\023\n\013description\030" - "\005 \001(\t\"\317\017\n\017AppearanceFlags\022\?\n\004bank\030\001 \001(\0132" - "1.otclient.protobuf.appearances.Appearan" - "ceFlagBank\022\014\n\004clip\030\002 \001(\010\022\016\n\006bottom\030\003 \001(\010" - "\022\013\n\003top\030\004 \001(\010\022\021\n\tcontainer\030\005 \001(\010\022\022\n\ncumu" - "lative\030\006 \001(\010\022\016\n\006usable\030\007 \001(\010\022\020\n\010forceuse" - "\030\010 \001(\010\022\020\n\010multiuse\030\t \001(\010\022A\n\005write\030\n \001(\0132" - "2.otclient.protobuf.appearances.Appearan" - "ceFlagWrite\022J\n\nwrite_once\030\013 \001(\01326.otclie" - "nt.protobuf.appearances.AppearanceFlagWr" - "iteOnce\022\022\n\nliquidpool\030\014 \001(\010\022\016\n\006unpass\030\r " - "\001(\010\022\016\n\006unmove\030\016 \001(\010\022\017\n\007unsight\030\017 \001(\010\022\r\n\005" - "avoid\030\020 \001(\010\022\035\n\025no_movement_animation\030\021 \001" - "(\010\022\014\n\004take\030\022 \001(\010\022\027\n\017liquidcontainer\030\023 \001(" - "\010\022\014\n\004hang\030\024 \001(\010\022\?\n\004hook\030\025 \001(\01321.otclient" - ".protobuf.appearances.AppearanceFlagHook" - "\022\016\n\006rotate\030\026 \001(\010\022A\n\005light\030\027 \001(\01322.otclie" - "nt.protobuf.appearances.AppearanceFlagLi" - "ght\022\021\n\tdont_hide\030\030 \001(\010\022\023\n\013translucent\030\031 " - "\001(\010\022A\n\005shift\030\032 \001(\01322.otclient.protobuf.a" - "ppearances.AppearanceFlagShift\022C\n\006height" - "\030\033 \001(\01323.otclient.protobuf.appearances.A" - "ppearanceFlagHeight\022\024\n\014lying_object\030\034 \001(" - "\010\022\026\n\016animate_always\030\035 \001(\010\022E\n\007automap\030\036 \001" - "(\01324.otclient.protobuf.appearances.Appea" - "ranceFlagAutomap\022G\n\010lenshelp\030\037 \001(\01325.otc" - "lient.protobuf.appearances.AppearanceFla" - "gLenshelp\022\020\n\010fullbank\030 \001(\010\022\023\n\013ignore_lo" - "ok\030! \001(\010\022E\n\007clothes\030\" \001(\01324.otclient.pro" - "tobuf.appearances.AppearanceFlagClothes\022" - "R\n\016default_action\030# \001(\0132:.otclient.proto" - "buf.appearances.AppearanceFlagDefaultAct" - "ion\022C\n\006market\030$ \001(\01323.otclient.protobuf." - "appearances.AppearanceFlagMarket\022\014\n\004wrap" - "\030% \001(\010\022\016\n\006unwrap\030& \001(\010\022\021\n\ttopeffect\030\' \001(" - "\010\022E\n\013npcsaledata\030( \003(\01320.otclient.protob" - "uf.appearances.AppearanceFlagNPC\022U\n\017chan" - "gedtoexpire\030) \001(\0132<.otclient.protobuf.ap" - "pearances.AppearanceFlagChangedToExpire\022" - "\016\n\006corpse\030* \001(\010\022\025\n\rplayer_corpse\030+ \001(\010\022O" - "\n\016cyclopediaitem\030, \001(\01327.otclient.protob" - "uf.appearances.AppearanceFlagCyclopedia\022" - "\014\n\004ammo\030- \001(\010\022\027\n\017show_off_socket\030. \001(\010\022\022" - "\n\nreportable\030/ \001(\010\022a\n\025upgradeclassificat" - "ion\0300 \001(\0132B.otclient.protobuf.appearance" - "s.AppearanceFlagUpgradeClassification\022\033\n" - "\023reverse_addons_east\0301 \001(\010\022\033\n\023reverse_ad" - "dons_west\0302 \001(\010\022\034\n\024reverse_addons_south\030" - "3 \001(\010\022\034\n\024reverse_addons_north\0304 \001(\010\022\017\n\007w" - "earout\0305 \001(\010\022\023\n\013clockexpire\0306 \001(\010\022\016\n\006exp" - "ire\0307 \001(\010\022\022\n\nexpirestop\0308 \001(\010\022\020\n\010deco_ki" - "t\0309 \001(\010\"E\n#AppearanceFlagUpgradeClassifi" - "cation\022\036\n\026upgrade_classification\030\001 \001(\r\"\'" - "\n\022AppearanceFlagBank\022\021\n\twaypoints\030\001 \001(\r\"" - ".\n\023AppearanceFlagWrite\022\027\n\017max_text_lengt" - "h\030\001 \001(\r\"7\n\027AppearanceFlagWriteOnce\022\034\n\024ma" - "x_text_length_once\030\001 \001(\r\"8\n\023AppearanceFl" - "agLight\022\022\n\nbrightness\030\001 \001(\r\022\r\n\005color\030\002 \001" - "(\r\")\n\024AppearanceFlagHeight\022\021\n\televation\030" - "\001 \001(\r\"+\n\023AppearanceFlagShift\022\t\n\001x\030\001 \001(\r\022" - "\t\n\001y\030\002 \001(\r\"%\n\025AppearanceFlagClothes\022\014\n\004s" - "lot\030\001 \001(\r\"[\n\033AppearanceFlagDefaultAction" - "\022<\n\006action\030\001 \001(\0162,.otclient.protobuf.app" - "earances.PLAYER_ACTION\"\204\002\n\024AppearanceFla" - "gMarket\022>\n\010category\030\001 \001(\0162,.otclient.pro" - "tobuf.appearances.ITEM_CATEGORY\022\032\n\022trade" - "_as_object_id\030\002 \001(\r\022\031\n\021show_as_object_id" - "\030\003 \001(\r\022\014\n\004name\030\004 \001(\t\022P\n\026restrict_to_prof" - "ession\030\005 \003(\01620.otclient.protobuf.appeara" - "nces.PLAYER_PROFESSION\022\025\n\rminimum_level\030" - "\006 \001(\r\"\245\001\n\021AppearanceFlagNPC\022\014\n\004name\030\001 \001(" - "\t\022\020\n\010location\030\002 \001(\t\022\022\n\nsale_price\030\003 \001(\r\022" - "\021\n\tbuy_price\030\004 \001(\r\022\037\n\027currency_object_ty" - "pe_id\030\005 \001(\r\022(\n currency_quest_flag_displ" - "ay_name\030\006 \001(\t\"&\n\025AppearanceFlagAutomap\022\r" - "\n\005color\030\001 \001(\r\"\205\001\n\022AppearanceFlagHook\0227\n\005" - "south\030\001 \001(\0162(.otclient.protobuf.appearan" - "ces.HOOK_TYPE\0226\n\004east\030\002 \001(\0162(.otclient.p" - "rotobuf.appearances.HOOK_TYPE\"$\n\026Appeara" - "nceFlagLenshelp\022\n\n\002id\030\001 \001(\r\"=\n\035Appearanc" - "eFlagChangedToExpire\022\034\n\024former_object_ty" - "peid\030\001 \001(\r\"3\n\030AppearanceFlagCyclopedia\022\027" - "\n\017cyclopedia_type\030\001 \001(\r\"\261\001\n\033SpecialMeani" - "ngAppearanceIds\022\024\n\014gold_coin_id\030\001 \001(\r\022\030\n" - "\020platinum_coin_id\030\002 \001(\r\022\027\n\017crystal_coin_" - "id\030\003 \001(\r\022\025\n\rtibia_coin_id\030\004 \001(\r\022\031\n\021stamp" - "ed_letter_id\030\005 \001(\r\022\027\n\017supply_stash_id\030\006 " - "\001(\r*\224\001\n\rPLAYER_ACTION\022\026\n\022PLAYER_ACTION_N" - "ONE\020\000\022\026\n\022PLAYER_ACTION_LOOK\020\001\022\025\n\021PLAYER_" - "ACTION_USE\020\002\022\026\n\022PLAYER_ACTION_OPEN\020\003\022$\n " - "PLAYER_ACTION_AUTOWALK_HIGHLIGHT\020\004*\263\005\n\rI" - "TEM_CATEGORY\022\030\n\024ITEM_CATEGORY_ARMORS\020\001\022\031" - "\n\025ITEM_CATEGORY_AMULETS\020\002\022\027\n\023ITEM_CATEGO" - "RY_BOOTS\020\003\022\034\n\030ITEM_CATEGORY_CONTAINERS\020\004" - "\022\034\n\030ITEM_CATEGORY_DECORATION\020\005\022\026\n\022ITEM_C" - "ATEGORY_FOOD\020\006\022\036\n\032ITEM_CATEGORY_HELMETS_" - "HATS\020\007\022\026\n\022ITEM_CATEGORY_LEGS\020\010\022\030\n\024ITEM_C" - "ATEGORY_OTHERS\020\t\022\031\n\025ITEM_CATEGORY_POTION" - "S\020\n\022\027\n\023ITEM_CATEGORY_RINGS\020\013\022\027\n\023ITEM_CAT" - "EGORY_RUNES\020\014\022\031\n\025ITEM_CATEGORY_SHIELDS\020\r" - "\022\027\n\023ITEM_CATEGORY_TOOLS\020\016\022\033\n\027ITEM_CATEGO" - "RY_VALUABLES\020\017\022\034\n\030ITEM_CATEGORY_AMMUNITI" - "ON\020\020\022\026\n\022ITEM_CATEGORY_AXES\020\021\022\027\n\023ITEM_CAT" - "EGORY_CLUBS\020\022\022\"\n\036ITEM_CATEGORY_DISTANCE_" - "WEAPONS\020\023\022\030\n\024ITEM_CATEGORY_SWORDS\020\024\022\034\n\030I" - "TEM_CATEGORY_WANDS_RODS\020\025\022!\n\035ITEM_CATEGO" - "RY_PREMIUM_SCROLLS\020\026\022\035\n\031ITEM_CATEGORY_TI" - "BIA_COINS\020\027\022#\n\037ITEM_CATEGORY_CREATURE_PR" - "ODUCTS\020\030*\355\001\n\021PLAYER_PROFESSION\022\"\n\025PLAYER" - "_PROFESSION_ANY\020\377\377\377\377\377\377\377\377\377\001\022\032\n\026PLAYER_PRO" - "FESSION_NONE\020\000\022\034\n\030PLAYER_PROFESSION_KNIG" - "HT\020\001\022\035\n\031PLAYER_PROFESSION_PALADIN\020\002\022\036\n\032P" - "LAYER_PROFESSION_SORCERER\020\003\022\033\n\027PLAYER_PR" - "OFESSION_DRUID\020\004\022\036\n\032PLAYER_PROFESSION_PR" - "OMOTED\020\n*\203\001\n\023ANIMATION_LOOP_TYPE\022)\n\034ANIM" - "ATION_LOOP_TYPE_PINGPONG\020\377\377\377\377\377\377\377\377\377\001\022 \n\034A" - "NIMATION_LOOP_TYPE_INFINITE\020\000\022\037\n\033ANIMATI" - "ON_LOOP_TYPE_COUNTED\020\001*4\n\tHOOK_TYPE\022\023\n\017H" - "OOK_TYPE_SOUTH\020\001\022\022\n\016HOOK_TYPE_EAST\020\002*\201\001\n" - "\021FIXED_FRAME_GROUP\022!\n\035FIXED_FRAME_GROUP_" - "OUTFIT_IDLE\020\000\022#\n\037FIXED_FRAME_GROUP_OUTFI" - "T_MOVING\020\001\022$\n FIXED_FRAME_GROUP_OBJECT_I" - "NITIAL\020\002" -}; -static ::absl::once_flag descriptor_table_appearances_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_appearances_2eproto = { - false, - false, - 6328, - descriptor_table_protodef_appearances_2eproto, - "appearances.proto", - &descriptor_table_appearances_2eproto_once, - nullptr, - 0, - 26, - schemas, - file_default_instances, - TableStruct_appearances_2eproto::offsets, - file_level_metadata_appearances_2eproto, - file_level_enum_descriptors_appearances_2eproto, - file_level_service_descriptors_appearances_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_appearances_2eproto_getter() { - return &descriptor_table_appearances_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_appearances_2eproto(&descriptor_table_appearances_2eproto); -namespace otclient { -namespace protobuf { -namespace appearances { -const ::google::protobuf::EnumDescriptor* PLAYER_ACTION_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_appearances_2eproto); - return file_level_enum_descriptors_appearances_2eproto[0]; -} -PROTOBUF_CONSTINIT const uint32_t PLAYER_ACTION_internal_data_[] = { - 327680u, 0u, }; -bool PLAYER_ACTION_IsValid(int value) { - return 0 <= value && value <= 4; -} -const ::google::protobuf::EnumDescriptor* ITEM_CATEGORY_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_appearances_2eproto); - return file_level_enum_descriptors_appearances_2eproto[1]; -} -PROTOBUF_CONSTINIT const uint32_t ITEM_CATEGORY_internal_data_[] = { - 1572865u, 0u, }; -bool ITEM_CATEGORY_IsValid(int value) { - return 1 <= value && value <= 24; -} -const ::google::protobuf::EnumDescriptor* PLAYER_PROFESSION_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_appearances_2eproto); - return file_level_enum_descriptors_appearances_2eproto[2]; -} -PROTOBUF_CONSTINIT const uint32_t PLAYER_PROFESSION_internal_data_[] = { - 458751u, 32u, 32u, }; -bool PLAYER_PROFESSION_IsValid(int value) { - return ::_pbi::ValidateEnum(value, PLAYER_PROFESSION_internal_data_); -} -const ::google::protobuf::EnumDescriptor* ANIMATION_LOOP_TYPE_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_appearances_2eproto); - return file_level_enum_descriptors_appearances_2eproto[3]; -} -PROTOBUF_CONSTINIT const uint32_t ANIMATION_LOOP_TYPE_internal_data_[] = { - 262143u, 0u, }; -bool ANIMATION_LOOP_TYPE_IsValid(int value) { - return -1 <= value && value <= 1; -} -const ::google::protobuf::EnumDescriptor* HOOK_TYPE_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_appearances_2eproto); - return file_level_enum_descriptors_appearances_2eproto[4]; -} -PROTOBUF_CONSTINIT const uint32_t HOOK_TYPE_internal_data_[] = { - 131073u, 0u, }; -bool HOOK_TYPE_IsValid(int value) { - return 1 <= value && value <= 2; -} -const ::google::protobuf::EnumDescriptor* FIXED_FRAME_GROUP_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_appearances_2eproto); - return file_level_enum_descriptors_appearances_2eproto[5]; -} -PROTOBUF_CONSTINIT const uint32_t FIXED_FRAME_GROUP_internal_data_[] = { - 196608u, 0u, }; -bool FIXED_FRAME_GROUP_IsValid(int value) { - return 0 <= value && value <= 2; -} -// =================================================================== - -class Coordinate::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Coordinate, _impl_._has_bits_); - static void set_has_x(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_y(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_z(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -Coordinate::Coordinate(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.Coordinate) -} -Coordinate::Coordinate( - ::google::protobuf::Arena* arena, const Coordinate& from) - : Coordinate(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE Coordinate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void Coordinate::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, x_), - 0, - offsetof(Impl_, z_) - - offsetof(Impl_, x_) + - sizeof(Impl_::z_)); -} -Coordinate::~Coordinate() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.Coordinate) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Coordinate::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Coordinate::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.Coordinate) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - ::memset(&_impl_.x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Coordinate::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> Coordinate::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Coordinate, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Coordinate_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional uint32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Coordinate, _impl_.x_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(Coordinate, _impl_.x_)}}, - // optional uint32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Coordinate, _impl_.y_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(Coordinate, _impl_.y_)}}, - // optional uint32 z = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Coordinate, _impl_.z_), 2>(), - {24, 2, 0, PROTOBUF_FIELD_OFFSET(Coordinate, _impl_.z_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 x = 1; - {PROTOBUF_FIELD_OFFSET(Coordinate, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 y = 2; - {PROTOBUF_FIELD_OFFSET(Coordinate, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 z = 3; - {PROTOBUF_FIELD_OFFSET(Coordinate, _impl_.z_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Coordinate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.Coordinate) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 x = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_x(), target); - } - - // optional uint32 y = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_y(), target); - } - - // optional uint32 z = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_z(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.Coordinate) - return target; -} - -::size_t Coordinate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.Coordinate) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional uint32 x = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_x()); - } - - // optional uint32 y = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_y()); - } - - // optional uint32 z = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_z()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Coordinate::_class_data_ = { - Coordinate::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Coordinate::GetClassData() const { - return &_class_data_; -} - -void Coordinate::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.Coordinate) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.x_ = from._impl_.x_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.y_ = from._impl_.y_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.z_ = from._impl_.z_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Coordinate::CopyFrom(const Coordinate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.Coordinate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Coordinate::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* Coordinate::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Coordinate::InternalSwap(Coordinate* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Coordinate, _impl_.z_) - + sizeof(Coordinate::_impl_.z_) - - PROTOBUF_FIELD_OFFSET(Coordinate, _impl_.x_)>( - reinterpret_cast(&_impl_.x_), - reinterpret_cast(&other->_impl_.x_)); -} - -::google::protobuf::Metadata Coordinate::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[0]); -} -// =================================================================== - -class Appearances::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Appearances, _impl_._has_bits_); - static const ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds& special_meaning_appearance_ids(const Appearances* msg); - static void set_has_special_meaning_appearance_ids(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds& Appearances::_Internal::special_meaning_appearance_ids(const Appearances* msg) { - return *msg->_impl_.special_meaning_appearance_ids_; -} -Appearances::Appearances(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.Appearances) -} -inline PROTOBUF_NDEBUG_INLINE Appearances::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - object_{visibility, arena, from.object_}, - outfit_{visibility, arena, from.outfit_}, - effect_{visibility, arena, from.effect_}, - missile_{visibility, arena, from.missile_} {} - -Appearances::Appearances( - ::google::protobuf::Arena* arena, - const Appearances& from) - : ::google::protobuf::Message(arena) { - Appearances* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.special_meaning_appearance_ids_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::SpecialMeaningAppearanceIds>(arena, *from._impl_.special_meaning_appearance_ids_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:otclient.protobuf.appearances.Appearances) -} -inline PROTOBUF_NDEBUG_INLINE Appearances::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - object_{visibility, arena}, - outfit_{visibility, arena}, - effect_{visibility, arena}, - missile_{visibility, arena} {} - -inline void Appearances::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.special_meaning_appearance_ids_ = {}; -} -Appearances::~Appearances() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.Appearances) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Appearances::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.special_meaning_appearance_ids_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Appearances::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.Appearances) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.object_.Clear(); - _impl_.outfit_.Clear(); - _impl_.effect_.Clear(); - _impl_.missile_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.special_meaning_appearance_ids_ != nullptr); - _impl_.special_meaning_appearance_ids_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Appearances::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 5, 0, 2> Appearances::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Appearances, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Appearances_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .otclient.protobuf.appearances.Appearance object = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Appearances, _impl_.object_)}}, - // repeated .otclient.protobuf.appearances.Appearance outfit = 2; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(Appearances, _impl_.outfit_)}}, - // repeated .otclient.protobuf.appearances.Appearance effect = 3; - {::_pbi::TcParser::FastMtR1, - {26, 63, 2, PROTOBUF_FIELD_OFFSET(Appearances, _impl_.effect_)}}, - // repeated .otclient.protobuf.appearances.Appearance missile = 4; - {::_pbi::TcParser::FastMtR1, - {34, 63, 3, PROTOBUF_FIELD_OFFSET(Appearances, _impl_.missile_)}}, - // optional .otclient.protobuf.appearances.SpecialMeaningAppearanceIds special_meaning_appearance_ids = 5; - {::_pbi::TcParser::FastMtS1, - {42, 0, 4, PROTOBUF_FIELD_OFFSET(Appearances, _impl_.special_meaning_appearance_ids_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .otclient.protobuf.appearances.Appearance object = 1; - {PROTOBUF_FIELD_OFFSET(Appearances, _impl_.object_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .otclient.protobuf.appearances.Appearance outfit = 2; - {PROTOBUF_FIELD_OFFSET(Appearances, _impl_.outfit_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .otclient.protobuf.appearances.Appearance effect = 3; - {PROTOBUF_FIELD_OFFSET(Appearances, _impl_.effect_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .otclient.protobuf.appearances.Appearance missile = 4; - {PROTOBUF_FIELD_OFFSET(Appearances, _impl_.missile_), -1, 3, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .otclient.protobuf.appearances.SpecialMeaningAppearanceIds special_meaning_appearance_ids = 5; - {PROTOBUF_FIELD_OFFSET(Appearances, _impl_.special_meaning_appearance_ids_), _Internal::kHasBitsOffset + 0, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::Appearance>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::Appearance>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::Appearance>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::Appearance>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::SpecialMeaningAppearanceIds>()}, - }}, {{ - }}, -}; - -::uint8_t* Appearances::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.Appearances) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .otclient.protobuf.appearances.Appearance object = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_object_size()); i < n; i++) { - const auto& repfield = this->_internal_object().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .otclient.protobuf.appearances.Appearance outfit = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_outfit_size()); i < n; i++) { - const auto& repfield = this->_internal_outfit().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .otclient.protobuf.appearances.Appearance effect = 3; - for (unsigned i = 0, - n = static_cast(this->_internal_effect_size()); i < n; i++) { - const auto& repfield = this->_internal_effect().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .otclient.protobuf.appearances.Appearance missile = 4; - for (unsigned i = 0, - n = static_cast(this->_internal_missile_size()); i < n; i++) { - const auto& repfield = this->_internal_missile().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); - } - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.SpecialMeaningAppearanceIds special_meaning_appearance_ids = 5; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::special_meaning_appearance_ids(this), - _Internal::special_meaning_appearance_ids(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.Appearances) - return target; -} - -::size_t Appearances::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.Appearances) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .otclient.protobuf.appearances.Appearance object = 1; - total_size += 1UL * this->_internal_object_size(); - for (const auto& msg : this->_internal_object()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // repeated .otclient.protobuf.appearances.Appearance outfit = 2; - total_size += 1UL * this->_internal_outfit_size(); - for (const auto& msg : this->_internal_outfit()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // repeated .otclient.protobuf.appearances.Appearance effect = 3; - total_size += 1UL * this->_internal_effect_size(); - for (const auto& msg : this->_internal_effect()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // repeated .otclient.protobuf.appearances.Appearance missile = 4; - total_size += 1UL * this->_internal_missile_size(); - for (const auto& msg : this->_internal_missile()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // optional .otclient.protobuf.appearances.SpecialMeaningAppearanceIds special_meaning_appearance_ids = 5; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.special_meaning_appearance_ids_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Appearances::_class_data_ = { - Appearances::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Appearances::GetClassData() const { - return &_class_data_; -} - -void Appearances::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.Appearances) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_object()->MergeFrom( - from._internal_object()); - _this->_internal_mutable_outfit()->MergeFrom( - from._internal_outfit()); - _this->_internal_mutable_effect()->MergeFrom( - from._internal_effect()); - _this->_internal_mutable_missile()->MergeFrom( - from._internal_missile()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_special_meaning_appearance_ids()->::otclient::protobuf::appearances::SpecialMeaningAppearanceIds::MergeFrom( - from._internal_special_meaning_appearance_ids()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Appearances::CopyFrom(const Appearances& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.Appearances) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Appearances::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* Appearances::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Appearances::InternalSwap(Appearances* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.object_.InternalSwap(&other->_impl_.object_); - _impl_.outfit_.InternalSwap(&other->_impl_.outfit_); - _impl_.effect_.InternalSwap(&other->_impl_.effect_); - _impl_.missile_.InternalSwap(&other->_impl_.missile_); - swap(_impl_.special_meaning_appearance_ids_, other->_impl_.special_meaning_appearance_ids_); -} - -::google::protobuf::Metadata Appearances::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[1]); -} -// =================================================================== - -class SpritePhase::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SpritePhase, _impl_._has_bits_); - static void set_has_duration_min(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_duration_max(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -SpritePhase::SpritePhase(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.SpritePhase) -} -SpritePhase::SpritePhase( - ::google::protobuf::Arena* arena, const SpritePhase& from) - : SpritePhase(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE SpritePhase::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SpritePhase::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, duration_min_), - 0, - offsetof(Impl_, duration_max_) - - offsetof(Impl_, duration_min_) + - sizeof(Impl_::duration_max_)); -} -SpritePhase::~SpritePhase() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.SpritePhase) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SpritePhase::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SpritePhase::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.SpritePhase) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&_impl_.duration_min_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.duration_max_) - - reinterpret_cast(&_impl_.duration_min_)) + sizeof(_impl_.duration_max_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SpritePhase::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SpritePhase::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SpritePhase, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SpritePhase_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 duration_max = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpritePhase, _impl_.duration_max_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(SpritePhase, _impl_.duration_max_)}}, - // optional uint32 duration_min = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpritePhase, _impl_.duration_min_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(SpritePhase, _impl_.duration_min_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 duration_min = 1; - {PROTOBUF_FIELD_OFFSET(SpritePhase, _impl_.duration_min_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 duration_max = 2; - {PROTOBUF_FIELD_OFFSET(SpritePhase, _impl_.duration_max_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* SpritePhase::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.SpritePhase) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 duration_min = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_duration_min(), target); - } - - // optional uint32 duration_max = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_duration_max(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.SpritePhase) - return target; -} - -::size_t SpritePhase::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.SpritePhase) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional uint32 duration_min = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_duration_min()); - } - - // optional uint32 duration_max = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_duration_max()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SpritePhase::_class_data_ = { - SpritePhase::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SpritePhase::GetClassData() const { - return &_class_data_; -} - -void SpritePhase::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.SpritePhase) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.duration_min_ = from._impl_.duration_min_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.duration_max_ = from._impl_.duration_max_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SpritePhase::CopyFrom(const SpritePhase& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.SpritePhase) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SpritePhase::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SpritePhase::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SpritePhase::InternalSwap(SpritePhase* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SpritePhase, _impl_.duration_max_) - + sizeof(SpritePhase::_impl_.duration_max_) - - PROTOBUF_FIELD_OFFSET(SpritePhase, _impl_.duration_min_)>( - reinterpret_cast(&_impl_.duration_min_), - reinterpret_cast(&other->_impl_.duration_min_)); -} - -::google::protobuf::Metadata SpritePhase::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[2]); -} -// =================================================================== - -class SpriteAnimation::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_._has_bits_); - static void set_has_default_start_phase(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_synchronized(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_random_start_phase(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_loop_type(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_loop_count(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } -}; - -SpriteAnimation::SpriteAnimation(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.SpriteAnimation) -} -inline PROTOBUF_NDEBUG_INLINE SpriteAnimation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - sprite_phase_{visibility, arena, from.sprite_phase_} {} - -SpriteAnimation::SpriteAnimation( - ::google::protobuf::Arena* arena, - const SpriteAnimation& from) - : ::google::protobuf::Message(arena) { - SpriteAnimation* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, default_start_phase_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, default_start_phase_), - offsetof(Impl_, loop_type_) - - offsetof(Impl_, default_start_phase_) + - sizeof(Impl_::loop_type_)); - - // @@protoc_insertion_point(copy_constructor:otclient.protobuf.appearances.SpriteAnimation) -} -inline PROTOBUF_NDEBUG_INLINE SpriteAnimation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - sprite_phase_{visibility, arena}, - loop_type_{static_cast< ::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE >(-1)} {} - -inline void SpriteAnimation::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, default_start_phase_), - 0, - offsetof(Impl_, loop_count_) - - offsetof(Impl_, default_start_phase_) + - sizeof(Impl_::loop_count_)); -} -SpriteAnimation::~SpriteAnimation() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.SpriteAnimation) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SpriteAnimation::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SpriteAnimation::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.SpriteAnimation) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.sprite_phase_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - ::memset(&_impl_.default_start_phase_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.loop_count_) - - reinterpret_cast(&_impl_.default_start_phase_)) + sizeof(_impl_.loop_count_)); - _impl_.loop_type_ = -1; - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SpriteAnimation::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 2, 0, 2> SpriteAnimation::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SpriteAnimation_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional uint32 default_start_phase = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpriteAnimation, _impl_.default_start_phase_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.default_start_phase_)}}, - // optional bool synchronized = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.synchronized_)}}, - // optional bool random_start_phase = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 2, 0, PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.random_start_phase_)}}, - // optional .otclient.protobuf.appearances.ANIMATION_LOOP_TYPE loop_type = 4; - {::_pbi::TcParser::FastErS1, - {32, 4, 0, PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.loop_type_)}}, - // optional uint32 loop_count = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpriteAnimation, _impl_.loop_count_), 3>(), - {40, 3, 0, PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.loop_count_)}}, - // repeated .otclient.protobuf.appearances.SpritePhase sprite_phase = 6; - {::_pbi::TcParser::FastMtR1, - {50, 63, 1, PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.sprite_phase_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 default_start_phase = 1; - {PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.default_start_phase_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional bool synchronized = 2; - {PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.synchronized_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool random_start_phase = 3; - {PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.random_start_phase_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .otclient.protobuf.appearances.ANIMATION_LOOP_TYPE loop_type = 4; - {PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.loop_type_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - // optional uint32 loop_count = 5; - {PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.loop_count_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // repeated .otclient.protobuf.appearances.SpritePhase sprite_phase = 6; - {PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.sprite_phase_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {-1, 3}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::SpritePhase>()}, - }}, {{ - }}, -}; - -::uint8_t* SpriteAnimation::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.SpriteAnimation) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 default_start_phase = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_default_start_phase(), target); - } - - // optional bool synchronized = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_synchronized(), target); - } - - // optional bool random_start_phase = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_random_start_phase(), target); - } - - // optional .otclient.protobuf.appearances.ANIMATION_LOOP_TYPE loop_type = 4; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_loop_type(), target); - } - - // optional uint32 loop_count = 5; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_loop_count(), target); - } - - // repeated .otclient.protobuf.appearances.SpritePhase sprite_phase = 6; - for (unsigned i = 0, - n = static_cast(this->_internal_sprite_phase_size()); i < n; i++) { - const auto& repfield = this->_internal_sprite_phase().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.SpriteAnimation) - return target; -} - -::size_t SpriteAnimation::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.SpriteAnimation) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .otclient.protobuf.appearances.SpritePhase sprite_phase = 6; - total_size += 1UL * this->_internal_sprite_phase_size(); - for (const auto& msg : this->_internal_sprite_phase()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // optional uint32 default_start_phase = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_default_start_phase()); - } - - // optional bool synchronized = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 2; - } - - // optional bool random_start_phase = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 2; - } - - // optional uint32 loop_count = 5; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_loop_count()); - } - - // optional .otclient.protobuf.appearances.ANIMATION_LOOP_TYPE loop_type = 4; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_loop_type()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SpriteAnimation::_class_data_ = { - SpriteAnimation::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SpriteAnimation::GetClassData() const { - return &_class_data_; -} - -void SpriteAnimation::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.SpriteAnimation) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_sprite_phase()->MergeFrom( - from._internal_sprite_phase()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.default_start_phase_ = from._impl_.default_start_phase_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.synchronized_ = from._impl_.synchronized_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.random_start_phase_ = from._impl_.random_start_phase_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.loop_count_ = from._impl_.loop_count_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.loop_type_ = from._impl_.loop_type_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SpriteAnimation::CopyFrom(const SpriteAnimation& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.SpriteAnimation) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SpriteAnimation::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SpriteAnimation::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SpriteAnimation::InternalSwap(SpriteAnimation* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.sprite_phase_.InternalSwap(&other->_impl_.sprite_phase_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.loop_type_) - + sizeof(SpriteAnimation::_impl_.loop_type_) - - PROTOBUF_FIELD_OFFSET(SpriteAnimation, _impl_.default_start_phase_)>( - reinterpret_cast(&_impl_.default_start_phase_), - reinterpret_cast(&other->_impl_.default_start_phase_)); -} - -::google::protobuf::Metadata SpriteAnimation::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[3]); -} -// =================================================================== - -class Box::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Box, _impl_._has_bits_); - static void set_has_x(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_y(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_width(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_height(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } -}; - -Box::Box(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.Box) -} -Box::Box( - ::google::protobuf::Arena* arena, const Box& from) - : Box(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE Box::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void Box::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, x_), - 0, - offsetof(Impl_, height_) - - offsetof(Impl_, x_) + - sizeof(Impl_::height_)); -} -Box::~Box() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.Box) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Box::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Box::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.Box) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - ::memset(&_impl_.x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.height_) - - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.height_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Box::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Box::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Box, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Box_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 height = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Box, _impl_.height_), 3>(), - {32, 3, 0, PROTOBUF_FIELD_OFFSET(Box, _impl_.height_)}}, - // optional uint32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Box, _impl_.x_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(Box, _impl_.x_)}}, - // optional uint32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Box, _impl_.y_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(Box, _impl_.y_)}}, - // optional uint32 width = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Box, _impl_.width_), 2>(), - {24, 2, 0, PROTOBUF_FIELD_OFFSET(Box, _impl_.width_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 x = 1; - {PROTOBUF_FIELD_OFFSET(Box, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 y = 2; - {PROTOBUF_FIELD_OFFSET(Box, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 width = 3; - {PROTOBUF_FIELD_OFFSET(Box, _impl_.width_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 height = 4; - {PROTOBUF_FIELD_OFFSET(Box, _impl_.height_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Box::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.Box) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 x = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_x(), target); - } - - // optional uint32 y = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_y(), target); - } - - // optional uint32 width = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_width(), target); - } - - // optional uint32 height = 4; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this->_internal_height(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.Box) - return target; -} - -::size_t Box::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.Box) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - // optional uint32 x = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_x()); - } - - // optional uint32 y = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_y()); - } - - // optional uint32 width = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_width()); - } - - // optional uint32 height = 4; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_height()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Box::_class_data_ = { - Box::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Box::GetClassData() const { - return &_class_data_; -} - -void Box::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.Box) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.x_ = from._impl_.x_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.y_ = from._impl_.y_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.width_ = from._impl_.width_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.height_ = from._impl_.height_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Box::CopyFrom(const Box& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.Box) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Box::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* Box::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Box::InternalSwap(Box* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Box, _impl_.height_) - + sizeof(Box::_impl_.height_) - - PROTOBUF_FIELD_OFFSET(Box, _impl_.x_)>( - reinterpret_cast(&_impl_.x_), - reinterpret_cast(&other->_impl_.x_)); -} - -::google::protobuf::Metadata Box::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[4]); -} -// =================================================================== - -class SpriteInfo::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_._has_bits_); - static void set_has_pattern_width(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_pattern_height(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_pattern_depth(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_layers(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_bounding_square(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::otclient::protobuf::appearances::SpriteAnimation& animation(const SpriteInfo* msg); - static void set_has_animation(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_is_opaque(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } -}; - -const ::otclient::protobuf::appearances::SpriteAnimation& SpriteInfo::_Internal::animation(const SpriteInfo* msg) { - return *msg->_impl_.animation_; -} -SpriteInfo::SpriteInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.SpriteInfo) -} -inline PROTOBUF_NDEBUG_INLINE SpriteInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - sprite_id_{visibility, arena, from.sprite_id_}, - bounding_box_per_direction_{visibility, arena, from.bounding_box_per_direction_} {} - -SpriteInfo::SpriteInfo( - ::google::protobuf::Arena* arena, - const SpriteInfo& from) - : ::google::protobuf::Message(arena) { - SpriteInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.animation_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::SpriteAnimation>(arena, *from._impl_.animation_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, pattern_width_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, pattern_width_), - offsetof(Impl_, is_opaque_) - - offsetof(Impl_, pattern_width_) + - sizeof(Impl_::is_opaque_)); - - // @@protoc_insertion_point(copy_constructor:otclient.protobuf.appearances.SpriteInfo) -} -inline PROTOBUF_NDEBUG_INLINE SpriteInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - sprite_id_{visibility, arena}, - bounding_box_per_direction_{visibility, arena} {} - -inline void SpriteInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, animation_), - 0, - offsetof(Impl_, is_opaque_) - - offsetof(Impl_, animation_) + - sizeof(Impl_::is_opaque_)); -} -SpriteInfo::~SpriteInfo() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.SpriteInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SpriteInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.animation_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SpriteInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.SpriteInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.sprite_id_.Clear(); - _impl_.bounding_box_per_direction_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.animation_ != nullptr); - _impl_.animation_->Clear(); - } - if (cached_has_bits & 0x0000007eu) { - ::memset(&_impl_.pattern_width_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_opaque_) - - reinterpret_cast(&_impl_.pattern_width_)) + sizeof(_impl_.is_opaque_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SpriteInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 9, 2, 0, 2> SpriteInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_._has_bits_), - 0, // no _extensions_ - 9, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966784, // skipmap - offsetof(decltype(_table_), field_entries), - 9, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SpriteInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional uint32 pattern_width = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpriteInfo, _impl_.pattern_width_), 1>(), - {8, 1, 0, PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.pattern_width_)}}, - // optional uint32 pattern_height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpriteInfo, _impl_.pattern_height_), 2>(), - {16, 2, 0, PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.pattern_height_)}}, - // optional uint32 pattern_depth = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpriteInfo, _impl_.pattern_depth_), 3>(), - {24, 3, 0, PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.pattern_depth_)}}, - // optional uint32 layers = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpriteInfo, _impl_.layers_), 4>(), - {32, 4, 0, PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.layers_)}}, - // repeated uint32 sprite_id = 5; - {::_pbi::TcParser::FastV32R1, - {40, 63, 0, PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.sprite_id_)}}, - // optional .otclient.protobuf.appearances.SpriteAnimation animation = 6; - {::_pbi::TcParser::FastMtS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.animation_)}}, - // optional uint32 bounding_square = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpriteInfo, _impl_.bounding_square_), 5>(), - {56, 5, 0, PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.bounding_square_)}}, - // optional bool is_opaque = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 6, 0, PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.is_opaque_)}}, - // repeated .otclient.protobuf.appearances.Box bounding_box_per_direction = 9; - {::_pbi::TcParser::FastMtR1, - {74, 63, 1, PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.bounding_box_per_direction_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 pattern_width = 1; - {PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.pattern_width_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 pattern_height = 2; - {PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.pattern_height_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 pattern_depth = 3; - {PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.pattern_depth_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 layers = 4; - {PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.layers_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // repeated uint32 sprite_id = 5; - {PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.sprite_id_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUInt32)}, - // optional .otclient.protobuf.appearances.SpriteAnimation animation = 6; - {PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.animation_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional uint32 bounding_square = 7; - {PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.bounding_square_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional bool is_opaque = 8; - {PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.is_opaque_), _Internal::kHasBitsOffset + 6, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // repeated .otclient.protobuf.appearances.Box bounding_box_per_direction = 9; - {PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.bounding_box_per_direction_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::SpriteAnimation>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::Box>()}, - }}, {{ - }}, -}; - -::uint8_t* SpriteInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.SpriteInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 pattern_width = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_pattern_width(), target); - } - - // optional uint32 pattern_height = 2; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_pattern_height(), target); - } - - // optional uint32 pattern_depth = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_pattern_depth(), target); - } - - // optional uint32 layers = 4; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this->_internal_layers(), target); - } - - // repeated uint32 sprite_id = 5; - for (int i = 0, n = this->_internal_sprite_id_size(); i < n; ++i) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_sprite_id().Get(i), target); - } - - // optional .otclient.protobuf.appearances.SpriteAnimation animation = 6; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::animation(this), - _Internal::animation(this).GetCachedSize(), target, stream); - } - - // optional uint32 bounding_square = 7; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 7, this->_internal_bounding_square(), target); - } - - // optional bool is_opaque = 8; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this->_internal_is_opaque(), target); - } - - // repeated .otclient.protobuf.appearances.Box bounding_box_per_direction = 9; - for (unsigned i = 0, - n = static_cast(this->_internal_bounding_box_per_direction_size()); i < n; i++) { - const auto& repfield = this->_internal_bounding_box_per_direction().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.SpriteInfo) - return target; -} - -::size_t SpriteInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.SpriteInfo) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated uint32 sprite_id = 5; - { - std::size_t data_size = ::_pbi::WireFormatLite::UInt32Size( - this->_internal_sprite_id()) - ; - std::size_t tag_size = std::size_t{1} * - ::_pbi::FromIntSize(this->_internal_sprite_id_size()); - ; - total_size += tag_size + data_size; - } - // repeated .otclient.protobuf.appearances.Box bounding_box_per_direction = 9; - total_size += 1UL * this->_internal_bounding_box_per_direction_size(); - for (const auto& msg : this->_internal_bounding_box_per_direction()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - // optional .otclient.protobuf.appearances.SpriteAnimation animation = 6; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.animation_); - } - - // optional uint32 pattern_width = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_pattern_width()); - } - - // optional uint32 pattern_height = 2; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_pattern_height()); - } - - // optional uint32 pattern_depth = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_pattern_depth()); - } - - // optional uint32 layers = 4; - if (cached_has_bits & 0x00000010u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_layers()); - } - - // optional uint32 bounding_square = 7; - if (cached_has_bits & 0x00000020u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_bounding_square()); - } - - // optional bool is_opaque = 8; - if (cached_has_bits & 0x00000040u) { - total_size += 2; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SpriteInfo::_class_data_ = { - SpriteInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SpriteInfo::GetClassData() const { - return &_class_data_; -} - -void SpriteInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.SpriteInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_sprite_id()->MergeFrom(from._internal_sprite_id()); - _this->_internal_mutable_bounding_box_per_direction()->MergeFrom( - from._internal_bounding_box_per_direction()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_animation()->::otclient::protobuf::appearances::SpriteAnimation::MergeFrom( - from._internal_animation()); - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.pattern_width_ = from._impl_.pattern_width_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.pattern_height_ = from._impl_.pattern_height_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.pattern_depth_ = from._impl_.pattern_depth_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.layers_ = from._impl_.layers_; - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.bounding_square_ = from._impl_.bounding_square_; - } - if (cached_has_bits & 0x00000040u) { - _this->_impl_.is_opaque_ = from._impl_.is_opaque_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SpriteInfo::CopyFrom(const SpriteInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.SpriteInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SpriteInfo::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SpriteInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SpriteInfo::InternalSwap(SpriteInfo* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.sprite_id_.InternalSwap(&other->_impl_.sprite_id_); - _impl_.bounding_box_per_direction_.InternalSwap(&other->_impl_.bounding_box_per_direction_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.is_opaque_) - + sizeof(SpriteInfo::_impl_.is_opaque_) - - PROTOBUF_FIELD_OFFSET(SpriteInfo, _impl_.animation_)>( - reinterpret_cast(&_impl_.animation_), - reinterpret_cast(&other->_impl_.animation_)); -} - -::google::protobuf::Metadata SpriteInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[5]); -} -// =================================================================== - -class FrameGroup::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FrameGroup, _impl_._has_bits_); - static void set_has_fixed_frame_group(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::otclient::protobuf::appearances::SpriteInfo& sprite_info(const FrameGroup* msg); - static void set_has_sprite_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::otclient::protobuf::appearances::SpriteInfo& FrameGroup::_Internal::sprite_info(const FrameGroup* msg) { - return *msg->_impl_.sprite_info_; -} -FrameGroup::FrameGroup(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.FrameGroup) -} -inline PROTOBUF_NDEBUG_INLINE FrameGroup::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -FrameGroup::FrameGroup( - ::google::protobuf::Arena* arena, - const FrameGroup& from) - : ::google::protobuf::Message(arena) { - FrameGroup* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.sprite_info_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::SpriteInfo>(arena, *from._impl_.sprite_info_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, fixed_frame_group_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, fixed_frame_group_), - offsetof(Impl_, id_) - - offsetof(Impl_, fixed_frame_group_) + - sizeof(Impl_::id_)); - - // @@protoc_insertion_point(copy_constructor:otclient.protobuf.appearances.FrameGroup) -} -inline PROTOBUF_NDEBUG_INLINE FrameGroup::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void FrameGroup::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, sprite_info_), - 0, - offsetof(Impl_, id_) - - offsetof(Impl_, sprite_info_) + - sizeof(Impl_::id_)); -} -FrameGroup::~FrameGroup() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.FrameGroup) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FrameGroup::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.sprite_info_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FrameGroup::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.FrameGroup) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.sprite_info_ != nullptr); - _impl_.sprite_info_->Clear(); - } - if (cached_has_bits & 0x00000006u) { - ::memset(&_impl_.fixed_frame_group_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.id_) - - reinterpret_cast(&_impl_.fixed_frame_group_)) + sizeof(_impl_.id_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FrameGroup::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 0, 2> FrameGroup::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FrameGroup, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FrameGroup_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional .otclient.protobuf.appearances.FIXED_FRAME_GROUP fixed_frame_group = 1; - {::_pbi::TcParser::FastEr0S1, - {8, 1, 2, PROTOBUF_FIELD_OFFSET(FrameGroup, _impl_.fixed_frame_group_)}}, - // optional uint32 id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FrameGroup, _impl_.id_), 2>(), - {16, 2, 0, PROTOBUF_FIELD_OFFSET(FrameGroup, _impl_.id_)}}, - // optional .otclient.protobuf.appearances.SpriteInfo sprite_info = 3; - {::_pbi::TcParser::FastMtS1, - {26, 0, 1, PROTOBUF_FIELD_OFFSET(FrameGroup, _impl_.sprite_info_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional .otclient.protobuf.appearances.FIXED_FRAME_GROUP fixed_frame_group = 1; - {PROTOBUF_FIELD_OFFSET(FrameGroup, _impl_.fixed_frame_group_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - // optional uint32 id = 2; - {PROTOBUF_FIELD_OFFSET(FrameGroup, _impl_.id_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional .otclient.protobuf.appearances.SpriteInfo sprite_info = 3; - {PROTOBUF_FIELD_OFFSET(FrameGroup, _impl_.sprite_info_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {0, 3}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::SpriteInfo>()}, - }}, {{ - }}, -}; - -::uint8_t* FrameGroup::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.FrameGroup) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.FIXED_FRAME_GROUP fixed_frame_group = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_fixed_frame_group(), target); - } - - // optional uint32 id = 2; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_id(), target); - } - - // optional .otclient.protobuf.appearances.SpriteInfo sprite_info = 3; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::sprite_info(this), - _Internal::sprite_info(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.FrameGroup) - return target; -} - -::size_t FrameGroup::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.FrameGroup) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional .otclient.protobuf.appearances.SpriteInfo sprite_info = 3; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.sprite_info_); - } - - // optional .otclient.protobuf.appearances.FIXED_FRAME_GROUP fixed_frame_group = 1; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_fixed_frame_group()); - } - - // optional uint32 id = 2; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_id()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FrameGroup::_class_data_ = { - FrameGroup::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FrameGroup::GetClassData() const { - return &_class_data_; -} - -void FrameGroup::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.FrameGroup) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_sprite_info()->::otclient::protobuf::appearances::SpriteInfo::MergeFrom( - from._internal_sprite_info()); - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.fixed_frame_group_ = from._impl_.fixed_frame_group_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.id_ = from._impl_.id_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void FrameGroup::CopyFrom(const FrameGroup& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.FrameGroup) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool FrameGroup::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* FrameGroup::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FrameGroup::InternalSwap(FrameGroup* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(FrameGroup, _impl_.id_) - + sizeof(FrameGroup::_impl_.id_) - - PROTOBUF_FIELD_OFFSET(FrameGroup, _impl_.sprite_info_)>( - reinterpret_cast(&_impl_.sprite_info_), - reinterpret_cast(&other->_impl_.sprite_info_)); -} - -::google::protobuf::Metadata FrameGroup::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[6]); -} -// =================================================================== - -class Appearance::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Appearance, _impl_._has_bits_); - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::otclient::protobuf::appearances::AppearanceFlags& flags(const Appearance* msg); - static void set_has_flags(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_description(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -const ::otclient::protobuf::appearances::AppearanceFlags& Appearance::_Internal::flags(const Appearance* msg) { - return *msg->_impl_.flags_; -} -Appearance::Appearance(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.Appearance) -} -inline PROTOBUF_NDEBUG_INLINE Appearance::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - frame_group_{visibility, arena, from.frame_group_}, - name_(arena, from.name_), - description_(arena, from.description_) {} - -Appearance::Appearance( - ::google::protobuf::Arena* arena, - const Appearance& from) - : ::google::protobuf::Message(arena) { - Appearance* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.flags_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlags>(arena, *from._impl_.flags_) - : nullptr; - _impl_.id_ = from._impl_.id_; - - // @@protoc_insertion_point(copy_constructor:otclient.protobuf.appearances.Appearance) -} -inline PROTOBUF_NDEBUG_INLINE Appearance::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - frame_group_{visibility, arena}, - name_(arena), - description_(arena) {} - -inline void Appearance::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, flags_), - 0, - offsetof(Impl_, id_) - - offsetof(Impl_, flags_) + - sizeof(Impl_::id_)); -} -Appearance::~Appearance() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.Appearance) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Appearance::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.description_.Destroy(); - delete _impl_.flags_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Appearance::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.Appearance) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.frame_group_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _impl_.name_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - _impl_.description_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.flags_ != nullptr); - _impl_.flags_->Clear(); - } - } - _impl_.id_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Appearance::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 64, 2> Appearance::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Appearance, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Appearance_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional uint32 id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Appearance, _impl_.id_), 3>(), - {8, 3, 0, PROTOBUF_FIELD_OFFSET(Appearance, _impl_.id_)}}, - // repeated .otclient.protobuf.appearances.FrameGroup frame_group = 2; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Appearance, _impl_.frame_group_)}}, - // optional .otclient.protobuf.appearances.AppearanceFlags flags = 3; - {::_pbi::TcParser::FastMtS1, - {26, 2, 1, PROTOBUF_FIELD_OFFSET(Appearance, _impl_.flags_)}}, - // optional string name = 4; - {::_pbi::TcParser::FastSS1, - {34, 0, 0, PROTOBUF_FIELD_OFFSET(Appearance, _impl_.name_)}}, - // optional string description = 5; - {::_pbi::TcParser::FastSS1, - {42, 1, 0, PROTOBUF_FIELD_OFFSET(Appearance, _impl_.description_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 id = 1; - {PROTOBUF_FIELD_OFFSET(Appearance, _impl_.id_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // repeated .otclient.protobuf.appearances.FrameGroup frame_group = 2; - {PROTOBUF_FIELD_OFFSET(Appearance, _impl_.frame_group_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .otclient.protobuf.appearances.AppearanceFlags flags = 3; - {PROTOBUF_FIELD_OFFSET(Appearance, _impl_.flags_), _Internal::kHasBitsOffset + 2, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional string name = 4; - {PROTOBUF_FIELD_OFFSET(Appearance, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, - // optional string description = 5; - {PROTOBUF_FIELD_OFFSET(Appearance, _impl_.description_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::FrameGroup>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlags>()}, - }}, {{ - "\50\0\0\0\4\13\0\0" - "otclient.protobuf.appearances.Appearance" - "name" - "description" - }}, -}; - -::uint8_t* Appearance::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.Appearance) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 id = 1; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_id(), target); - } - - // repeated .otclient.protobuf.appearances.FrameGroup frame_group = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_frame_group_size()); i < n; i++) { - const auto& repfield = this->_internal_frame_group().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - // optional .otclient.protobuf.appearances.AppearanceFlags flags = 3; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::flags(this), - _Internal::flags(this).GetCachedSize(), target, stream); - } - - // optional string name = 4; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, - "otclient.protobuf.appearances.Appearance.name"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - // optional string description = 5; - if (cached_has_bits & 0x00000002u) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, - "otclient.protobuf.appearances.Appearance.description"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.Appearance) - return target; -} - -::size_t Appearance::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.Appearance) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .otclient.protobuf.appearances.FrameGroup frame_group = 2; - total_size += 1UL * this->_internal_frame_group_size(); - for (const auto& msg : this->_internal_frame_group()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - // optional string name = 4; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional string description = 5; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); - } - - // optional .otclient.protobuf.appearances.AppearanceFlags flags = 3; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.flags_); - } - - // optional uint32 id = 1; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_id()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Appearance::_class_data_ = { - Appearance::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Appearance::GetClassData() const { - return &_class_data_; -} - -void Appearance::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.Appearance) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_frame_group()->MergeFrom( - from._internal_frame_group()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_set_name(from._internal_name()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_set_description(from._internal_description()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_flags()->::otclient::protobuf::appearances::AppearanceFlags::MergeFrom( - from._internal_flags()); - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.id_ = from._impl_.id_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Appearance::CopyFrom(const Appearance& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.Appearance) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Appearance::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* Appearance::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Appearance::InternalSwap(Appearance* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.frame_group_.InternalSwap(&other->_impl_.frame_group_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Appearance, _impl_.id_) - + sizeof(Appearance::_impl_.id_) - - PROTOBUF_FIELD_OFFSET(Appearance, _impl_.flags_)>( - reinterpret_cast(&_impl_.flags_), - reinterpret_cast(&other->_impl_.flags_)); -} - -::google::protobuf::Metadata Appearance::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[7]); -} -// =================================================================== - -class AppearanceFlags::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_._has_bits_); - static const ::otclient::protobuf::appearances::AppearanceFlagBank& bank(const AppearanceFlags* msg); - static void set_has_bank(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_clip(HasBits* has_bits) { - (*has_bits)[0] |= 32768u; - } - static void set_has_bottom(HasBits* has_bits) { - (*has_bits)[0] |= 65536u; - } - static void set_has_top(HasBits* has_bits) { - (*has_bits)[0] |= 131072u; - } - static void set_has_container(HasBits* has_bits) { - (*has_bits)[0] |= 262144u; - } - static void set_has_cumulative(HasBits* has_bits) { - (*has_bits)[0] |= 524288u; - } - static void set_has_usable(HasBits* has_bits) { - (*has_bits)[0] |= 1048576u; - } - static void set_has_forceuse(HasBits* has_bits) { - (*has_bits)[0] |= 2097152u; - } - static void set_has_multiuse(HasBits* has_bits) { - (*has_bits)[0] |= 4194304u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagWrite& write(const AppearanceFlags* msg); - static void set_has_write(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagWriteOnce& write_once(const AppearanceFlags* msg); - static void set_has_write_once(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_liquidpool(HasBits* has_bits) { - (*has_bits)[0] |= 8388608u; - } - static void set_has_unpass(HasBits* has_bits) { - (*has_bits)[0] |= 16777216u; - } - static void set_has_unmove(HasBits* has_bits) { - (*has_bits)[0] |= 33554432u; - } - static void set_has_unsight(HasBits* has_bits) { - (*has_bits)[0] |= 67108864u; - } - static void set_has_avoid(HasBits* has_bits) { - (*has_bits)[0] |= 134217728u; - } - static void set_has_no_movement_animation(HasBits* has_bits) { - (*has_bits)[0] |= 268435456u; - } - static void set_has_take(HasBits* has_bits) { - (*has_bits)[0] |= 536870912u; - } - static void set_has_liquidcontainer(HasBits* has_bits) { - (*has_bits)[0] |= 1073741824u; - } - static void set_has_hang(HasBits* has_bits) { - (*has_bits)[0] |= 2147483648u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagHook& hook(const AppearanceFlags* msg); - static void set_has_hook(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_rotate(HasBits* has_bits) { - (*has_bits)[1] |= 1u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagLight& light(const AppearanceFlags* msg); - static void set_has_light(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_dont_hide(HasBits* has_bits) { - (*has_bits)[1] |= 2u; - } - static void set_has_translucent(HasBits* has_bits) { - (*has_bits)[1] |= 4u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagShift& shift(const AppearanceFlags* msg); - static void set_has_shift(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagHeight& height(const AppearanceFlags* msg); - static void set_has_height(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_lying_object(HasBits* has_bits) { - (*has_bits)[1] |= 8u; - } - static void set_has_animate_always(HasBits* has_bits) { - (*has_bits)[1] |= 16u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagAutomap& automap(const AppearanceFlags* msg); - static void set_has_automap(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagLenshelp& lenshelp(const AppearanceFlags* msg); - static void set_has_lenshelp(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_fullbank(HasBits* has_bits) { - (*has_bits)[1] |= 32u; - } - static void set_has_ignore_look(HasBits* has_bits) { - (*has_bits)[1] |= 64u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagClothes& clothes(const AppearanceFlags* msg); - static void set_has_clothes(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagDefaultAction& default_action(const AppearanceFlags* msg); - static void set_has_default_action(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagMarket& market(const AppearanceFlags* msg); - static void set_has_market(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static void set_has_wrap(HasBits* has_bits) { - (*has_bits)[1] |= 128u; - } - static void set_has_unwrap(HasBits* has_bits) { - (*has_bits)[1] |= 256u; - } - static void set_has_topeffect(HasBits* has_bits) { - (*has_bits)[1] |= 512u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire& changedtoexpire(const AppearanceFlags* msg); - static void set_has_changedtoexpire(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } - static void set_has_corpse(HasBits* has_bits) { - (*has_bits)[1] |= 1024u; - } - static void set_has_player_corpse(HasBits* has_bits) { - (*has_bits)[1] |= 2048u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagCyclopedia& cyclopediaitem(const AppearanceFlags* msg); - static void set_has_cyclopediaitem(HasBits* has_bits) { - (*has_bits)[0] |= 8192u; - } - static void set_has_ammo(HasBits* has_bits) { - (*has_bits)[1] |= 4096u; - } - static void set_has_show_off_socket(HasBits* has_bits) { - (*has_bits)[1] |= 8192u; - } - static void set_has_reportable(HasBits* has_bits) { - (*has_bits)[1] |= 16384u; - } - static const ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification& upgradeclassification(const AppearanceFlags* msg); - static void set_has_upgradeclassification(HasBits* has_bits) { - (*has_bits)[0] |= 16384u; - } - static void set_has_reverse_addons_east(HasBits* has_bits) { - (*has_bits)[1] |= 32768u; - } - static void set_has_reverse_addons_west(HasBits* has_bits) { - (*has_bits)[1] |= 65536u; - } - static void set_has_reverse_addons_south(HasBits* has_bits) { - (*has_bits)[1] |= 131072u; - } - static void set_has_reverse_addons_north(HasBits* has_bits) { - (*has_bits)[1] |= 262144u; - } - static void set_has_wearout(HasBits* has_bits) { - (*has_bits)[1] |= 524288u; - } - static void set_has_clockexpire(HasBits* has_bits) { - (*has_bits)[1] |= 1048576u; - } - static void set_has_expire(HasBits* has_bits) { - (*has_bits)[1] |= 2097152u; - } - static void set_has_expirestop(HasBits* has_bits) { - (*has_bits)[1] |= 4194304u; - } - static void set_has_deco_kit(HasBits* has_bits) { - (*has_bits)[1] |= 8388608u; - } -}; - -const ::otclient::protobuf::appearances::AppearanceFlagBank& AppearanceFlags::_Internal::bank(const AppearanceFlags* msg) { - return *msg->_impl_.bank_; -} -const ::otclient::protobuf::appearances::AppearanceFlagWrite& AppearanceFlags::_Internal::write(const AppearanceFlags* msg) { - return *msg->_impl_.write_; -} -const ::otclient::protobuf::appearances::AppearanceFlagWriteOnce& AppearanceFlags::_Internal::write_once(const AppearanceFlags* msg) { - return *msg->_impl_.write_once_; -} -const ::otclient::protobuf::appearances::AppearanceFlagHook& AppearanceFlags::_Internal::hook(const AppearanceFlags* msg) { - return *msg->_impl_.hook_; -} -const ::otclient::protobuf::appearances::AppearanceFlagLight& AppearanceFlags::_Internal::light(const AppearanceFlags* msg) { - return *msg->_impl_.light_; -} -const ::otclient::protobuf::appearances::AppearanceFlagShift& AppearanceFlags::_Internal::shift(const AppearanceFlags* msg) { - return *msg->_impl_.shift_; -} -const ::otclient::protobuf::appearances::AppearanceFlagHeight& AppearanceFlags::_Internal::height(const AppearanceFlags* msg) { - return *msg->_impl_.height_; -} -const ::otclient::protobuf::appearances::AppearanceFlagAutomap& AppearanceFlags::_Internal::automap(const AppearanceFlags* msg) { - return *msg->_impl_.automap_; -} -const ::otclient::protobuf::appearances::AppearanceFlagLenshelp& AppearanceFlags::_Internal::lenshelp(const AppearanceFlags* msg) { - return *msg->_impl_.lenshelp_; -} -const ::otclient::protobuf::appearances::AppearanceFlagClothes& AppearanceFlags::_Internal::clothes(const AppearanceFlags* msg) { - return *msg->_impl_.clothes_; -} -const ::otclient::protobuf::appearances::AppearanceFlagDefaultAction& AppearanceFlags::_Internal::default_action(const AppearanceFlags* msg) { - return *msg->_impl_.default_action_; -} -const ::otclient::protobuf::appearances::AppearanceFlagMarket& AppearanceFlags::_Internal::market(const AppearanceFlags* msg) { - return *msg->_impl_.market_; -} -const ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire& AppearanceFlags::_Internal::changedtoexpire(const AppearanceFlags* msg) { - return *msg->_impl_.changedtoexpire_; -} -const ::otclient::protobuf::appearances::AppearanceFlagCyclopedia& AppearanceFlags::_Internal::cyclopediaitem(const AppearanceFlags* msg) { - return *msg->_impl_.cyclopediaitem_; -} -const ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification& AppearanceFlags::_Internal::upgradeclassification(const AppearanceFlags* msg) { - return *msg->_impl_.upgradeclassification_; -} -AppearanceFlags::AppearanceFlags(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlags) -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlags::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - npcsaledata_{visibility, arena, from.npcsaledata_} {} - -AppearanceFlags::AppearanceFlags( - ::google::protobuf::Arena* arena, - const AppearanceFlags& from) - : ::google::protobuf::Message(arena) { - AppearanceFlags* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.bank_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagBank>(arena, *from._impl_.bank_) - : nullptr; - _impl_.write_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagWrite>(arena, *from._impl_.write_) - : nullptr; - _impl_.write_once_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagWriteOnce>(arena, *from._impl_.write_once_) - : nullptr; - _impl_.hook_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagHook>(arena, *from._impl_.hook_) - : nullptr; - _impl_.light_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagLight>(arena, *from._impl_.light_) - : nullptr; - _impl_.shift_ = (cached_has_bits & 0x00000020u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagShift>(arena, *from._impl_.shift_) - : nullptr; - _impl_.height_ = (cached_has_bits & 0x00000040u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagHeight>(arena, *from._impl_.height_) - : nullptr; - _impl_.automap_ = (cached_has_bits & 0x00000080u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagAutomap>(arena, *from._impl_.automap_) - : nullptr; - _impl_.lenshelp_ = (cached_has_bits & 0x00000100u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagLenshelp>(arena, *from._impl_.lenshelp_) - : nullptr; - _impl_.clothes_ = (cached_has_bits & 0x00000200u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagClothes>(arena, *from._impl_.clothes_) - : nullptr; - _impl_.default_action_ = (cached_has_bits & 0x00000400u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagDefaultAction>(arena, *from._impl_.default_action_) - : nullptr; - _impl_.market_ = (cached_has_bits & 0x00000800u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagMarket>(arena, *from._impl_.market_) - : nullptr; - _impl_.changedtoexpire_ = (cached_has_bits & 0x00001000u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagChangedToExpire>(arena, *from._impl_.changedtoexpire_) - : nullptr; - _impl_.cyclopediaitem_ = (cached_has_bits & 0x00002000u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagCyclopedia>(arena, *from._impl_.cyclopediaitem_) - : nullptr; - _impl_.upgradeclassification_ = (cached_has_bits & 0x00004000u) - ? CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification>(arena, *from._impl_.upgradeclassification_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, clip_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, clip_), - offsetof(Impl_, deco_kit_) - - offsetof(Impl_, clip_) + - sizeof(Impl_::deco_kit_)); - - // @@protoc_insertion_point(copy_constructor:otclient.protobuf.appearances.AppearanceFlags) -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlags::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - npcsaledata_{visibility, arena} {} - -inline void AppearanceFlags::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, bank_), - 0, - offsetof(Impl_, deco_kit_) - - offsetof(Impl_, bank_) + - sizeof(Impl_::deco_kit_)); -} -AppearanceFlags::~AppearanceFlags() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlags) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlags::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.bank_; - delete _impl_.write_; - delete _impl_.write_once_; - delete _impl_.hook_; - delete _impl_.light_; - delete _impl_.shift_; - delete _impl_.height_; - delete _impl_.automap_; - delete _impl_.lenshelp_; - delete _impl_.clothes_; - delete _impl_.default_action_; - delete _impl_.market_; - delete _impl_.changedtoexpire_; - delete _impl_.cyclopediaitem_; - delete _impl_.upgradeclassification_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlags::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlags) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.npcsaledata_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.bank_ != nullptr); - _impl_.bank_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.write_ != nullptr); - _impl_.write_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.write_once_ != nullptr); - _impl_.write_once_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.hook_ != nullptr); - _impl_.hook_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.light_ != nullptr); - _impl_.light_->Clear(); - } - if (cached_has_bits & 0x00000020u) { - ABSL_DCHECK(_impl_.shift_ != nullptr); - _impl_.shift_->Clear(); - } - if (cached_has_bits & 0x00000040u) { - ABSL_DCHECK(_impl_.height_ != nullptr); - _impl_.height_->Clear(); - } - if (cached_has_bits & 0x00000080u) { - ABSL_DCHECK(_impl_.automap_ != nullptr); - _impl_.automap_->Clear(); - } - } - if (cached_has_bits & 0x00007f00u) { - if (cached_has_bits & 0x00000100u) { - ABSL_DCHECK(_impl_.lenshelp_ != nullptr); - _impl_.lenshelp_->Clear(); - } - if (cached_has_bits & 0x00000200u) { - ABSL_DCHECK(_impl_.clothes_ != nullptr); - _impl_.clothes_->Clear(); - } - if (cached_has_bits & 0x00000400u) { - ABSL_DCHECK(_impl_.default_action_ != nullptr); - _impl_.default_action_->Clear(); - } - if (cached_has_bits & 0x00000800u) { - ABSL_DCHECK(_impl_.market_ != nullptr); - _impl_.market_->Clear(); - } - if (cached_has_bits & 0x00001000u) { - ABSL_DCHECK(_impl_.changedtoexpire_ != nullptr); - _impl_.changedtoexpire_->Clear(); - } - if (cached_has_bits & 0x00002000u) { - ABSL_DCHECK(_impl_.cyclopediaitem_ != nullptr); - _impl_.cyclopediaitem_->Clear(); - } - if (cached_has_bits & 0x00004000u) { - ABSL_DCHECK(_impl_.upgradeclassification_ != nullptr); - _impl_.upgradeclassification_->Clear(); - } - } - _impl_.clip_ = false; - if (cached_has_bits & 0x00ff0000u) { - ::memset(&_impl_.bottom_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.liquidpool_) - - reinterpret_cast(&_impl_.bottom_)) + sizeof(_impl_.liquidpool_)); - } - if (cached_has_bits & 0xff000000u) { - ::memset(&_impl_.unpass_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.hang_) - - reinterpret_cast(&_impl_.unpass_)) + sizeof(_impl_.hang_)); - } - cached_has_bits = _impl_._has_bits_[1]; - if (cached_has_bits & 0x000000ffu) { - ::memset(&_impl_.rotate_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.wrap_) - - reinterpret_cast(&_impl_.rotate_)) + sizeof(_impl_.wrap_)); - } - if (cached_has_bits & 0x0000ff00u) { - ::memset(&_impl_.unwrap_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.reverse_addons_east_) - - reinterpret_cast(&_impl_.unwrap_)) + sizeof(_impl_.reverse_addons_east_)); - } - if (cached_has_bits & 0x00ff0000u) { - ::memset(&_impl_.reverse_addons_west_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.deco_kit_) - - reinterpret_cast(&_impl_.reverse_addons_west_)) + sizeof(_impl_.deco_kit_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlags::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 57, 16, 0, 9> AppearanceFlags::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_._has_bits_), - 0, // no _extensions_ - 57, 248, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 0, // skipmap - offsetof(decltype(_table_), field_entries), - 57, // num_field_entries - 16, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AppearanceFlags_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional .otclient.protobuf.appearances.AppearanceFlagBank bank = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.bank_)}}, - // optional bool clip = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 15, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.clip_)}}, - // optional bool bottom = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 16, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.bottom_)}}, - // optional bool top = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 17, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.top_)}}, - // optional bool container = 5; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 18, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.container_)}}, - // optional bool cumulative = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 19, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.cumulative_)}}, - // optional bool usable = 7; - {::_pbi::TcParser::SingularVarintNoZag1(), - {56, 20, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.usable_)}}, - // optional bool forceuse = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 21, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.forceuse_)}}, - // optional bool multiuse = 9; - {::_pbi::TcParser::SingularVarintNoZag1(), - {72, 22, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.multiuse_)}}, - // optional .otclient.protobuf.appearances.AppearanceFlagWrite write = 10; - {::_pbi::TcParser::FastMtS1, - {82, 1, 1, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.write_)}}, - // optional .otclient.protobuf.appearances.AppearanceFlagWriteOnce write_once = 11; - {::_pbi::TcParser::FastMtS1, - {90, 2, 2, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.write_once_)}}, - // optional bool liquidpool = 12; - {::_pbi::TcParser::SingularVarintNoZag1(), - {96, 23, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.liquidpool_)}}, - // optional bool unpass = 13; - {::_pbi::TcParser::SingularVarintNoZag1(), - {104, 24, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.unpass_)}}, - // optional bool unmove = 14; - {::_pbi::TcParser::SingularVarintNoZag1(), - {112, 25, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.unmove_)}}, - // optional bool unsight = 15; - {::_pbi::TcParser::SingularVarintNoZag1(), - {120, 26, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.unsight_)}}, - // optional bool avoid = 16; - {::_pbi::TcParser::FastV8S2, - {384, 27, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.avoid_)}}, - // optional bool no_movement_animation = 17; - {::_pbi::TcParser::FastV8S2, - {392, 28, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.no_movement_animation_)}}, - // optional bool take = 18; - {::_pbi::TcParser::FastV8S2, - {400, 29, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.take_)}}, - // optional bool liquidcontainer = 19; - {::_pbi::TcParser::FastV8S2, - {408, 30, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.liquidcontainer_)}}, - // optional bool hang = 20; - {::_pbi::TcParser::FastV8S2, - {416, 31, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.hang_)}}, - // optional .otclient.protobuf.appearances.AppearanceFlagHook hook = 21; - {::_pbi::TcParser::FastMtS2, - {426, 3, 3, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.hook_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // optional .otclient.protobuf.appearances.AppearanceFlagLight light = 23; - {::_pbi::TcParser::FastMtS2, - {442, 4, 4, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.light_)}}, - // repeated .otclient.protobuf.appearances.AppearanceFlagNPC npcsaledata = 40; - {::_pbi::TcParser::FastMtR2, - {706, 63, 12, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.npcsaledata_)}}, - // optional .otclient.protobuf.appearances.AppearanceFlagChangedToExpire changedtoexpire = 41; - {::_pbi::TcParser::FastMtS2, - {714, 12, 13, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.changedtoexpire_)}}, - // optional .otclient.protobuf.appearances.AppearanceFlagShift shift = 26; - {::_pbi::TcParser::FastMtS2, - {466, 5, 5, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.shift_)}}, - // optional .otclient.protobuf.appearances.AppearanceFlagHeight height = 27; - {::_pbi::TcParser::FastMtS2, - {474, 6, 6, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.height_)}}, - // optional .otclient.protobuf.appearances.AppearanceFlagCyclopedia cyclopediaitem = 44; - {::_pbi::TcParser::FastMtS2, - {738, 13, 14, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.cyclopediaitem_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // optional .otclient.protobuf.appearances.AppearanceFlagAutomap automap = 30; - {::_pbi::TcParser::FastMtS2, - {498, 7, 7, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.automap_)}}, - // optional .otclient.protobuf.appearances.AppearanceFlagLenshelp lenshelp = 31; - {::_pbi::TcParser::FastMtS2, - {506, 8, 8, PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.lenshelp_)}}, - }}, {{ - 33, 0, 2, - 0, 32, 65024, 48, - 65535, 65535 - }}, {{ - // optional .otclient.protobuf.appearances.AppearanceFlagBank bank = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.bank_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool clip = 2; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.clip_), _Internal::kHasBitsOffset + 15, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool bottom = 3; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.bottom_), _Internal::kHasBitsOffset + 16, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool top = 4; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.top_), _Internal::kHasBitsOffset + 17, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool container = 5; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.container_), _Internal::kHasBitsOffset + 18, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool cumulative = 6; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.cumulative_), _Internal::kHasBitsOffset + 19, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool usable = 7; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.usable_), _Internal::kHasBitsOffset + 20, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool forceuse = 8; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.forceuse_), _Internal::kHasBitsOffset + 21, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool multiuse = 9; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.multiuse_), _Internal::kHasBitsOffset + 22, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .otclient.protobuf.appearances.AppearanceFlagWrite write = 10; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.write_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .otclient.protobuf.appearances.AppearanceFlagWriteOnce write_once = 11; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.write_once_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool liquidpool = 12; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.liquidpool_), _Internal::kHasBitsOffset + 23, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool unpass = 13; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.unpass_), _Internal::kHasBitsOffset + 24, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool unmove = 14; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.unmove_), _Internal::kHasBitsOffset + 25, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool unsight = 15; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.unsight_), _Internal::kHasBitsOffset + 26, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool avoid = 16; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.avoid_), _Internal::kHasBitsOffset + 27, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool no_movement_animation = 17; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.no_movement_animation_), _Internal::kHasBitsOffset + 28, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool take = 18; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.take_), _Internal::kHasBitsOffset + 29, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool liquidcontainer = 19; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.liquidcontainer_), _Internal::kHasBitsOffset + 30, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool hang = 20; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.hang_), _Internal::kHasBitsOffset + 31, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .otclient.protobuf.appearances.AppearanceFlagHook hook = 21; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.hook_), _Internal::kHasBitsOffset + 3, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool rotate = 22; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.rotate_), _Internal::kHasBitsOffset + 32, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .otclient.protobuf.appearances.AppearanceFlagLight light = 23; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.light_), _Internal::kHasBitsOffset + 4, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool dont_hide = 24; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.dont_hide_), _Internal::kHasBitsOffset + 33, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool translucent = 25; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.translucent_), _Internal::kHasBitsOffset + 34, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .otclient.protobuf.appearances.AppearanceFlagShift shift = 26; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.shift_), _Internal::kHasBitsOffset + 5, 5, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .otclient.protobuf.appearances.AppearanceFlagHeight height = 27; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.height_), _Internal::kHasBitsOffset + 6, 6, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool lying_object = 28; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.lying_object_), _Internal::kHasBitsOffset + 35, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool animate_always = 29; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.animate_always_), _Internal::kHasBitsOffset + 36, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .otclient.protobuf.appearances.AppearanceFlagAutomap automap = 30; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.automap_), _Internal::kHasBitsOffset + 7, 7, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .otclient.protobuf.appearances.AppearanceFlagLenshelp lenshelp = 31; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.lenshelp_), _Internal::kHasBitsOffset + 8, 8, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool fullbank = 32; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.fullbank_), _Internal::kHasBitsOffset + 37, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool ignore_look = 33; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.ignore_look_), _Internal::kHasBitsOffset + 38, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .otclient.protobuf.appearances.AppearanceFlagClothes clothes = 34; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.clothes_), _Internal::kHasBitsOffset + 9, 9, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .otclient.protobuf.appearances.AppearanceFlagDefaultAction default_action = 35; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.default_action_), _Internal::kHasBitsOffset + 10, 10, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .otclient.protobuf.appearances.AppearanceFlagMarket market = 36; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.market_), _Internal::kHasBitsOffset + 11, 11, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool wrap = 37; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.wrap_), _Internal::kHasBitsOffset + 39, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool unwrap = 38; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.unwrap_), _Internal::kHasBitsOffset + 40, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool topeffect = 39; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.topeffect_), _Internal::kHasBitsOffset + 41, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // repeated .otclient.protobuf.appearances.AppearanceFlagNPC npcsaledata = 40; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.npcsaledata_), -1, 12, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .otclient.protobuf.appearances.AppearanceFlagChangedToExpire changedtoexpire = 41; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.changedtoexpire_), _Internal::kHasBitsOffset + 12, 13, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool corpse = 42; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.corpse_), _Internal::kHasBitsOffset + 42, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool player_corpse = 43; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.player_corpse_), _Internal::kHasBitsOffset + 43, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .otclient.protobuf.appearances.AppearanceFlagCyclopedia cyclopediaitem = 44; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.cyclopediaitem_), _Internal::kHasBitsOffset + 13, 14, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool ammo = 45; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.ammo_), _Internal::kHasBitsOffset + 44, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool show_off_socket = 46; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.show_off_socket_), _Internal::kHasBitsOffset + 45, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool reportable = 47; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.reportable_), _Internal::kHasBitsOffset + 46, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .otclient.protobuf.appearances.AppearanceFlagUpgradeClassification upgradeclassification = 48; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.upgradeclassification_), _Internal::kHasBitsOffset + 14, 15, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool reverse_addons_east = 49; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.reverse_addons_east_), _Internal::kHasBitsOffset + 47, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool reverse_addons_west = 50; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.reverse_addons_west_), _Internal::kHasBitsOffset + 48, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool reverse_addons_south = 51; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.reverse_addons_south_), _Internal::kHasBitsOffset + 49, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool reverse_addons_north = 52; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.reverse_addons_north_), _Internal::kHasBitsOffset + 50, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool wearout = 53; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.wearout_), _Internal::kHasBitsOffset + 51, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool clockexpire = 54; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.clockexpire_), _Internal::kHasBitsOffset + 52, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool expire = 55; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.expire_), _Internal::kHasBitsOffset + 53, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool expirestop = 56; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.expirestop_), _Internal::kHasBitsOffset + 54, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool deco_kit = 57; - {PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.deco_kit_), _Internal::kHasBitsOffset + 55, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagBank>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagWrite>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagWriteOnce>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagHook>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagLight>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagShift>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagHeight>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagAutomap>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagLenshelp>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagClothes>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagDefaultAction>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagMarket>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagNPC>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagChangedToExpire>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagCyclopedia>()}, - {::_pbi::TcParser::GetTable<::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification>()}, - }}, {{ - }}, -}; - -::uint8_t* AppearanceFlags::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlags) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.AppearanceFlagBank bank = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::bank(this), - _Internal::bank(this).GetCachedSize(), target, stream); - } - - // optional bool clip = 2; - if (cached_has_bits & 0x00008000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_clip(), target); - } - - // optional bool bottom = 3; - if (cached_has_bits & 0x00010000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_bottom(), target); - } - - // optional bool top = 4; - if (cached_has_bits & 0x00020000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_top(), target); - } - - // optional bool container = 5; - if (cached_has_bits & 0x00040000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_container(), target); - } - - // optional bool cumulative = 6; - if (cached_has_bits & 0x00080000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this->_internal_cumulative(), target); - } - - // optional bool usable = 7; - if (cached_has_bits & 0x00100000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 7, this->_internal_usable(), target); - } - - // optional bool forceuse = 8; - if (cached_has_bits & 0x00200000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this->_internal_forceuse(), target); - } - - // optional bool multiuse = 9; - if (cached_has_bits & 0x00400000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 9, this->_internal_multiuse(), target); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagWrite write = 10; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, _Internal::write(this), - _Internal::write(this).GetCachedSize(), target, stream); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagWriteOnce write_once = 11; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, _Internal::write_once(this), - _Internal::write_once(this).GetCachedSize(), target, stream); - } - - // optional bool liquidpool = 12; - if (cached_has_bits & 0x00800000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 12, this->_internal_liquidpool(), target); - } - - // optional bool unpass = 13; - if (cached_has_bits & 0x01000000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 13, this->_internal_unpass(), target); - } - - // optional bool unmove = 14; - if (cached_has_bits & 0x02000000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 14, this->_internal_unmove(), target); - } - - // optional bool unsight = 15; - if (cached_has_bits & 0x04000000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 15, this->_internal_unsight(), target); - } - - // optional bool avoid = 16; - if (cached_has_bits & 0x08000000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 16, this->_internal_avoid(), target); - } - - // optional bool no_movement_animation = 17; - if (cached_has_bits & 0x10000000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 17, this->_internal_no_movement_animation(), target); - } - - // optional bool take = 18; - if (cached_has_bits & 0x20000000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 18, this->_internal_take(), target); - } - - // optional bool liquidcontainer = 19; - if (cached_has_bits & 0x40000000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 19, this->_internal_liquidcontainer(), target); - } - - // optional bool hang = 20; - if (cached_has_bits & 0x80000000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 20, this->_internal_hang(), target); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagHook hook = 21; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 21, _Internal::hook(this), - _Internal::hook(this).GetCachedSize(), target, stream); - } - - cached_has_bits = _impl_._has_bits_[1]; - // optional bool rotate = 22; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 22, this->_internal_rotate(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.AppearanceFlagLight light = 23; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 23, _Internal::light(this), - _Internal::light(this).GetCachedSize(), target, stream); - } - - cached_has_bits = _impl_._has_bits_[1]; - // optional bool dont_hide = 24; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 24, this->_internal_dont_hide(), target); - } - - // optional bool translucent = 25; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 25, this->_internal_translucent(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.AppearanceFlagShift shift = 26; - if (cached_has_bits & 0x00000020u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 26, _Internal::shift(this), - _Internal::shift(this).GetCachedSize(), target, stream); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagHeight height = 27; - if (cached_has_bits & 0x00000040u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 27, _Internal::height(this), - _Internal::height(this).GetCachedSize(), target, stream); - } - - cached_has_bits = _impl_._has_bits_[1]; - // optional bool lying_object = 28; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 28, this->_internal_lying_object(), target); - } - - // optional bool animate_always = 29; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 29, this->_internal_animate_always(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.AppearanceFlagAutomap automap = 30; - if (cached_has_bits & 0x00000080u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 30, _Internal::automap(this), - _Internal::automap(this).GetCachedSize(), target, stream); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagLenshelp lenshelp = 31; - if (cached_has_bits & 0x00000100u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 31, _Internal::lenshelp(this), - _Internal::lenshelp(this).GetCachedSize(), target, stream); - } - - cached_has_bits = _impl_._has_bits_[1]; - // optional bool fullbank = 32; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 32, this->_internal_fullbank(), target); - } - - // optional bool ignore_look = 33; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 33, this->_internal_ignore_look(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.AppearanceFlagClothes clothes = 34; - if (cached_has_bits & 0x00000200u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 34, _Internal::clothes(this), - _Internal::clothes(this).GetCachedSize(), target, stream); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagDefaultAction default_action = 35; - if (cached_has_bits & 0x00000400u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 35, _Internal::default_action(this), - _Internal::default_action(this).GetCachedSize(), target, stream); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagMarket market = 36; - if (cached_has_bits & 0x00000800u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 36, _Internal::market(this), - _Internal::market(this).GetCachedSize(), target, stream); - } - - cached_has_bits = _impl_._has_bits_[1]; - // optional bool wrap = 37; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 37, this->_internal_wrap(), target); - } - - // optional bool unwrap = 38; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 38, this->_internal_unwrap(), target); - } - - // optional bool topeffect = 39; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 39, this->_internal_topeffect(), target); - } - - // repeated .otclient.protobuf.appearances.AppearanceFlagNPC npcsaledata = 40; - for (unsigned i = 0, - n = static_cast(this->_internal_npcsaledata_size()); i < n; i++) { - const auto& repfield = this->_internal_npcsaledata().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(40, repfield, repfield.GetCachedSize(), target, stream); - } - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.AppearanceFlagChangedToExpire changedtoexpire = 41; - if (cached_has_bits & 0x00001000u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 41, _Internal::changedtoexpire(this), - _Internal::changedtoexpire(this).GetCachedSize(), target, stream); - } - - cached_has_bits = _impl_._has_bits_[1]; - // optional bool corpse = 42; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 42, this->_internal_corpse(), target); - } - - // optional bool player_corpse = 43; - if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 43, this->_internal_player_corpse(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.AppearanceFlagCyclopedia cyclopediaitem = 44; - if (cached_has_bits & 0x00002000u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 44, _Internal::cyclopediaitem(this), - _Internal::cyclopediaitem(this).GetCachedSize(), target, stream); - } - - cached_has_bits = _impl_._has_bits_[1]; - // optional bool ammo = 45; - if (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 45, this->_internal_ammo(), target); - } - - // optional bool show_off_socket = 46; - if (cached_has_bits & 0x00002000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 46, this->_internal_show_off_socket(), target); - } - - // optional bool reportable = 47; - if (cached_has_bits & 0x00004000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 47, this->_internal_reportable(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.AppearanceFlagUpgradeClassification upgradeclassification = 48; - if (cached_has_bits & 0x00004000u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 48, _Internal::upgradeclassification(this), - _Internal::upgradeclassification(this).GetCachedSize(), target, stream); - } - - cached_has_bits = _impl_._has_bits_[1]; - // optional bool reverse_addons_east = 49; - if (cached_has_bits & 0x00008000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 49, this->_internal_reverse_addons_east(), target); - } - - // optional bool reverse_addons_west = 50; - if (cached_has_bits & 0x00010000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 50, this->_internal_reverse_addons_west(), target); - } - - // optional bool reverse_addons_south = 51; - if (cached_has_bits & 0x00020000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 51, this->_internal_reverse_addons_south(), target); - } - - // optional bool reverse_addons_north = 52; - if (cached_has_bits & 0x00040000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 52, this->_internal_reverse_addons_north(), target); - } - - // optional bool wearout = 53; - if (cached_has_bits & 0x00080000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 53, this->_internal_wearout(), target); - } - - // optional bool clockexpire = 54; - if (cached_has_bits & 0x00100000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 54, this->_internal_clockexpire(), target); - } - - // optional bool expire = 55; - if (cached_has_bits & 0x00200000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 55, this->_internal_expire(), target); - } - - // optional bool expirestop = 56; - if (cached_has_bits & 0x00400000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 56, this->_internal_expirestop(), target); - } - - // optional bool deco_kit = 57; - if (cached_has_bits & 0x00800000u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 57, this->_internal_deco_kit(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlags) - return target; -} - -::size_t AppearanceFlags::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlags) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .otclient.protobuf.appearances.AppearanceFlagNPC npcsaledata = 40; - total_size += 2UL * this->_internal_npcsaledata_size(); - for (const auto& msg : this->_internal_npcsaledata()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional .otclient.protobuf.appearances.AppearanceFlagBank bank = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.bank_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagWrite write = 10; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.write_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagWriteOnce write_once = 11; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.write_once_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagHook hook = 21; - if (cached_has_bits & 0x00000008u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.hook_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagLight light = 23; - if (cached_has_bits & 0x00000010u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.light_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagShift shift = 26; - if (cached_has_bits & 0x00000020u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.shift_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagHeight height = 27; - if (cached_has_bits & 0x00000040u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.height_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagAutomap automap = 30; - if (cached_has_bits & 0x00000080u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.automap_); - } - - } - if (cached_has_bits & 0x0000ff00u) { - // optional .otclient.protobuf.appearances.AppearanceFlagLenshelp lenshelp = 31; - if (cached_has_bits & 0x00000100u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.lenshelp_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagClothes clothes = 34; - if (cached_has_bits & 0x00000200u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.clothes_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagDefaultAction default_action = 35; - if (cached_has_bits & 0x00000400u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.default_action_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagMarket market = 36; - if (cached_has_bits & 0x00000800u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.market_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagChangedToExpire changedtoexpire = 41; - if (cached_has_bits & 0x00001000u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.changedtoexpire_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagCyclopedia cyclopediaitem = 44; - if (cached_has_bits & 0x00002000u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.cyclopediaitem_); - } - - // optional .otclient.protobuf.appearances.AppearanceFlagUpgradeClassification upgradeclassification = 48; - if (cached_has_bits & 0x00004000u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.upgradeclassification_); - } - - // optional bool clip = 2; - if (cached_has_bits & 0x00008000u) { - total_size += 2; - } - - } - if (cached_has_bits & 0x00ff0000u) { - // optional bool bottom = 3; - if (cached_has_bits & 0x00010000u) { - total_size += 2; - } - - // optional bool top = 4; - if (cached_has_bits & 0x00020000u) { - total_size += 2; - } - - // optional bool container = 5; - if (cached_has_bits & 0x00040000u) { - total_size += 2; - } - - // optional bool cumulative = 6; - if (cached_has_bits & 0x00080000u) { - total_size += 2; - } - - // optional bool usable = 7; - if (cached_has_bits & 0x00100000u) { - total_size += 2; - } - - // optional bool forceuse = 8; - if (cached_has_bits & 0x00200000u) { - total_size += 2; - } - - // optional bool multiuse = 9; - if (cached_has_bits & 0x00400000u) { - total_size += 2; - } - - // optional bool liquidpool = 12; - if (cached_has_bits & 0x00800000u) { - total_size += 2; - } - - } - if (cached_has_bits & 0xff000000u) { - // optional bool unpass = 13; - if (cached_has_bits & 0x01000000u) { - total_size += 2; - } - - // optional bool unmove = 14; - if (cached_has_bits & 0x02000000u) { - total_size += 2; - } - - // optional bool unsight = 15; - if (cached_has_bits & 0x04000000u) { - total_size += 2; - } - - // optional bool avoid = 16; - if (cached_has_bits & 0x08000000u) { - total_size += 3; - } - - // optional bool no_movement_animation = 17; - if (cached_has_bits & 0x10000000u) { - total_size += 3; - } - - // optional bool take = 18; - if (cached_has_bits & 0x20000000u) { - total_size += 3; - } - - // optional bool liquidcontainer = 19; - if (cached_has_bits & 0x40000000u) { - total_size += 3; - } - - // optional bool hang = 20; - if (cached_has_bits & 0x80000000u) { - total_size += 3; - } - - } - cached_has_bits = _impl_._has_bits_[1]; - if (cached_has_bits & 0x000000ffu) { - // optional bool rotate = 22; - if (cached_has_bits & 0x00000001u) { - total_size += 3; - } - - // optional bool dont_hide = 24; - if (cached_has_bits & 0x00000002u) { - total_size += 3; - } - - // optional bool translucent = 25; - if (cached_has_bits & 0x00000004u) { - total_size += 3; - } - - // optional bool lying_object = 28; - if (cached_has_bits & 0x00000008u) { - total_size += 3; - } - - // optional bool animate_always = 29; - if (cached_has_bits & 0x00000010u) { - total_size += 3; - } - - // optional bool fullbank = 32; - if (cached_has_bits & 0x00000020u) { - total_size += 3; - } - - // optional bool ignore_look = 33; - if (cached_has_bits & 0x00000040u) { - total_size += 3; - } - - // optional bool wrap = 37; - if (cached_has_bits & 0x00000080u) { - total_size += 3; - } - - } - if (cached_has_bits & 0x0000ff00u) { - // optional bool unwrap = 38; - if (cached_has_bits & 0x00000100u) { - total_size += 3; - } - - // optional bool topeffect = 39; - if (cached_has_bits & 0x00000200u) { - total_size += 3; - } - - // optional bool corpse = 42; - if (cached_has_bits & 0x00000400u) { - total_size += 3; - } - - // optional bool player_corpse = 43; - if (cached_has_bits & 0x00000800u) { - total_size += 3; - } - - // optional bool ammo = 45; - if (cached_has_bits & 0x00001000u) { - total_size += 3; - } - - // optional bool show_off_socket = 46; - if (cached_has_bits & 0x00002000u) { - total_size += 3; - } - - // optional bool reportable = 47; - if (cached_has_bits & 0x00004000u) { - total_size += 3; - } - - // optional bool reverse_addons_east = 49; - if (cached_has_bits & 0x00008000u) { - total_size += 3; - } - - } - if (cached_has_bits & 0x00ff0000u) { - // optional bool reverse_addons_west = 50; - if (cached_has_bits & 0x00010000u) { - total_size += 3; - } - - // optional bool reverse_addons_south = 51; - if (cached_has_bits & 0x00020000u) { - total_size += 3; - } - - // optional bool reverse_addons_north = 52; - if (cached_has_bits & 0x00040000u) { - total_size += 3; - } - - // optional bool wearout = 53; - if (cached_has_bits & 0x00080000u) { - total_size += 3; - } - - // optional bool clockexpire = 54; - if (cached_has_bits & 0x00100000u) { - total_size += 3; - } - - // optional bool expire = 55; - if (cached_has_bits & 0x00200000u) { - total_size += 3; - } - - // optional bool expirestop = 56; - if (cached_has_bits & 0x00400000u) { - total_size += 3; - } - - // optional bool deco_kit = 57; - if (cached_has_bits & 0x00800000u) { - total_size += 3; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlags::_class_data_ = { - AppearanceFlags::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlags::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlags::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlags) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_npcsaledata()->MergeFrom( - from._internal_npcsaledata()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_bank()->::otclient::protobuf::appearances::AppearanceFlagBank::MergeFrom( - from._internal_bank()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_write()->::otclient::protobuf::appearances::AppearanceFlagWrite::MergeFrom( - from._internal_write()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_write_once()->::otclient::protobuf::appearances::AppearanceFlagWriteOnce::MergeFrom( - from._internal_write_once()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_hook()->::otclient::protobuf::appearances::AppearanceFlagHook::MergeFrom( - from._internal_hook()); - } - if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_light()->::otclient::protobuf::appearances::AppearanceFlagLight::MergeFrom( - from._internal_light()); - } - if (cached_has_bits & 0x00000020u) { - _this->_internal_mutable_shift()->::otclient::protobuf::appearances::AppearanceFlagShift::MergeFrom( - from._internal_shift()); - } - if (cached_has_bits & 0x00000040u) { - _this->_internal_mutable_height()->::otclient::protobuf::appearances::AppearanceFlagHeight::MergeFrom( - from._internal_height()); - } - if (cached_has_bits & 0x00000080u) { - _this->_internal_mutable_automap()->::otclient::protobuf::appearances::AppearanceFlagAutomap::MergeFrom( - from._internal_automap()); - } - } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - _this->_internal_mutable_lenshelp()->::otclient::protobuf::appearances::AppearanceFlagLenshelp::MergeFrom( - from._internal_lenshelp()); - } - if (cached_has_bits & 0x00000200u) { - _this->_internal_mutable_clothes()->::otclient::protobuf::appearances::AppearanceFlagClothes::MergeFrom( - from._internal_clothes()); - } - if (cached_has_bits & 0x00000400u) { - _this->_internal_mutable_default_action()->::otclient::protobuf::appearances::AppearanceFlagDefaultAction::MergeFrom( - from._internal_default_action()); - } - if (cached_has_bits & 0x00000800u) { - _this->_internal_mutable_market()->::otclient::protobuf::appearances::AppearanceFlagMarket::MergeFrom( - from._internal_market()); - } - if (cached_has_bits & 0x00001000u) { - _this->_internal_mutable_changedtoexpire()->::otclient::protobuf::appearances::AppearanceFlagChangedToExpire::MergeFrom( - from._internal_changedtoexpire()); - } - if (cached_has_bits & 0x00002000u) { - _this->_internal_mutable_cyclopediaitem()->::otclient::protobuf::appearances::AppearanceFlagCyclopedia::MergeFrom( - from._internal_cyclopediaitem()); - } - if (cached_has_bits & 0x00004000u) { - _this->_internal_mutable_upgradeclassification()->::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification::MergeFrom( - from._internal_upgradeclassification()); - } - if (cached_has_bits & 0x00008000u) { - _this->_impl_.clip_ = from._impl_.clip_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x00ff0000u) { - if (cached_has_bits & 0x00010000u) { - _this->_impl_.bottom_ = from._impl_.bottom_; - } - if (cached_has_bits & 0x00020000u) { - _this->_impl_.top_ = from._impl_.top_; - } - if (cached_has_bits & 0x00040000u) { - _this->_impl_.container_ = from._impl_.container_; - } - if (cached_has_bits & 0x00080000u) { - _this->_impl_.cumulative_ = from._impl_.cumulative_; - } - if (cached_has_bits & 0x00100000u) { - _this->_impl_.usable_ = from._impl_.usable_; - } - if (cached_has_bits & 0x00200000u) { - _this->_impl_.forceuse_ = from._impl_.forceuse_; - } - if (cached_has_bits & 0x00400000u) { - _this->_impl_.multiuse_ = from._impl_.multiuse_; - } - if (cached_has_bits & 0x00800000u) { - _this->_impl_.liquidpool_ = from._impl_.liquidpool_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0xff000000u) { - if (cached_has_bits & 0x01000000u) { - _this->_impl_.unpass_ = from._impl_.unpass_; - } - if (cached_has_bits & 0x02000000u) { - _this->_impl_.unmove_ = from._impl_.unmove_; - } - if (cached_has_bits & 0x04000000u) { - _this->_impl_.unsight_ = from._impl_.unsight_; - } - if (cached_has_bits & 0x08000000u) { - _this->_impl_.avoid_ = from._impl_.avoid_; - } - if (cached_has_bits & 0x10000000u) { - _this->_impl_.no_movement_animation_ = from._impl_.no_movement_animation_; - } - if (cached_has_bits & 0x20000000u) { - _this->_impl_.take_ = from._impl_.take_; - } - if (cached_has_bits & 0x40000000u) { - _this->_impl_.liquidcontainer_ = from._impl_.liquidcontainer_; - } - if (cached_has_bits & 0x80000000u) { - _this->_impl_.hang_ = from._impl_.hang_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - cached_has_bits = from._impl_._has_bits_[1]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.rotate_ = from._impl_.rotate_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.dont_hide_ = from._impl_.dont_hide_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.translucent_ = from._impl_.translucent_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.lying_object_ = from._impl_.lying_object_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.animate_always_ = from._impl_.animate_always_; - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.fullbank_ = from._impl_.fullbank_; - } - if (cached_has_bits & 0x00000040u) { - _this->_impl_.ignore_look_ = from._impl_.ignore_look_; - } - if (cached_has_bits & 0x00000080u) { - _this->_impl_.wrap_ = from._impl_.wrap_; - } - _this->_impl_._has_bits_[1] |= cached_has_bits; - } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - _this->_impl_.unwrap_ = from._impl_.unwrap_; - } - if (cached_has_bits & 0x00000200u) { - _this->_impl_.topeffect_ = from._impl_.topeffect_; - } - if (cached_has_bits & 0x00000400u) { - _this->_impl_.corpse_ = from._impl_.corpse_; - } - if (cached_has_bits & 0x00000800u) { - _this->_impl_.player_corpse_ = from._impl_.player_corpse_; - } - if (cached_has_bits & 0x00001000u) { - _this->_impl_.ammo_ = from._impl_.ammo_; - } - if (cached_has_bits & 0x00002000u) { - _this->_impl_.show_off_socket_ = from._impl_.show_off_socket_; - } - if (cached_has_bits & 0x00004000u) { - _this->_impl_.reportable_ = from._impl_.reportable_; - } - if (cached_has_bits & 0x00008000u) { - _this->_impl_.reverse_addons_east_ = from._impl_.reverse_addons_east_; - } - _this->_impl_._has_bits_[1] |= cached_has_bits; - } - if (cached_has_bits & 0x00ff0000u) { - if (cached_has_bits & 0x00010000u) { - _this->_impl_.reverse_addons_west_ = from._impl_.reverse_addons_west_; - } - if (cached_has_bits & 0x00020000u) { - _this->_impl_.reverse_addons_south_ = from._impl_.reverse_addons_south_; - } - if (cached_has_bits & 0x00040000u) { - _this->_impl_.reverse_addons_north_ = from._impl_.reverse_addons_north_; - } - if (cached_has_bits & 0x00080000u) { - _this->_impl_.wearout_ = from._impl_.wearout_; - } - if (cached_has_bits & 0x00100000u) { - _this->_impl_.clockexpire_ = from._impl_.clockexpire_; - } - if (cached_has_bits & 0x00200000u) { - _this->_impl_.expire_ = from._impl_.expire_; - } - if (cached_has_bits & 0x00400000u) { - _this->_impl_.expirestop_ = from._impl_.expirestop_; - } - if (cached_has_bits & 0x00800000u) { - _this->_impl_.deco_kit_ = from._impl_.deco_kit_; - } - _this->_impl_._has_bits_[1] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlags::CopyFrom(const AppearanceFlags& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlags) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlags::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlags::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlags::InternalSwap(AppearanceFlags* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]); - _impl_.npcsaledata_.InternalSwap(&other->_impl_.npcsaledata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.deco_kit_) - + sizeof(AppearanceFlags::_impl_.deco_kit_) - - PROTOBUF_FIELD_OFFSET(AppearanceFlags, _impl_.bank_)>( - reinterpret_cast(&_impl_.bank_), - reinterpret_cast(&other->_impl_.bank_)); -} - -::google::protobuf::Metadata AppearanceFlags::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[8]); -} -// =================================================================== - -class AppearanceFlagUpgradeClassification::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagUpgradeClassification, _impl_._has_bits_); - static void set_has_upgrade_classification(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagUpgradeClassification::AppearanceFlagUpgradeClassification(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification) -} -AppearanceFlagUpgradeClassification::AppearanceFlagUpgradeClassification( - ::google::protobuf::Arena* arena, const AppearanceFlagUpgradeClassification& from) - : AppearanceFlagUpgradeClassification(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagUpgradeClassification::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagUpgradeClassification::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.upgrade_classification_ = {}; -} -AppearanceFlagUpgradeClassification::~AppearanceFlagUpgradeClassification() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagUpgradeClassification::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagUpgradeClassification::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.upgrade_classification_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagUpgradeClassification::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AppearanceFlagUpgradeClassification::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagUpgradeClassification, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagUpgradeClassification_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 upgrade_classification = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagUpgradeClassification, _impl_.upgrade_classification_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagUpgradeClassification, _impl_.upgrade_classification_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 upgrade_classification = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagUpgradeClassification, _impl_.upgrade_classification_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagUpgradeClassification::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 upgrade_classification = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_upgrade_classification(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification) - return target; -} - -::size_t AppearanceFlagUpgradeClassification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional uint32 upgrade_classification = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_upgrade_classification()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagUpgradeClassification::_class_data_ = { - AppearanceFlagUpgradeClassification::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagUpgradeClassification::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagUpgradeClassification::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_upgrade_classification(from._internal_upgrade_classification()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagUpgradeClassification::CopyFrom(const AppearanceFlagUpgradeClassification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagUpgradeClassification::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagUpgradeClassification::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagUpgradeClassification::InternalSwap(AppearanceFlagUpgradeClassification* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.upgrade_classification_, other->_impl_.upgrade_classification_); -} - -::google::protobuf::Metadata AppearanceFlagUpgradeClassification::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[9]); -} -// =================================================================== - -class AppearanceFlagBank::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagBank, _impl_._has_bits_); - static void set_has_waypoints(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagBank::AppearanceFlagBank(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagBank) -} -AppearanceFlagBank::AppearanceFlagBank( - ::google::protobuf::Arena* arena, const AppearanceFlagBank& from) - : AppearanceFlagBank(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagBank::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagBank::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.waypoints_ = {}; -} -AppearanceFlagBank::~AppearanceFlagBank() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagBank) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagBank::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagBank::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagBank) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.waypoints_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagBank::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AppearanceFlagBank::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagBank, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagBank_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 waypoints = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagBank, _impl_.waypoints_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagBank, _impl_.waypoints_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 waypoints = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagBank, _impl_.waypoints_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagBank::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagBank) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 waypoints = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_waypoints(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagBank) - return target; -} - -::size_t AppearanceFlagBank::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagBank) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional uint32 waypoints = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_waypoints()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagBank::_class_data_ = { - AppearanceFlagBank::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagBank::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagBank::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagBank) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_waypoints(from._internal_waypoints()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagBank::CopyFrom(const AppearanceFlagBank& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagBank) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagBank::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagBank::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagBank::InternalSwap(AppearanceFlagBank* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.waypoints_, other->_impl_.waypoints_); -} - -::google::protobuf::Metadata AppearanceFlagBank::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[10]); -} -// =================================================================== - -class AppearanceFlagWrite::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagWrite, _impl_._has_bits_); - static void set_has_max_text_length(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagWrite::AppearanceFlagWrite(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagWrite) -} -AppearanceFlagWrite::AppearanceFlagWrite( - ::google::protobuf::Arena* arena, const AppearanceFlagWrite& from) - : AppearanceFlagWrite(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagWrite::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagWrite::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.max_text_length_ = {}; -} -AppearanceFlagWrite::~AppearanceFlagWrite() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagWrite) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagWrite::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagWrite::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagWrite) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.max_text_length_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagWrite::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AppearanceFlagWrite::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagWrite, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagWrite_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 max_text_length = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagWrite, _impl_.max_text_length_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagWrite, _impl_.max_text_length_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 max_text_length = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagWrite, _impl_.max_text_length_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagWrite::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagWrite) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 max_text_length = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_max_text_length(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagWrite) - return target; -} - -::size_t AppearanceFlagWrite::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagWrite) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional uint32 max_text_length = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_max_text_length()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagWrite::_class_data_ = { - AppearanceFlagWrite::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagWrite::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagWrite::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagWrite) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_max_text_length(from._internal_max_text_length()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagWrite::CopyFrom(const AppearanceFlagWrite& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagWrite) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagWrite::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagWrite::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagWrite::InternalSwap(AppearanceFlagWrite* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.max_text_length_, other->_impl_.max_text_length_); -} - -::google::protobuf::Metadata AppearanceFlagWrite::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[11]); -} -// =================================================================== - -class AppearanceFlagWriteOnce::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagWriteOnce, _impl_._has_bits_); - static void set_has_max_text_length_once(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagWriteOnce::AppearanceFlagWriteOnce(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagWriteOnce) -} -AppearanceFlagWriteOnce::AppearanceFlagWriteOnce( - ::google::protobuf::Arena* arena, const AppearanceFlagWriteOnce& from) - : AppearanceFlagWriteOnce(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagWriteOnce::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagWriteOnce::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.max_text_length_once_ = {}; -} -AppearanceFlagWriteOnce::~AppearanceFlagWriteOnce() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagWriteOnce) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagWriteOnce::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagWriteOnce::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagWriteOnce) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.max_text_length_once_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagWriteOnce::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AppearanceFlagWriteOnce::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagWriteOnce, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagWriteOnce_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 max_text_length_once = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagWriteOnce, _impl_.max_text_length_once_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagWriteOnce, _impl_.max_text_length_once_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 max_text_length_once = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagWriteOnce, _impl_.max_text_length_once_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagWriteOnce::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagWriteOnce) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 max_text_length_once = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_max_text_length_once(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagWriteOnce) - return target; -} - -::size_t AppearanceFlagWriteOnce::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagWriteOnce) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional uint32 max_text_length_once = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_max_text_length_once()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagWriteOnce::_class_data_ = { - AppearanceFlagWriteOnce::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagWriteOnce::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagWriteOnce::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagWriteOnce) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_max_text_length_once(from._internal_max_text_length_once()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagWriteOnce::CopyFrom(const AppearanceFlagWriteOnce& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagWriteOnce) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagWriteOnce::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagWriteOnce::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagWriteOnce::InternalSwap(AppearanceFlagWriteOnce* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.max_text_length_once_, other->_impl_.max_text_length_once_); -} - -::google::protobuf::Metadata AppearanceFlagWriteOnce::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[12]); -} -// =================================================================== - -class AppearanceFlagLight::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagLight, _impl_._has_bits_); - static void set_has_brightness(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_color(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -AppearanceFlagLight::AppearanceFlagLight(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagLight) -} -AppearanceFlagLight::AppearanceFlagLight( - ::google::protobuf::Arena* arena, const AppearanceFlagLight& from) - : AppearanceFlagLight(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagLight::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagLight::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, brightness_), - 0, - offsetof(Impl_, color_) - - offsetof(Impl_, brightness_) + - sizeof(Impl_::color_)); -} -AppearanceFlagLight::~AppearanceFlagLight() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagLight) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagLight::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagLight::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagLight) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&_impl_.brightness_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.color_) - - reinterpret_cast(&_impl_.brightness_)) + sizeof(_impl_.color_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagLight::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> AppearanceFlagLight::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagLight, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagLight_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 color = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagLight, _impl_.color_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagLight, _impl_.color_)}}, - // optional uint32 brightness = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagLight, _impl_.brightness_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagLight, _impl_.brightness_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 brightness = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagLight, _impl_.brightness_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 color = 2; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagLight, _impl_.color_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagLight::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagLight) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 brightness = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_brightness(), target); - } - - // optional uint32 color = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_color(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagLight) - return target; -} - -::size_t AppearanceFlagLight::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagLight) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional uint32 brightness = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_brightness()); - } - - // optional uint32 color = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_color()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagLight::_class_data_ = { - AppearanceFlagLight::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagLight::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagLight::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagLight) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.brightness_ = from._impl_.brightness_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.color_ = from._impl_.color_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagLight::CopyFrom(const AppearanceFlagLight& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagLight) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagLight::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagLight::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagLight::InternalSwap(AppearanceFlagLight* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AppearanceFlagLight, _impl_.color_) - + sizeof(AppearanceFlagLight::_impl_.color_) - - PROTOBUF_FIELD_OFFSET(AppearanceFlagLight, _impl_.brightness_)>( - reinterpret_cast(&_impl_.brightness_), - reinterpret_cast(&other->_impl_.brightness_)); -} - -::google::protobuf::Metadata AppearanceFlagLight::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[13]); -} -// =================================================================== - -class AppearanceFlagHeight::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagHeight, _impl_._has_bits_); - static void set_has_elevation(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagHeight::AppearanceFlagHeight(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagHeight) -} -AppearanceFlagHeight::AppearanceFlagHeight( - ::google::protobuf::Arena* arena, const AppearanceFlagHeight& from) - : AppearanceFlagHeight(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagHeight::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagHeight::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.elevation_ = {}; -} -AppearanceFlagHeight::~AppearanceFlagHeight() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagHeight) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagHeight::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagHeight::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagHeight) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.elevation_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagHeight::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AppearanceFlagHeight::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagHeight, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagHeight_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 elevation = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagHeight, _impl_.elevation_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagHeight, _impl_.elevation_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 elevation = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagHeight, _impl_.elevation_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagHeight::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagHeight) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 elevation = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_elevation(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagHeight) - return target; -} - -::size_t AppearanceFlagHeight::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagHeight) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional uint32 elevation = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_elevation()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagHeight::_class_data_ = { - AppearanceFlagHeight::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagHeight::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagHeight::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagHeight) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_elevation(from._internal_elevation()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagHeight::CopyFrom(const AppearanceFlagHeight& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagHeight) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagHeight::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagHeight::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagHeight::InternalSwap(AppearanceFlagHeight* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.elevation_, other->_impl_.elevation_); -} - -::google::protobuf::Metadata AppearanceFlagHeight::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[14]); -} -// =================================================================== - -class AppearanceFlagShift::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagShift, _impl_._has_bits_); - static void set_has_x(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_y(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -AppearanceFlagShift::AppearanceFlagShift(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagShift) -} -AppearanceFlagShift::AppearanceFlagShift( - ::google::protobuf::Arena* arena, const AppearanceFlagShift& from) - : AppearanceFlagShift(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagShift::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagShift::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, x_), - 0, - offsetof(Impl_, y_) - - offsetof(Impl_, x_) + - sizeof(Impl_::y_)); -} -AppearanceFlagShift::~AppearanceFlagShift() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagShift) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagShift::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagShift::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagShift) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&_impl_.x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.y_) - - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.y_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagShift::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> AppearanceFlagShift::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagShift, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagShift_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 y = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagShift, _impl_.y_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagShift, _impl_.y_)}}, - // optional uint32 x = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagShift, _impl_.x_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagShift, _impl_.x_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 x = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagShift, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 y = 2; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagShift, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagShift::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagShift) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 x = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_x(), target); - } - - // optional uint32 y = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_y(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagShift) - return target; -} - -::size_t AppearanceFlagShift::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagShift) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional uint32 x = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_x()); - } - - // optional uint32 y = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_y()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagShift::_class_data_ = { - AppearanceFlagShift::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagShift::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagShift::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagShift) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.x_ = from._impl_.x_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.y_ = from._impl_.y_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagShift::CopyFrom(const AppearanceFlagShift& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagShift) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagShift::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagShift::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagShift::InternalSwap(AppearanceFlagShift* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AppearanceFlagShift, _impl_.y_) - + sizeof(AppearanceFlagShift::_impl_.y_) - - PROTOBUF_FIELD_OFFSET(AppearanceFlagShift, _impl_.x_)>( - reinterpret_cast(&_impl_.x_), - reinterpret_cast(&other->_impl_.x_)); -} - -::google::protobuf::Metadata AppearanceFlagShift::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[15]); -} -// =================================================================== - -class AppearanceFlagClothes::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagClothes, _impl_._has_bits_); - static void set_has_slot(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagClothes::AppearanceFlagClothes(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagClothes) -} -AppearanceFlagClothes::AppearanceFlagClothes( - ::google::protobuf::Arena* arena, const AppearanceFlagClothes& from) - : AppearanceFlagClothes(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagClothes::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagClothes::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.slot_ = {}; -} -AppearanceFlagClothes::~AppearanceFlagClothes() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagClothes) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagClothes::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagClothes::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagClothes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.slot_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagClothes::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AppearanceFlagClothes::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagClothes, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagClothes_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 slot = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagClothes, _impl_.slot_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagClothes, _impl_.slot_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 slot = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagClothes, _impl_.slot_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagClothes::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagClothes) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 slot = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_slot(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagClothes) - return target; -} - -::size_t AppearanceFlagClothes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagClothes) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional uint32 slot = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_slot()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagClothes::_class_data_ = { - AppearanceFlagClothes::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagClothes::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagClothes::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagClothes) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_slot(from._internal_slot()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagClothes::CopyFrom(const AppearanceFlagClothes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagClothes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagClothes::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagClothes::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagClothes::InternalSwap(AppearanceFlagClothes* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.slot_, other->_impl_.slot_); -} - -::google::protobuf::Metadata AppearanceFlagClothes::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[16]); -} -// =================================================================== - -class AppearanceFlagDefaultAction::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagDefaultAction, _impl_._has_bits_); - static void set_has_action(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagDefaultAction::AppearanceFlagDefaultAction(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagDefaultAction) -} -AppearanceFlagDefaultAction::AppearanceFlagDefaultAction( - ::google::protobuf::Arena* arena, const AppearanceFlagDefaultAction& from) - : AppearanceFlagDefaultAction(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagDefaultAction::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagDefaultAction::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_ = {}; -} -AppearanceFlagDefaultAction::~AppearanceFlagDefaultAction() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagDefaultAction) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagDefaultAction::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagDefaultAction::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagDefaultAction) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.action_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagDefaultAction::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AppearanceFlagDefaultAction::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagDefaultAction, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AppearanceFlagDefaultAction_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional .otclient.protobuf.appearances.PLAYER_ACTION action = 1; - {::_pbi::TcParser::FastEr0S1, - {8, 0, 4, PROTOBUF_FIELD_OFFSET(AppearanceFlagDefaultAction, _impl_.action_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional .otclient.protobuf.appearances.PLAYER_ACTION action = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagDefaultAction, _impl_.action_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - }}, {{ - {0, 5}, - }}, {{ - }}, -}; - -::uint8_t* AppearanceFlagDefaultAction::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagDefaultAction) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.PLAYER_ACTION action = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_action(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagDefaultAction) - return target; -} - -::size_t AppearanceFlagDefaultAction::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagDefaultAction) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional .otclient.protobuf.appearances.PLAYER_ACTION action = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_action()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagDefaultAction::_class_data_ = { - AppearanceFlagDefaultAction::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagDefaultAction::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagDefaultAction::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagDefaultAction) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_action(from._internal_action()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagDefaultAction::CopyFrom(const AppearanceFlagDefaultAction& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagDefaultAction) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagDefaultAction::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagDefaultAction::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagDefaultAction::InternalSwap(AppearanceFlagDefaultAction* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_, other->_impl_.action_); -} - -::google::protobuf::Metadata AppearanceFlagDefaultAction::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[17]); -} -// =================================================================== - -class AppearanceFlagMarket::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_._has_bits_); - static void set_has_category(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_trade_as_object_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_show_as_object_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_minimum_level(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } -}; - -AppearanceFlagMarket::AppearanceFlagMarket(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagMarket) -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagMarket::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - restrict_to_profession_{visibility, arena, from.restrict_to_profession_}, - name_(arena, from.name_) {} - -AppearanceFlagMarket::AppearanceFlagMarket( - ::google::protobuf::Arena* arena, - const AppearanceFlagMarket& from) - : ::google::protobuf::Message(arena) { - AppearanceFlagMarket* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, trade_as_object_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, trade_as_object_id_), - offsetof(Impl_, category_) - - offsetof(Impl_, trade_as_object_id_) + - sizeof(Impl_::category_)); - - // @@protoc_insertion_point(copy_constructor:otclient.protobuf.appearances.AppearanceFlagMarket) -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagMarket::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - restrict_to_profession_{visibility, arena}, - name_(arena), - category_{static_cast< ::otclient::protobuf::appearances::ITEM_CATEGORY >(1)} {} - -inline void AppearanceFlagMarket::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, trade_as_object_id_), - 0, - offsetof(Impl_, minimum_level_) - - offsetof(Impl_, trade_as_object_id_) + - sizeof(Impl_::minimum_level_)); -} -AppearanceFlagMarket::~AppearanceFlagMarket() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagMarket) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagMarket::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagMarket::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagMarket) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.restrict_to_profession_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - _impl_.name_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x0000001eu) { - ::memset(&_impl_.trade_as_object_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.minimum_level_) - - reinterpret_cast(&_impl_.trade_as_object_id_)) + sizeof(_impl_.minimum_level_)); - _impl_.category_ = 1; - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagMarket::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 2, 63, 2> AppearanceFlagMarket::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AppearanceFlagMarket_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional .otclient.protobuf.appearances.ITEM_CATEGORY category = 1; - {::_pbi::TcParser::FastEr1S1, - {8, 4, 24, PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.category_)}}, - // optional uint32 trade_as_object_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagMarket, _impl_.trade_as_object_id_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.trade_as_object_id_)}}, - // optional uint32 show_as_object_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagMarket, _impl_.show_as_object_id_), 2>(), - {24, 2, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.show_as_object_id_)}}, - // optional string name = 4; - {::_pbi::TcParser::FastSS1, - {34, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.name_)}}, - // repeated .otclient.protobuf.appearances.PLAYER_PROFESSION restrict_to_profession = 5; - {::_pbi::TcParser::FastEvR1, - {40, 63, 1, PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.restrict_to_profession_)}}, - // optional uint32 minimum_level = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagMarket, _impl_.minimum_level_), 3>(), - {48, 3, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.minimum_level_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional .otclient.protobuf.appearances.ITEM_CATEGORY category = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.category_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - // optional uint32 trade_as_object_id = 2; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.trade_as_object_id_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 show_as_object_id = 3; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.show_as_object_id_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional string name = 4; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, - // repeated .otclient.protobuf.appearances.PLAYER_PROFESSION restrict_to_profession = 5; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.restrict_to_profession_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kEnum)}, - // optional uint32 minimum_level = 6; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.minimum_level_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, {{ - {1, 24}, - {::_pbi::FieldAuxEnumData{}, ::otclient::protobuf::appearances::PLAYER_PROFESSION_internal_data_}, - }}, {{ - "\62\0\0\0\4\0\0\0" - "otclient.protobuf.appearances.AppearanceFlagMarket" - "name" - }}, -}; - -::uint8_t* AppearanceFlagMarket::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagMarket) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.ITEM_CATEGORY category = 1; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_category(), target); - } - - // optional uint32 trade_as_object_id = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_trade_as_object_id(), target); - } - - // optional uint32 show_as_object_id = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_show_as_object_id(), target); - } - - // optional string name = 4; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, - "otclient.protobuf.appearances.AppearanceFlagMarket.name"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - // repeated .otclient.protobuf.appearances.PLAYER_PROFESSION restrict_to_profession = 5; - for (int i = 0, n = this->_internal_restrict_to_profession_size(); i < n; ++i) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, static_cast<::otclient::protobuf::appearances::PLAYER_PROFESSION>(this->_internal_restrict_to_profession().Get(i)), - target); - } - - // optional uint32 minimum_level = 6; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 6, this->_internal_minimum_level(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagMarket) - return target; -} - -::size_t AppearanceFlagMarket::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagMarket) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .otclient.protobuf.appearances.PLAYER_PROFESSION restrict_to_profession = 5; - { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_restrict_to_profession_size()); - - for (std::size_t i = 0; i < count; ++i) { - data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_restrict_to_profession().Get(static_cast(i))); - } - total_size += data_size; - total_size += std::size_t{1} * count; - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // optional string name = 4; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional uint32 trade_as_object_id = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_trade_as_object_id()); - } - - // optional uint32 show_as_object_id = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_show_as_object_id()); - } - - // optional uint32 minimum_level = 6; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_minimum_level()); - } - - // optional .otclient.protobuf.appearances.ITEM_CATEGORY category = 1; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_category()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagMarket::_class_data_ = { - AppearanceFlagMarket::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagMarket::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagMarket::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagMarket) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_restrict_to_profession()->MergeFrom(from._internal_restrict_to_profession()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_set_name(from._internal_name()); - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.trade_as_object_id_ = from._impl_.trade_as_object_id_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.show_as_object_id_ = from._impl_.show_as_object_id_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.minimum_level_ = from._impl_.minimum_level_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.category_ = from._impl_.category_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagMarket::CopyFrom(const AppearanceFlagMarket& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagMarket) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagMarket::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagMarket::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagMarket::InternalSwap(AppearanceFlagMarket* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.restrict_to_profession_.InternalSwap(&other->_impl_.restrict_to_profession_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.category_) - + sizeof(AppearanceFlagMarket::_impl_.category_) - - PROTOBUF_FIELD_OFFSET(AppearanceFlagMarket, _impl_.trade_as_object_id_)>( - reinterpret_cast(&_impl_.trade_as_object_id_), - reinterpret_cast(&other->_impl_.trade_as_object_id_)); -} - -::google::protobuf::Metadata AppearanceFlagMarket::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[18]); -} -// =================================================================== - -class AppearanceFlagNPC::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_location(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_sale_price(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_buy_price(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_currency_object_type_id(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_currency_quest_flag_display_name(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -AppearanceFlagNPC::AppearanceFlagNPC(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagNPC) -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagNPC::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - location_(arena, from.location_), - currency_quest_flag_display_name_(arena, from.currency_quest_flag_display_name_) {} - -AppearanceFlagNPC::AppearanceFlagNPC( - ::google::protobuf::Arena* arena, - const AppearanceFlagNPC& from) - : ::google::protobuf::Message(arena) { - AppearanceFlagNPC* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, sale_price_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, sale_price_), - offsetof(Impl_, currency_object_type_id_) - - offsetof(Impl_, sale_price_) + - sizeof(Impl_::currency_object_type_id_)); - - // @@protoc_insertion_point(copy_constructor:otclient.protobuf.appearances.AppearanceFlagNPC) -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagNPC::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - location_(arena), - currency_quest_flag_display_name_(arena) {} - -inline void AppearanceFlagNPC::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, sale_price_), - 0, - offsetof(Impl_, currency_object_type_id_) - - offsetof(Impl_, sale_price_) + - sizeof(Impl_::currency_object_type_id_)); -} -AppearanceFlagNPC::~AppearanceFlagNPC() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagNPC) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagNPC::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.location_.Destroy(); - _impl_.currency_quest_flag_display_name_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagNPC::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagNPC) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _impl_.name_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - _impl_.location_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - _impl_.currency_quest_flag_display_name_.ClearNonDefaultToEmpty(); - } - } - if (cached_has_bits & 0x00000038u) { - ::memset(&_impl_.sale_price_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.currency_object_type_id_) - - reinterpret_cast(&_impl_.sale_price_)) + sizeof(_impl_.currency_object_type_id_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagNPC::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 100, 2> AppearanceFlagNPC::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagNPC_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional string name = 1; - {::_pbi::TcParser::FastSS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.name_)}}, - // optional string location = 2; - {::_pbi::TcParser::FastSS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.location_)}}, - // optional uint32 sale_price = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagNPC, _impl_.sale_price_), 3>(), - {24, 3, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.sale_price_)}}, - // optional uint32 buy_price = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagNPC, _impl_.buy_price_), 4>(), - {32, 4, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.buy_price_)}}, - // optional uint32 currency_object_type_id = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagNPC, _impl_.currency_object_type_id_), 5>(), - {40, 5, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.currency_object_type_id_)}}, - // optional string currency_quest_flag_display_name = 6; - {::_pbi::TcParser::FastSS1, - {50, 2, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.currency_quest_flag_display_name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional string name = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, - // optional string location = 2; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.location_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, - // optional uint32 sale_price = 3; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.sale_price_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 buy_price = 4; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.buy_price_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 currency_object_type_id = 5; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.currency_object_type_id_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional string currency_quest_flag_display_name = 6; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.currency_quest_flag_display_name_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\57\4\10\0\0\0\40\0" - "otclient.protobuf.appearances.AppearanceFlagNPC" - "name" - "location" - "currency_quest_flag_display_name" - }}, -}; - -::uint8_t* AppearanceFlagNPC::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagNPC) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, - "otclient.protobuf.appearances.AppearanceFlagNPC.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // optional string location = 2; - if (cached_has_bits & 0x00000002u) { - const std::string& _s = this->_internal_location(); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, - "otclient.protobuf.appearances.AppearanceFlagNPC.location"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // optional uint32 sale_price = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_sale_price(), target); - } - - // optional uint32 buy_price = 4; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this->_internal_buy_price(), target); - } - - // optional uint32 currency_object_type_id = 5; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_currency_object_type_id(), target); - } - - // optional string currency_quest_flag_display_name = 6; - if (cached_has_bits & 0x00000004u) { - const std::string& _s = this->_internal_currency_quest_flag_display_name(); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, - "otclient.protobuf.appearances.AppearanceFlagNPC.currency_quest_flag_display_name"); - target = stream->WriteStringMaybeAliased(6, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagNPC) - return target; -} - -::size_t AppearanceFlagNPC::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagNPC) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional string location = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location()); - } - - // optional string currency_quest_flag_display_name = 6; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_currency_quest_flag_display_name()); - } - - // optional uint32 sale_price = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_sale_price()); - } - - // optional uint32 buy_price = 4; - if (cached_has_bits & 0x00000010u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_buy_price()); - } - - // optional uint32 currency_object_type_id = 5; - if (cached_has_bits & 0x00000020u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_currency_object_type_id()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagNPC::_class_data_ = { - AppearanceFlagNPC::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagNPC::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagNPC::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagNPC) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_set_name(from._internal_name()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_set_location(from._internal_location()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_set_currency_quest_flag_display_name(from._internal_currency_quest_flag_display_name()); - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.sale_price_ = from._impl_.sale_price_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.buy_price_ = from._impl_.buy_price_; - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.currency_object_type_id_ = from._impl_.currency_object_type_id_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagNPC::CopyFrom(const AppearanceFlagNPC& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagNPC) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagNPC::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagNPC::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagNPC::InternalSwap(AppearanceFlagNPC* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, &other->_impl_.location_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.currency_quest_flag_display_name_, &other->_impl_.currency_quest_flag_display_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.currency_object_type_id_) - + sizeof(AppearanceFlagNPC::_impl_.currency_object_type_id_) - - PROTOBUF_FIELD_OFFSET(AppearanceFlagNPC, _impl_.sale_price_)>( - reinterpret_cast(&_impl_.sale_price_), - reinterpret_cast(&other->_impl_.sale_price_)); -} - -::google::protobuf::Metadata AppearanceFlagNPC::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[19]); -} -// =================================================================== - -class AppearanceFlagAutomap::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagAutomap, _impl_._has_bits_); - static void set_has_color(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagAutomap::AppearanceFlagAutomap(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagAutomap) -} -AppearanceFlagAutomap::AppearanceFlagAutomap( - ::google::protobuf::Arena* arena, const AppearanceFlagAutomap& from) - : AppearanceFlagAutomap(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagAutomap::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagAutomap::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.color_ = {}; -} -AppearanceFlagAutomap::~AppearanceFlagAutomap() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagAutomap) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagAutomap::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagAutomap::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagAutomap) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.color_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagAutomap::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AppearanceFlagAutomap::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagAutomap, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagAutomap_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 color = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagAutomap, _impl_.color_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagAutomap, _impl_.color_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 color = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagAutomap, _impl_.color_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagAutomap::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagAutomap) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 color = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_color(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagAutomap) - return target; -} - -::size_t AppearanceFlagAutomap::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagAutomap) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional uint32 color = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_color()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagAutomap::_class_data_ = { - AppearanceFlagAutomap::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagAutomap::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagAutomap::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagAutomap) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_color(from._internal_color()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagAutomap::CopyFrom(const AppearanceFlagAutomap& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagAutomap) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagAutomap::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagAutomap::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagAutomap::InternalSwap(AppearanceFlagAutomap* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.color_, other->_impl_.color_); -} - -::google::protobuf::Metadata AppearanceFlagAutomap::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[20]); -} -// =================================================================== - -class AppearanceFlagHook::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagHook, _impl_._has_bits_); - static void set_has_south(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_east(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -AppearanceFlagHook::AppearanceFlagHook(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagHook) -} -AppearanceFlagHook::AppearanceFlagHook( - ::google::protobuf::Arena* arena, const AppearanceFlagHook& from) - : AppearanceFlagHook(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagHook::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - south_{static_cast< ::otclient::protobuf::appearances::HOOK_TYPE >(1)}, - east_{static_cast< ::otclient::protobuf::appearances::HOOK_TYPE >(1)} {} - -inline void AppearanceFlagHook::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -AppearanceFlagHook::~AppearanceFlagHook() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagHook) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagHook::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagHook::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagHook) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - _impl_.south_ = 1; - _impl_.east_ = 1; - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagHook::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> AppearanceFlagHook::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagHook, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AppearanceFlagHook_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional .otclient.protobuf.appearances.HOOK_TYPE east = 2; - {::_pbi::TcParser::FastEr1S1, - {16, 1, 2, PROTOBUF_FIELD_OFFSET(AppearanceFlagHook, _impl_.east_)}}, - // optional .otclient.protobuf.appearances.HOOK_TYPE south = 1; - {::_pbi::TcParser::FastEr1S1, - {8, 0, 2, PROTOBUF_FIELD_OFFSET(AppearanceFlagHook, _impl_.south_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional .otclient.protobuf.appearances.HOOK_TYPE south = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagHook, _impl_.south_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - // optional .otclient.protobuf.appearances.HOOK_TYPE east = 2; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagHook, _impl_.east_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - }}, {{ - {1, 2}, - {1, 2}, - }}, {{ - }}, -}; - -::uint8_t* AppearanceFlagHook::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagHook) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional .otclient.protobuf.appearances.HOOK_TYPE south = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_south(), target); - } - - // optional .otclient.protobuf.appearances.HOOK_TYPE east = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_east(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagHook) - return target; -} - -::size_t AppearanceFlagHook::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagHook) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional .otclient.protobuf.appearances.HOOK_TYPE south = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_south()); - } - - // optional .otclient.protobuf.appearances.HOOK_TYPE east = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_east()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagHook::_class_data_ = { - AppearanceFlagHook::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagHook::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagHook::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagHook) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.south_ = from._impl_.south_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.east_ = from._impl_.east_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagHook::CopyFrom(const AppearanceFlagHook& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagHook) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagHook::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagHook::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagHook::InternalSwap(AppearanceFlagHook* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AppearanceFlagHook, _impl_.east_) - + sizeof(AppearanceFlagHook::_impl_.east_) - - PROTOBUF_FIELD_OFFSET(AppearanceFlagHook, _impl_.south_)>( - reinterpret_cast(&_impl_.south_), - reinterpret_cast(&other->_impl_.south_)); -} - -::google::protobuf::Metadata AppearanceFlagHook::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[21]); -} -// =================================================================== - -class AppearanceFlagLenshelp::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagLenshelp, _impl_._has_bits_); - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagLenshelp::AppearanceFlagLenshelp(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagLenshelp) -} -AppearanceFlagLenshelp::AppearanceFlagLenshelp( - ::google::protobuf::Arena* arena, const AppearanceFlagLenshelp& from) - : AppearanceFlagLenshelp(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagLenshelp::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagLenshelp::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.id_ = {}; -} -AppearanceFlagLenshelp::~AppearanceFlagLenshelp() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagLenshelp) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagLenshelp::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagLenshelp::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagLenshelp) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagLenshelp::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AppearanceFlagLenshelp::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagLenshelp, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagLenshelp_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagLenshelp, _impl_.id_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagLenshelp, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 id = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagLenshelp, _impl_.id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagLenshelp::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagLenshelp) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagLenshelp) - return target; -} - -::size_t AppearanceFlagLenshelp::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagLenshelp) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional uint32 id = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagLenshelp::_class_data_ = { - AppearanceFlagLenshelp::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagLenshelp::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagLenshelp::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagLenshelp) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_id(from._internal_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagLenshelp::CopyFrom(const AppearanceFlagLenshelp& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagLenshelp) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagLenshelp::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagLenshelp::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagLenshelp::InternalSwap(AppearanceFlagLenshelp* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.id_, other->_impl_.id_); -} - -::google::protobuf::Metadata AppearanceFlagLenshelp::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[22]); -} -// =================================================================== - -class AppearanceFlagChangedToExpire::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagChangedToExpire, _impl_._has_bits_); - static void set_has_former_object_typeid(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagChangedToExpire::AppearanceFlagChangedToExpire(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagChangedToExpire) -} -AppearanceFlagChangedToExpire::AppearanceFlagChangedToExpire( - ::google::protobuf::Arena* arena, const AppearanceFlagChangedToExpire& from) - : AppearanceFlagChangedToExpire(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagChangedToExpire::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagChangedToExpire::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.former_object_typeid_ = {}; -} -AppearanceFlagChangedToExpire::~AppearanceFlagChangedToExpire() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagChangedToExpire) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagChangedToExpire::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagChangedToExpire::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagChangedToExpire) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.former_object_typeid_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagChangedToExpire::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AppearanceFlagChangedToExpire::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagChangedToExpire, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagChangedToExpire_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 former_object_typeid = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagChangedToExpire, _impl_.former_object_typeid_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagChangedToExpire, _impl_.former_object_typeid_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 former_object_typeid = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagChangedToExpire, _impl_.former_object_typeid_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagChangedToExpire::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagChangedToExpire) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 former_object_typeid = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_former_object_typeid(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagChangedToExpire) - return target; -} - -::size_t AppearanceFlagChangedToExpire::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagChangedToExpire) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional uint32 former_object_typeid = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_former_object_typeid()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagChangedToExpire::_class_data_ = { - AppearanceFlagChangedToExpire::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagChangedToExpire::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagChangedToExpire::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagChangedToExpire) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_former_object_typeid(from._internal_former_object_typeid()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagChangedToExpire::CopyFrom(const AppearanceFlagChangedToExpire& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagChangedToExpire) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagChangedToExpire::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagChangedToExpire::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagChangedToExpire::InternalSwap(AppearanceFlagChangedToExpire* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.former_object_typeid_, other->_impl_.former_object_typeid_); -} - -::google::protobuf::Metadata AppearanceFlagChangedToExpire::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[23]); -} -// =================================================================== - -class AppearanceFlagCyclopedia::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AppearanceFlagCyclopedia, _impl_._has_bits_); - static void set_has_cyclopedia_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -AppearanceFlagCyclopedia::AppearanceFlagCyclopedia(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.AppearanceFlagCyclopedia) -} -AppearanceFlagCyclopedia::AppearanceFlagCyclopedia( - ::google::protobuf::Arena* arena, const AppearanceFlagCyclopedia& from) - : AppearanceFlagCyclopedia(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE AppearanceFlagCyclopedia::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AppearanceFlagCyclopedia::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.cyclopedia_type_ = {}; -} -AppearanceFlagCyclopedia::~AppearanceFlagCyclopedia() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.AppearanceFlagCyclopedia) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AppearanceFlagCyclopedia::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AppearanceFlagCyclopedia::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.AppearanceFlagCyclopedia) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.cyclopedia_type_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppearanceFlagCyclopedia::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AppearanceFlagCyclopedia::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AppearanceFlagCyclopedia, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppearanceFlagCyclopedia_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional uint32 cyclopedia_type = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AppearanceFlagCyclopedia, _impl_.cyclopedia_type_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(AppearanceFlagCyclopedia, _impl_.cyclopedia_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 cyclopedia_type = 1; - {PROTOBUF_FIELD_OFFSET(AppearanceFlagCyclopedia, _impl_.cyclopedia_type_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AppearanceFlagCyclopedia::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.AppearanceFlagCyclopedia) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 cyclopedia_type = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_cyclopedia_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.AppearanceFlagCyclopedia) - return target; -} - -::size_t AppearanceFlagCyclopedia::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.AppearanceFlagCyclopedia) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional uint32 cyclopedia_type = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_cyclopedia_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AppearanceFlagCyclopedia::_class_data_ = { - AppearanceFlagCyclopedia::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AppearanceFlagCyclopedia::GetClassData() const { - return &_class_data_; -} - -void AppearanceFlagCyclopedia::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.AppearanceFlagCyclopedia) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_cyclopedia_type(from._internal_cyclopedia_type()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AppearanceFlagCyclopedia::CopyFrom(const AppearanceFlagCyclopedia& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.AppearanceFlagCyclopedia) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AppearanceFlagCyclopedia::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AppearanceFlagCyclopedia::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppearanceFlagCyclopedia::InternalSwap(AppearanceFlagCyclopedia* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.cyclopedia_type_, other->_impl_.cyclopedia_type_); -} - -::google::protobuf::Metadata AppearanceFlagCyclopedia::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[24]); -} -// =================================================================== - -class SpecialMeaningAppearanceIds::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_._has_bits_); - static void set_has_gold_coin_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_platinum_coin_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_crystal_coin_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_tibia_coin_id(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_stamped_letter_id(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_supply_stash_id(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } -}; - -SpecialMeaningAppearanceIds::SpecialMeaningAppearanceIds(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:otclient.protobuf.appearances.SpecialMeaningAppearanceIds) -} -SpecialMeaningAppearanceIds::SpecialMeaningAppearanceIds( - ::google::protobuf::Arena* arena, const SpecialMeaningAppearanceIds& from) - : SpecialMeaningAppearanceIds(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE SpecialMeaningAppearanceIds::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SpecialMeaningAppearanceIds::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, gold_coin_id_), - 0, - offsetof(Impl_, supply_stash_id_) - - offsetof(Impl_, gold_coin_id_) + - sizeof(Impl_::supply_stash_id_)); -} -SpecialMeaningAppearanceIds::~SpecialMeaningAppearanceIds() { - // @@protoc_insertion_point(destructor:otclient.protobuf.appearances.SpecialMeaningAppearanceIds) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SpecialMeaningAppearanceIds::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SpecialMeaningAppearanceIds::Clear() { -// @@protoc_insertion_point(message_clear_start:otclient.protobuf.appearances.SpecialMeaningAppearanceIds) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - ::memset(&_impl_.gold_coin_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.supply_stash_id_) - - reinterpret_cast(&_impl_.gold_coin_id_)) + sizeof(_impl_.supply_stash_id_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SpecialMeaningAppearanceIds::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 0, 2> SpecialMeaningAppearanceIds::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SpecialMeaningAppearanceIds_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional uint32 gold_coin_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpecialMeaningAppearanceIds, _impl_.gold_coin_id_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.gold_coin_id_)}}, - // optional uint32 platinum_coin_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpecialMeaningAppearanceIds, _impl_.platinum_coin_id_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.platinum_coin_id_)}}, - // optional uint32 crystal_coin_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpecialMeaningAppearanceIds, _impl_.crystal_coin_id_), 2>(), - {24, 2, 0, PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.crystal_coin_id_)}}, - // optional uint32 tibia_coin_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpecialMeaningAppearanceIds, _impl_.tibia_coin_id_), 3>(), - {32, 3, 0, PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.tibia_coin_id_)}}, - // optional uint32 stamped_letter_id = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpecialMeaningAppearanceIds, _impl_.stamped_letter_id_), 4>(), - {40, 4, 0, PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.stamped_letter_id_)}}, - // optional uint32 supply_stash_id = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SpecialMeaningAppearanceIds, _impl_.supply_stash_id_), 5>(), - {48, 5, 0, PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.supply_stash_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional uint32 gold_coin_id = 1; - {PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.gold_coin_id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 platinum_coin_id = 2; - {PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.platinum_coin_id_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 crystal_coin_id = 3; - {PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.crystal_coin_id_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 tibia_coin_id = 4; - {PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.tibia_coin_id_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 stamped_letter_id = 5; - {PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.stamped_letter_id_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 supply_stash_id = 6; - {PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.supply_stash_id_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* SpecialMeaningAppearanceIds::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:otclient.protobuf.appearances.SpecialMeaningAppearanceIds) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // optional uint32 gold_coin_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_gold_coin_id(), target); - } - - // optional uint32 platinum_coin_id = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_platinum_coin_id(), target); - } - - // optional uint32 crystal_coin_id = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_crystal_coin_id(), target); - } - - // optional uint32 tibia_coin_id = 4; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this->_internal_tibia_coin_id(), target); - } - - // optional uint32 stamped_letter_id = 5; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_stamped_letter_id(), target); - } - - // optional uint32 supply_stash_id = 6; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 6, this->_internal_supply_stash_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:otclient.protobuf.appearances.SpecialMeaningAppearanceIds) - return target; -} - -::size_t SpecialMeaningAppearanceIds::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:otclient.protobuf.appearances.SpecialMeaningAppearanceIds) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // optional uint32 gold_coin_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_gold_coin_id()); - } - - // optional uint32 platinum_coin_id = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_platinum_coin_id()); - } - - // optional uint32 crystal_coin_id = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_crystal_coin_id()); - } - - // optional uint32 tibia_coin_id = 4; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_tibia_coin_id()); - } - - // optional uint32 stamped_letter_id = 5; - if (cached_has_bits & 0x00000010u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_stamped_letter_id()); - } - - // optional uint32 supply_stash_id = 6; - if (cached_has_bits & 0x00000020u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_supply_stash_id()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SpecialMeaningAppearanceIds::_class_data_ = { - SpecialMeaningAppearanceIds::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SpecialMeaningAppearanceIds::GetClassData() const { - return &_class_data_; -} - -void SpecialMeaningAppearanceIds::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:otclient.protobuf.appearances.SpecialMeaningAppearanceIds) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.gold_coin_id_ = from._impl_.gold_coin_id_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.platinum_coin_id_ = from._impl_.platinum_coin_id_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.crystal_coin_id_ = from._impl_.crystal_coin_id_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.tibia_coin_id_ = from._impl_.tibia_coin_id_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.stamped_letter_id_ = from._impl_.stamped_letter_id_; - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.supply_stash_id_ = from._impl_.supply_stash_id_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SpecialMeaningAppearanceIds::CopyFrom(const SpecialMeaningAppearanceIds& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:otclient.protobuf.appearances.SpecialMeaningAppearanceIds) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SpecialMeaningAppearanceIds::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SpecialMeaningAppearanceIds::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SpecialMeaningAppearanceIds::InternalSwap(SpecialMeaningAppearanceIds* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.supply_stash_id_) - + sizeof(SpecialMeaningAppearanceIds::_impl_.supply_stash_id_) - - PROTOBUF_FIELD_OFFSET(SpecialMeaningAppearanceIds, _impl_.gold_coin_id_)>( - reinterpret_cast(&_impl_.gold_coin_id_), - reinterpret_cast(&other->_impl_.gold_coin_id_)); -} - -::google::protobuf::Metadata SpecialMeaningAppearanceIds::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_appearances_2eproto_getter, &descriptor_table_appearances_2eproto_once, - file_level_metadata_appearances_2eproto[25]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace appearances -} // namespace protobuf -} // namespace otclient -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" diff --git a/src/protobuf/appearances.pb.h b/src/protobuf/appearances.pb.h deleted file mode 100644 index 5de1c8cd8e..0000000000 --- a/src/protobuf/appearances.pb.h +++ /dev/null @@ -1,12031 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: appearances.proto -// Protobuf C++ Version: 4.25.1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_appearances_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_appearances_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_appearances_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_appearances_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_appearances_2eproto; -namespace otclient { -namespace protobuf { -namespace appearances { -class Appearance; -struct AppearanceDefaultTypeInternal; -extern AppearanceDefaultTypeInternal _Appearance_default_instance_; -class AppearanceFlagAutomap; -struct AppearanceFlagAutomapDefaultTypeInternal; -extern AppearanceFlagAutomapDefaultTypeInternal _AppearanceFlagAutomap_default_instance_; -class AppearanceFlagBank; -struct AppearanceFlagBankDefaultTypeInternal; -extern AppearanceFlagBankDefaultTypeInternal _AppearanceFlagBank_default_instance_; -class AppearanceFlagChangedToExpire; -struct AppearanceFlagChangedToExpireDefaultTypeInternal; -extern AppearanceFlagChangedToExpireDefaultTypeInternal _AppearanceFlagChangedToExpire_default_instance_; -class AppearanceFlagClothes; -struct AppearanceFlagClothesDefaultTypeInternal; -extern AppearanceFlagClothesDefaultTypeInternal _AppearanceFlagClothes_default_instance_; -class AppearanceFlagCyclopedia; -struct AppearanceFlagCyclopediaDefaultTypeInternal; -extern AppearanceFlagCyclopediaDefaultTypeInternal _AppearanceFlagCyclopedia_default_instance_; -class AppearanceFlagDefaultAction; -struct AppearanceFlagDefaultActionDefaultTypeInternal; -extern AppearanceFlagDefaultActionDefaultTypeInternal _AppearanceFlagDefaultAction_default_instance_; -class AppearanceFlagHeight; -struct AppearanceFlagHeightDefaultTypeInternal; -extern AppearanceFlagHeightDefaultTypeInternal _AppearanceFlagHeight_default_instance_; -class AppearanceFlagHook; -struct AppearanceFlagHookDefaultTypeInternal; -extern AppearanceFlagHookDefaultTypeInternal _AppearanceFlagHook_default_instance_; -class AppearanceFlagLenshelp; -struct AppearanceFlagLenshelpDefaultTypeInternal; -extern AppearanceFlagLenshelpDefaultTypeInternal _AppearanceFlagLenshelp_default_instance_; -class AppearanceFlagLight; -struct AppearanceFlagLightDefaultTypeInternal; -extern AppearanceFlagLightDefaultTypeInternal _AppearanceFlagLight_default_instance_; -class AppearanceFlagMarket; -struct AppearanceFlagMarketDefaultTypeInternal; -extern AppearanceFlagMarketDefaultTypeInternal _AppearanceFlagMarket_default_instance_; -class AppearanceFlagNPC; -struct AppearanceFlagNPCDefaultTypeInternal; -extern AppearanceFlagNPCDefaultTypeInternal _AppearanceFlagNPC_default_instance_; -class AppearanceFlagShift; -struct AppearanceFlagShiftDefaultTypeInternal; -extern AppearanceFlagShiftDefaultTypeInternal _AppearanceFlagShift_default_instance_; -class AppearanceFlagUpgradeClassification; -struct AppearanceFlagUpgradeClassificationDefaultTypeInternal; -extern AppearanceFlagUpgradeClassificationDefaultTypeInternal _AppearanceFlagUpgradeClassification_default_instance_; -class AppearanceFlagWrite; -struct AppearanceFlagWriteDefaultTypeInternal; -extern AppearanceFlagWriteDefaultTypeInternal _AppearanceFlagWrite_default_instance_; -class AppearanceFlagWriteOnce; -struct AppearanceFlagWriteOnceDefaultTypeInternal; -extern AppearanceFlagWriteOnceDefaultTypeInternal _AppearanceFlagWriteOnce_default_instance_; -class AppearanceFlags; -struct AppearanceFlagsDefaultTypeInternal; -extern AppearanceFlagsDefaultTypeInternal _AppearanceFlags_default_instance_; -class Appearances; -struct AppearancesDefaultTypeInternal; -extern AppearancesDefaultTypeInternal _Appearances_default_instance_; -class Box; -struct BoxDefaultTypeInternal; -extern BoxDefaultTypeInternal _Box_default_instance_; -class Coordinate; -struct CoordinateDefaultTypeInternal; -extern CoordinateDefaultTypeInternal _Coordinate_default_instance_; -class FrameGroup; -struct FrameGroupDefaultTypeInternal; -extern FrameGroupDefaultTypeInternal _FrameGroup_default_instance_; -class SpecialMeaningAppearanceIds; -struct SpecialMeaningAppearanceIdsDefaultTypeInternal; -extern SpecialMeaningAppearanceIdsDefaultTypeInternal _SpecialMeaningAppearanceIds_default_instance_; -class SpriteAnimation; -struct SpriteAnimationDefaultTypeInternal; -extern SpriteAnimationDefaultTypeInternal _SpriteAnimation_default_instance_; -class SpriteInfo; -struct SpriteInfoDefaultTypeInternal; -extern SpriteInfoDefaultTypeInternal _SpriteInfo_default_instance_; -class SpritePhase; -struct SpritePhaseDefaultTypeInternal; -extern SpritePhaseDefaultTypeInternal _SpritePhase_default_instance_; -} // namespace appearances -} // namespace protobuf -} // namespace otclient -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace otclient { -namespace protobuf { -namespace appearances { -enum PLAYER_ACTION : int { - PLAYER_ACTION_NONE = 0, - PLAYER_ACTION_LOOK = 1, - PLAYER_ACTION_USE = 2, - PLAYER_ACTION_OPEN = 3, - PLAYER_ACTION_AUTOWALK_HIGHLIGHT = 4, -}; - -bool PLAYER_ACTION_IsValid(int value); -extern const uint32_t PLAYER_ACTION_internal_data_[]; -constexpr PLAYER_ACTION PLAYER_ACTION_MIN = static_cast(0); -constexpr PLAYER_ACTION PLAYER_ACTION_MAX = static_cast(4); -constexpr int PLAYER_ACTION_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -PLAYER_ACTION_descriptor(); -template -const std::string& PLAYER_ACTION_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to PLAYER_ACTION_Name()."); - return PLAYER_ACTION_Name(static_cast(value)); -} -template <> -inline const std::string& PLAYER_ACTION_Name(PLAYER_ACTION value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool PLAYER_ACTION_Parse(absl::string_view name, PLAYER_ACTION* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PLAYER_ACTION_descriptor(), name, value); -} -enum ITEM_CATEGORY : int { - ITEM_CATEGORY_ARMORS = 1, - ITEM_CATEGORY_AMULETS = 2, - ITEM_CATEGORY_BOOTS = 3, - ITEM_CATEGORY_CONTAINERS = 4, - ITEM_CATEGORY_DECORATION = 5, - ITEM_CATEGORY_FOOD = 6, - ITEM_CATEGORY_HELMETS_HATS = 7, - ITEM_CATEGORY_LEGS = 8, - ITEM_CATEGORY_OTHERS = 9, - ITEM_CATEGORY_POTIONS = 10, - ITEM_CATEGORY_RINGS = 11, - ITEM_CATEGORY_RUNES = 12, - ITEM_CATEGORY_SHIELDS = 13, - ITEM_CATEGORY_TOOLS = 14, - ITEM_CATEGORY_VALUABLES = 15, - ITEM_CATEGORY_AMMUNITION = 16, - ITEM_CATEGORY_AXES = 17, - ITEM_CATEGORY_CLUBS = 18, - ITEM_CATEGORY_DISTANCE_WEAPONS = 19, - ITEM_CATEGORY_SWORDS = 20, - ITEM_CATEGORY_WANDS_RODS = 21, - ITEM_CATEGORY_PREMIUM_SCROLLS = 22, - ITEM_CATEGORY_TIBIA_COINS = 23, - ITEM_CATEGORY_CREATURE_PRODUCTS = 24, -}; - -bool ITEM_CATEGORY_IsValid(int value); -extern const uint32_t ITEM_CATEGORY_internal_data_[]; -constexpr ITEM_CATEGORY ITEM_CATEGORY_MIN = static_cast(1); -constexpr ITEM_CATEGORY ITEM_CATEGORY_MAX = static_cast(24); -constexpr int ITEM_CATEGORY_ARRAYSIZE = 24 + 1; -const ::google::protobuf::EnumDescriptor* -ITEM_CATEGORY_descriptor(); -template -const std::string& ITEM_CATEGORY_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to ITEM_CATEGORY_Name()."); - return ITEM_CATEGORY_Name(static_cast(value)); -} -template <> -inline const std::string& ITEM_CATEGORY_Name(ITEM_CATEGORY value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ITEM_CATEGORY_Parse(absl::string_view name, ITEM_CATEGORY* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ITEM_CATEGORY_descriptor(), name, value); -} -enum PLAYER_PROFESSION : int { - PLAYER_PROFESSION_ANY = -1, - PLAYER_PROFESSION_NONE = 0, - PLAYER_PROFESSION_KNIGHT = 1, - PLAYER_PROFESSION_PALADIN = 2, - PLAYER_PROFESSION_SORCERER = 3, - PLAYER_PROFESSION_DRUID = 4, - PLAYER_PROFESSION_PROMOTED = 10, -}; - -bool PLAYER_PROFESSION_IsValid(int value); -extern const uint32_t PLAYER_PROFESSION_internal_data_[]; -constexpr PLAYER_PROFESSION PLAYER_PROFESSION_MIN = static_cast(-1); -constexpr PLAYER_PROFESSION PLAYER_PROFESSION_MAX = static_cast(10); -constexpr int PLAYER_PROFESSION_ARRAYSIZE = 10 + 1; -const ::google::protobuf::EnumDescriptor* -PLAYER_PROFESSION_descriptor(); -template -const std::string& PLAYER_PROFESSION_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to PLAYER_PROFESSION_Name()."); - return PLAYER_PROFESSION_Name(static_cast(value)); -} -template <> -inline const std::string& PLAYER_PROFESSION_Name(PLAYER_PROFESSION value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool PLAYER_PROFESSION_Parse(absl::string_view name, PLAYER_PROFESSION* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PLAYER_PROFESSION_descriptor(), name, value); -} -enum ANIMATION_LOOP_TYPE : int { - ANIMATION_LOOP_TYPE_PINGPONG = -1, - ANIMATION_LOOP_TYPE_INFINITE = 0, - ANIMATION_LOOP_TYPE_COUNTED = 1, -}; - -bool ANIMATION_LOOP_TYPE_IsValid(int value); -extern const uint32_t ANIMATION_LOOP_TYPE_internal_data_[]; -constexpr ANIMATION_LOOP_TYPE ANIMATION_LOOP_TYPE_MIN = static_cast(-1); -constexpr ANIMATION_LOOP_TYPE ANIMATION_LOOP_TYPE_MAX = static_cast(1); -constexpr int ANIMATION_LOOP_TYPE_ARRAYSIZE = 1 + 1; -const ::google::protobuf::EnumDescriptor* -ANIMATION_LOOP_TYPE_descriptor(); -template -const std::string& ANIMATION_LOOP_TYPE_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to ANIMATION_LOOP_TYPE_Name()."); - return ANIMATION_LOOP_TYPE_Name(static_cast(value)); -} -template <> -inline const std::string& ANIMATION_LOOP_TYPE_Name(ANIMATION_LOOP_TYPE value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ANIMATION_LOOP_TYPE_Parse(absl::string_view name, ANIMATION_LOOP_TYPE* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ANIMATION_LOOP_TYPE_descriptor(), name, value); -} -enum HOOK_TYPE : int { - HOOK_TYPE_SOUTH = 1, - HOOK_TYPE_EAST = 2, -}; - -bool HOOK_TYPE_IsValid(int value); -extern const uint32_t HOOK_TYPE_internal_data_[]; -constexpr HOOK_TYPE HOOK_TYPE_MIN = static_cast(1); -constexpr HOOK_TYPE HOOK_TYPE_MAX = static_cast(2); -constexpr int HOOK_TYPE_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -HOOK_TYPE_descriptor(); -template -const std::string& HOOK_TYPE_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to HOOK_TYPE_Name()."); - return HOOK_TYPE_Name(static_cast(value)); -} -template <> -inline const std::string& HOOK_TYPE_Name(HOOK_TYPE value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool HOOK_TYPE_Parse(absl::string_view name, HOOK_TYPE* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HOOK_TYPE_descriptor(), name, value); -} -enum FIXED_FRAME_GROUP : int { - FIXED_FRAME_GROUP_OUTFIT_IDLE = 0, - FIXED_FRAME_GROUP_OUTFIT_MOVING = 1, - FIXED_FRAME_GROUP_OBJECT_INITIAL = 2, -}; - -bool FIXED_FRAME_GROUP_IsValid(int value); -extern const uint32_t FIXED_FRAME_GROUP_internal_data_[]; -constexpr FIXED_FRAME_GROUP FIXED_FRAME_GROUP_MIN = static_cast(0); -constexpr FIXED_FRAME_GROUP FIXED_FRAME_GROUP_MAX = static_cast(2); -constexpr int FIXED_FRAME_GROUP_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -FIXED_FRAME_GROUP_descriptor(); -template -const std::string& FIXED_FRAME_GROUP_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to FIXED_FRAME_GROUP_Name()."); - return FIXED_FRAME_GROUP_Name(static_cast(value)); -} -template <> -inline const std::string& FIXED_FRAME_GROUP_Name(FIXED_FRAME_GROUP value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool FIXED_FRAME_GROUP_Parse(absl::string_view name, FIXED_FRAME_GROUP* value) { - return ::google::protobuf::internal::ParseNamedEnum( - FIXED_FRAME_GROUP_descriptor(), name, value); -} - -// =================================================================== - - -// ------------------------------------------------------------------- - -class SpritePhase final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.SpritePhase) */ { - public: - inline SpritePhase() : SpritePhase(nullptr) {} - ~SpritePhase() override; - template - explicit PROTOBUF_CONSTEXPR SpritePhase(::google::protobuf::internal::ConstantInitialized); - - inline SpritePhase(const SpritePhase& from) - : SpritePhase(nullptr, from) {} - SpritePhase(SpritePhase&& from) noexcept - : SpritePhase() { - *this = ::std::move(from); - } - - inline SpritePhase& operator=(const SpritePhase& from) { - CopyFrom(from); - return *this; - } - inline SpritePhase& operator=(SpritePhase&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SpritePhase& default_instance() { - return *internal_default_instance(); - } - static inline const SpritePhase* internal_default_instance() { - return reinterpret_cast( - &_SpritePhase_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(SpritePhase& a, SpritePhase& b) { - a.Swap(&b); - } - inline void Swap(SpritePhase* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SpritePhase* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SpritePhase* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SpritePhase& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SpritePhase& from) { - SpritePhase::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SpritePhase* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.SpritePhase"; - } - protected: - explicit SpritePhase(::google::protobuf::Arena* arena); - SpritePhase(::google::protobuf::Arena* arena, const SpritePhase& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDurationMinFieldNumber = 1, - kDurationMaxFieldNumber = 2, - }; - // optional uint32 duration_min = 1; - bool has_duration_min() const; - void clear_duration_min() ; - ::uint32_t duration_min() const; - void set_duration_min(::uint32_t value); - - private: - ::uint32_t _internal_duration_min() const; - void _internal_set_duration_min(::uint32_t value); - - public: - // optional uint32 duration_max = 2; - bool has_duration_max() const; - void clear_duration_max() ; - ::uint32_t duration_max() const; - void set_duration_max(::uint32_t value); - - private: - ::uint32_t _internal_duration_max() const; - void _internal_set_duration_max(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.SpritePhase) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t duration_min_; - ::uint32_t duration_max_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class SpecialMeaningAppearanceIds final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.SpecialMeaningAppearanceIds) */ { - public: - inline SpecialMeaningAppearanceIds() : SpecialMeaningAppearanceIds(nullptr) {} - ~SpecialMeaningAppearanceIds() override; - template - explicit PROTOBUF_CONSTEXPR SpecialMeaningAppearanceIds(::google::protobuf::internal::ConstantInitialized); - - inline SpecialMeaningAppearanceIds(const SpecialMeaningAppearanceIds& from) - : SpecialMeaningAppearanceIds(nullptr, from) {} - SpecialMeaningAppearanceIds(SpecialMeaningAppearanceIds&& from) noexcept - : SpecialMeaningAppearanceIds() { - *this = ::std::move(from); - } - - inline SpecialMeaningAppearanceIds& operator=(const SpecialMeaningAppearanceIds& from) { - CopyFrom(from); - return *this; - } - inline SpecialMeaningAppearanceIds& operator=(SpecialMeaningAppearanceIds&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SpecialMeaningAppearanceIds& default_instance() { - return *internal_default_instance(); - } - static inline const SpecialMeaningAppearanceIds* internal_default_instance() { - return reinterpret_cast( - &_SpecialMeaningAppearanceIds_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(SpecialMeaningAppearanceIds& a, SpecialMeaningAppearanceIds& b) { - a.Swap(&b); - } - inline void Swap(SpecialMeaningAppearanceIds* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SpecialMeaningAppearanceIds* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SpecialMeaningAppearanceIds* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SpecialMeaningAppearanceIds& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SpecialMeaningAppearanceIds& from) { - SpecialMeaningAppearanceIds::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SpecialMeaningAppearanceIds* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.SpecialMeaningAppearanceIds"; - } - protected: - explicit SpecialMeaningAppearanceIds(::google::protobuf::Arena* arena); - SpecialMeaningAppearanceIds(::google::protobuf::Arena* arena, const SpecialMeaningAppearanceIds& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kGoldCoinIdFieldNumber = 1, - kPlatinumCoinIdFieldNumber = 2, - kCrystalCoinIdFieldNumber = 3, - kTibiaCoinIdFieldNumber = 4, - kStampedLetterIdFieldNumber = 5, - kSupplyStashIdFieldNumber = 6, - }; - // optional uint32 gold_coin_id = 1; - bool has_gold_coin_id() const; - void clear_gold_coin_id() ; - ::uint32_t gold_coin_id() const; - void set_gold_coin_id(::uint32_t value); - - private: - ::uint32_t _internal_gold_coin_id() const; - void _internal_set_gold_coin_id(::uint32_t value); - - public: - // optional uint32 platinum_coin_id = 2; - bool has_platinum_coin_id() const; - void clear_platinum_coin_id() ; - ::uint32_t platinum_coin_id() const; - void set_platinum_coin_id(::uint32_t value); - - private: - ::uint32_t _internal_platinum_coin_id() const; - void _internal_set_platinum_coin_id(::uint32_t value); - - public: - // optional uint32 crystal_coin_id = 3; - bool has_crystal_coin_id() const; - void clear_crystal_coin_id() ; - ::uint32_t crystal_coin_id() const; - void set_crystal_coin_id(::uint32_t value); - - private: - ::uint32_t _internal_crystal_coin_id() const; - void _internal_set_crystal_coin_id(::uint32_t value); - - public: - // optional uint32 tibia_coin_id = 4; - bool has_tibia_coin_id() const; - void clear_tibia_coin_id() ; - ::uint32_t tibia_coin_id() const; - void set_tibia_coin_id(::uint32_t value); - - private: - ::uint32_t _internal_tibia_coin_id() const; - void _internal_set_tibia_coin_id(::uint32_t value); - - public: - // optional uint32 stamped_letter_id = 5; - bool has_stamped_letter_id() const; - void clear_stamped_letter_id() ; - ::uint32_t stamped_letter_id() const; - void set_stamped_letter_id(::uint32_t value); - - private: - ::uint32_t _internal_stamped_letter_id() const; - void _internal_set_stamped_letter_id(::uint32_t value); - - public: - // optional uint32 supply_stash_id = 6; - bool has_supply_stash_id() const; - void clear_supply_stash_id() ; - ::uint32_t supply_stash_id() const; - void set_supply_stash_id(::uint32_t value); - - private: - ::uint32_t _internal_supply_stash_id() const; - void _internal_set_supply_stash_id(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.SpecialMeaningAppearanceIds) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t gold_coin_id_; - ::uint32_t platinum_coin_id_; - ::uint32_t crystal_coin_id_; - ::uint32_t tibia_coin_id_; - ::uint32_t stamped_letter_id_; - ::uint32_t supply_stash_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class Coordinate final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.Coordinate) */ { - public: - inline Coordinate() : Coordinate(nullptr) {} - ~Coordinate() override; - template - explicit PROTOBUF_CONSTEXPR Coordinate(::google::protobuf::internal::ConstantInitialized); - - inline Coordinate(const Coordinate& from) - : Coordinate(nullptr, from) {} - Coordinate(Coordinate&& from) noexcept - : Coordinate() { - *this = ::std::move(from); - } - - inline Coordinate& operator=(const Coordinate& from) { - CopyFrom(from); - return *this; - } - inline Coordinate& operator=(Coordinate&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Coordinate& default_instance() { - return *internal_default_instance(); - } - static inline const Coordinate* internal_default_instance() { - return reinterpret_cast( - &_Coordinate_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Coordinate& a, Coordinate& b) { - a.Swap(&b); - } - inline void Swap(Coordinate* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Coordinate* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Coordinate* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Coordinate& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Coordinate& from) { - Coordinate::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Coordinate* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.Coordinate"; - } - protected: - explicit Coordinate(::google::protobuf::Arena* arena); - Coordinate(::google::protobuf::Arena* arena, const Coordinate& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kZFieldNumber = 3, - }; - // optional uint32 x = 1; - bool has_x() const; - void clear_x() ; - ::uint32_t x() const; - void set_x(::uint32_t value); - - private: - ::uint32_t _internal_x() const; - void _internal_set_x(::uint32_t value); - - public: - // optional uint32 y = 2; - bool has_y() const; - void clear_y() ; - ::uint32_t y() const; - void set_y(::uint32_t value); - - private: - ::uint32_t _internal_y() const; - void _internal_set_y(::uint32_t value); - - public: - // optional uint32 z = 3; - bool has_z() const; - void clear_z() ; - ::uint32_t z() const; - void set_z(::uint32_t value); - - private: - ::uint32_t _internal_z() const; - void _internal_set_z(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.Coordinate) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t x_; - ::uint32_t y_; - ::uint32_t z_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class Box final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.Box) */ { - public: - inline Box() : Box(nullptr) {} - ~Box() override; - template - explicit PROTOBUF_CONSTEXPR Box(::google::protobuf::internal::ConstantInitialized); - - inline Box(const Box& from) - : Box(nullptr, from) {} - Box(Box&& from) noexcept - : Box() { - *this = ::std::move(from); - } - - inline Box& operator=(const Box& from) { - CopyFrom(from); - return *this; - } - inline Box& operator=(Box&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Box& default_instance() { - return *internal_default_instance(); - } - static inline const Box* internal_default_instance() { - return reinterpret_cast( - &_Box_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(Box& a, Box& b) { - a.Swap(&b); - } - inline void Swap(Box* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Box* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Box* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Box& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Box& from) { - Box::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Box* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.Box"; - } - protected: - explicit Box(::google::protobuf::Arena* arena); - Box(::google::protobuf::Arena* arena, const Box& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kWidthFieldNumber = 3, - kHeightFieldNumber = 4, - }; - // optional uint32 x = 1; - bool has_x() const; - void clear_x() ; - ::uint32_t x() const; - void set_x(::uint32_t value); - - private: - ::uint32_t _internal_x() const; - void _internal_set_x(::uint32_t value); - - public: - // optional uint32 y = 2; - bool has_y() const; - void clear_y() ; - ::uint32_t y() const; - void set_y(::uint32_t value); - - private: - ::uint32_t _internal_y() const; - void _internal_set_y(::uint32_t value); - - public: - // optional uint32 width = 3; - bool has_width() const; - void clear_width() ; - ::uint32_t width() const; - void set_width(::uint32_t value); - - private: - ::uint32_t _internal_width() const; - void _internal_set_width(::uint32_t value); - - public: - // optional uint32 height = 4; - bool has_height() const; - void clear_height() ; - ::uint32_t height() const; - void set_height(::uint32_t value); - - private: - ::uint32_t _internal_height() const; - void _internal_set_height(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.Box) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t x_; - ::uint32_t y_; - ::uint32_t width_; - ::uint32_t height_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagWriteOnce final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagWriteOnce) */ { - public: - inline AppearanceFlagWriteOnce() : AppearanceFlagWriteOnce(nullptr) {} - ~AppearanceFlagWriteOnce() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagWriteOnce(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagWriteOnce(const AppearanceFlagWriteOnce& from) - : AppearanceFlagWriteOnce(nullptr, from) {} - AppearanceFlagWriteOnce(AppearanceFlagWriteOnce&& from) noexcept - : AppearanceFlagWriteOnce() { - *this = ::std::move(from); - } - - inline AppearanceFlagWriteOnce& operator=(const AppearanceFlagWriteOnce& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagWriteOnce& operator=(AppearanceFlagWriteOnce&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagWriteOnce& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagWriteOnce* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagWriteOnce_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(AppearanceFlagWriteOnce& a, AppearanceFlagWriteOnce& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagWriteOnce* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagWriteOnce* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagWriteOnce* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagWriteOnce& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagWriteOnce& from) { - AppearanceFlagWriteOnce::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagWriteOnce* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagWriteOnce"; - } - protected: - explicit AppearanceFlagWriteOnce(::google::protobuf::Arena* arena); - AppearanceFlagWriteOnce(::google::protobuf::Arena* arena, const AppearanceFlagWriteOnce& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMaxTextLengthOnceFieldNumber = 1, - }; - // optional uint32 max_text_length_once = 1; - bool has_max_text_length_once() const; - void clear_max_text_length_once() ; - ::uint32_t max_text_length_once() const; - void set_max_text_length_once(::uint32_t value); - - private: - ::uint32_t _internal_max_text_length_once() const; - void _internal_set_max_text_length_once(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagWriteOnce) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t max_text_length_once_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagWrite final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagWrite) */ { - public: - inline AppearanceFlagWrite() : AppearanceFlagWrite(nullptr) {} - ~AppearanceFlagWrite() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagWrite(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagWrite(const AppearanceFlagWrite& from) - : AppearanceFlagWrite(nullptr, from) {} - AppearanceFlagWrite(AppearanceFlagWrite&& from) noexcept - : AppearanceFlagWrite() { - *this = ::std::move(from); - } - - inline AppearanceFlagWrite& operator=(const AppearanceFlagWrite& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagWrite& operator=(AppearanceFlagWrite&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagWrite& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagWrite* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagWrite_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(AppearanceFlagWrite& a, AppearanceFlagWrite& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagWrite* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagWrite* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagWrite* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagWrite& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagWrite& from) { - AppearanceFlagWrite::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagWrite* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagWrite"; - } - protected: - explicit AppearanceFlagWrite(::google::protobuf::Arena* arena); - AppearanceFlagWrite(::google::protobuf::Arena* arena, const AppearanceFlagWrite& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMaxTextLengthFieldNumber = 1, - }; - // optional uint32 max_text_length = 1; - bool has_max_text_length() const; - void clear_max_text_length() ; - ::uint32_t max_text_length() const; - void set_max_text_length(::uint32_t value); - - private: - ::uint32_t _internal_max_text_length() const; - void _internal_set_max_text_length(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagWrite) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t max_text_length_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagUpgradeClassification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification) */ { - public: - inline AppearanceFlagUpgradeClassification() : AppearanceFlagUpgradeClassification(nullptr) {} - ~AppearanceFlagUpgradeClassification() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagUpgradeClassification(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagUpgradeClassification(const AppearanceFlagUpgradeClassification& from) - : AppearanceFlagUpgradeClassification(nullptr, from) {} - AppearanceFlagUpgradeClassification(AppearanceFlagUpgradeClassification&& from) noexcept - : AppearanceFlagUpgradeClassification() { - *this = ::std::move(from); - } - - inline AppearanceFlagUpgradeClassification& operator=(const AppearanceFlagUpgradeClassification& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagUpgradeClassification& operator=(AppearanceFlagUpgradeClassification&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagUpgradeClassification& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagUpgradeClassification* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagUpgradeClassification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(AppearanceFlagUpgradeClassification& a, AppearanceFlagUpgradeClassification& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagUpgradeClassification* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagUpgradeClassification* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagUpgradeClassification* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagUpgradeClassification& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagUpgradeClassification& from) { - AppearanceFlagUpgradeClassification::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagUpgradeClassification* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagUpgradeClassification"; - } - protected: - explicit AppearanceFlagUpgradeClassification(::google::protobuf::Arena* arena); - AppearanceFlagUpgradeClassification(::google::protobuf::Arena* arena, const AppearanceFlagUpgradeClassification& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kUpgradeClassificationFieldNumber = 1, - }; - // optional uint32 upgrade_classification = 1; - bool has_upgrade_classification() const; - void clear_upgrade_classification() ; - ::uint32_t upgrade_classification() const; - void set_upgrade_classification(::uint32_t value); - - private: - ::uint32_t _internal_upgrade_classification() const; - void _internal_set_upgrade_classification(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t upgrade_classification_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagShift final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagShift) */ { - public: - inline AppearanceFlagShift() : AppearanceFlagShift(nullptr) {} - ~AppearanceFlagShift() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagShift(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagShift(const AppearanceFlagShift& from) - : AppearanceFlagShift(nullptr, from) {} - AppearanceFlagShift(AppearanceFlagShift&& from) noexcept - : AppearanceFlagShift() { - *this = ::std::move(from); - } - - inline AppearanceFlagShift& operator=(const AppearanceFlagShift& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagShift& operator=(AppearanceFlagShift&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagShift& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagShift* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagShift_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(AppearanceFlagShift& a, AppearanceFlagShift& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagShift* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagShift* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagShift* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagShift& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagShift& from) { - AppearanceFlagShift::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagShift* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagShift"; - } - protected: - explicit AppearanceFlagShift(::google::protobuf::Arena* arena); - AppearanceFlagShift(::google::protobuf::Arena* arena, const AppearanceFlagShift& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - }; - // optional uint32 x = 1; - bool has_x() const; - void clear_x() ; - ::uint32_t x() const; - void set_x(::uint32_t value); - - private: - ::uint32_t _internal_x() const; - void _internal_set_x(::uint32_t value); - - public: - // optional uint32 y = 2; - bool has_y() const; - void clear_y() ; - ::uint32_t y() const; - void set_y(::uint32_t value); - - private: - ::uint32_t _internal_y() const; - void _internal_set_y(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagShift) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t x_; - ::uint32_t y_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagNPC final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagNPC) */ { - public: - inline AppearanceFlagNPC() : AppearanceFlagNPC(nullptr) {} - ~AppearanceFlagNPC() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagNPC(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagNPC(const AppearanceFlagNPC& from) - : AppearanceFlagNPC(nullptr, from) {} - AppearanceFlagNPC(AppearanceFlagNPC&& from) noexcept - : AppearanceFlagNPC() { - *this = ::std::move(from); - } - - inline AppearanceFlagNPC& operator=(const AppearanceFlagNPC& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagNPC& operator=(AppearanceFlagNPC&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagNPC& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagNPC* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagNPC_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(AppearanceFlagNPC& a, AppearanceFlagNPC& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagNPC* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagNPC* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagNPC* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagNPC& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagNPC& from) { - AppearanceFlagNPC::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagNPC* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagNPC"; - } - protected: - explicit AppearanceFlagNPC(::google::protobuf::Arena* arena); - AppearanceFlagNPC(::google::protobuf::Arena* arena, const AppearanceFlagNPC& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kLocationFieldNumber = 2, - kCurrencyQuestFlagDisplayNameFieldNumber = 6, - kSalePriceFieldNumber = 3, - kBuyPriceFieldNumber = 4, - kCurrencyObjectTypeIdFieldNumber = 5, - }; - // optional string name = 1; - bool has_name() const; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // optional string location = 2; - bool has_location() const; - void clear_location() ; - const std::string& location() const; - template - void set_location(Arg_&& arg, Args_... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* value); - - private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location( - const std::string& value); - std::string* _internal_mutable_location(); - - public: - // optional string currency_quest_flag_display_name = 6; - bool has_currency_quest_flag_display_name() const; - void clear_currency_quest_flag_display_name() ; - const std::string& currency_quest_flag_display_name() const; - template - void set_currency_quest_flag_display_name(Arg_&& arg, Args_... args); - std::string* mutable_currency_quest_flag_display_name(); - PROTOBUF_NODISCARD std::string* release_currency_quest_flag_display_name(); - void set_allocated_currency_quest_flag_display_name(std::string* value); - - private: - const std::string& _internal_currency_quest_flag_display_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_currency_quest_flag_display_name( - const std::string& value); - std::string* _internal_mutable_currency_quest_flag_display_name(); - - public: - // optional uint32 sale_price = 3; - bool has_sale_price() const; - void clear_sale_price() ; - ::uint32_t sale_price() const; - void set_sale_price(::uint32_t value); - - private: - ::uint32_t _internal_sale_price() const; - void _internal_set_sale_price(::uint32_t value); - - public: - // optional uint32 buy_price = 4; - bool has_buy_price() const; - void clear_buy_price() ; - ::uint32_t buy_price() const; - void set_buy_price(::uint32_t value); - - private: - ::uint32_t _internal_buy_price() const; - void _internal_set_buy_price(::uint32_t value); - - public: - // optional uint32 currency_object_type_id = 5; - bool has_currency_object_type_id() const; - void clear_currency_object_type_id() ; - ::uint32_t currency_object_type_id() const; - void set_currency_object_type_id(::uint32_t value); - - private: - ::uint32_t _internal_currency_object_type_id() const; - void _internal_set_currency_object_type_id(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagNPC) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 100, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr location_; - ::google::protobuf::internal::ArenaStringPtr currency_quest_flag_display_name_; - ::uint32_t sale_price_; - ::uint32_t buy_price_; - ::uint32_t currency_object_type_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagMarket final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagMarket) */ { - public: - inline AppearanceFlagMarket() : AppearanceFlagMarket(nullptr) {} - ~AppearanceFlagMarket() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagMarket(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagMarket(const AppearanceFlagMarket& from) - : AppearanceFlagMarket(nullptr, from) {} - AppearanceFlagMarket(AppearanceFlagMarket&& from) noexcept - : AppearanceFlagMarket() { - *this = ::std::move(from); - } - - inline AppearanceFlagMarket& operator=(const AppearanceFlagMarket& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagMarket& operator=(AppearanceFlagMarket&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagMarket& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagMarket* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagMarket_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(AppearanceFlagMarket& a, AppearanceFlagMarket& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagMarket* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagMarket* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagMarket* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagMarket& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagMarket& from) { - AppearanceFlagMarket::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagMarket* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagMarket"; - } - protected: - explicit AppearanceFlagMarket(::google::protobuf::Arena* arena); - AppearanceFlagMarket(::google::protobuf::Arena* arena, const AppearanceFlagMarket& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRestrictToProfessionFieldNumber = 5, - kNameFieldNumber = 4, - kTradeAsObjectIdFieldNumber = 2, - kShowAsObjectIdFieldNumber = 3, - kMinimumLevelFieldNumber = 6, - kCategoryFieldNumber = 1, - }; - // repeated .otclient.protobuf.appearances.PLAYER_PROFESSION restrict_to_profession = 5; - int restrict_to_profession_size() const; - private: - int _internal_restrict_to_profession_size() const; - - public: - void clear_restrict_to_profession() ; - public: - ::otclient::protobuf::appearances::PLAYER_PROFESSION restrict_to_profession(int index) const; - void set_restrict_to_profession(int index, ::otclient::protobuf::appearances::PLAYER_PROFESSION value); - void add_restrict_to_profession(::otclient::protobuf::appearances::PLAYER_PROFESSION value); - const ::google::protobuf::RepeatedField& restrict_to_profession() const; - ::google::protobuf::RepeatedField* mutable_restrict_to_profession(); - - private: - const ::google::protobuf::RepeatedField& _internal_restrict_to_profession() const; - ::google::protobuf::RepeatedField* _internal_mutable_restrict_to_profession(); - - public: - // optional string name = 4; - bool has_name() const; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // optional uint32 trade_as_object_id = 2; - bool has_trade_as_object_id() const; - void clear_trade_as_object_id() ; - ::uint32_t trade_as_object_id() const; - void set_trade_as_object_id(::uint32_t value); - - private: - ::uint32_t _internal_trade_as_object_id() const; - void _internal_set_trade_as_object_id(::uint32_t value); - - public: - // optional uint32 show_as_object_id = 3; - bool has_show_as_object_id() const; - void clear_show_as_object_id() ; - ::uint32_t show_as_object_id() const; - void set_show_as_object_id(::uint32_t value); - - private: - ::uint32_t _internal_show_as_object_id() const; - void _internal_set_show_as_object_id(::uint32_t value); - - public: - // optional uint32 minimum_level = 6; - bool has_minimum_level() const; - void clear_minimum_level() ; - ::uint32_t minimum_level() const; - void set_minimum_level(::uint32_t value); - - private: - ::uint32_t _internal_minimum_level() const; - void _internal_set_minimum_level(::uint32_t value); - - public: - // optional .otclient.protobuf.appearances.ITEM_CATEGORY category = 1; - bool has_category() const; - void clear_category() ; - ::otclient::protobuf::appearances::ITEM_CATEGORY category() const; - void set_category(::otclient::protobuf::appearances::ITEM_CATEGORY value); - - private: - ::otclient::protobuf::appearances::ITEM_CATEGORY _internal_category() const; - void _internal_set_category(::otclient::protobuf::appearances::ITEM_CATEGORY value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagMarket) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 2, - 63, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField restrict_to_profession_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::uint32_t trade_as_object_id_; - ::uint32_t show_as_object_id_; - ::uint32_t minimum_level_; - int category_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagLight final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagLight) */ { - public: - inline AppearanceFlagLight() : AppearanceFlagLight(nullptr) {} - ~AppearanceFlagLight() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagLight(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagLight(const AppearanceFlagLight& from) - : AppearanceFlagLight(nullptr, from) {} - AppearanceFlagLight(AppearanceFlagLight&& from) noexcept - : AppearanceFlagLight() { - *this = ::std::move(from); - } - - inline AppearanceFlagLight& operator=(const AppearanceFlagLight& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagLight& operator=(AppearanceFlagLight&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagLight& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagLight* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagLight_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(AppearanceFlagLight& a, AppearanceFlagLight& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagLight* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagLight* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagLight* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagLight& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagLight& from) { - AppearanceFlagLight::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagLight* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagLight"; - } - protected: - explicit AppearanceFlagLight(::google::protobuf::Arena* arena); - AppearanceFlagLight(::google::protobuf::Arena* arena, const AppearanceFlagLight& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBrightnessFieldNumber = 1, - kColorFieldNumber = 2, - }; - // optional uint32 brightness = 1; - bool has_brightness() const; - void clear_brightness() ; - ::uint32_t brightness() const; - void set_brightness(::uint32_t value); - - private: - ::uint32_t _internal_brightness() const; - void _internal_set_brightness(::uint32_t value); - - public: - // optional uint32 color = 2; - bool has_color() const; - void clear_color() ; - ::uint32_t color() const; - void set_color(::uint32_t value); - - private: - ::uint32_t _internal_color() const; - void _internal_set_color(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagLight) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t brightness_; - ::uint32_t color_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagLenshelp final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagLenshelp) */ { - public: - inline AppearanceFlagLenshelp() : AppearanceFlagLenshelp(nullptr) {} - ~AppearanceFlagLenshelp() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagLenshelp(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagLenshelp(const AppearanceFlagLenshelp& from) - : AppearanceFlagLenshelp(nullptr, from) {} - AppearanceFlagLenshelp(AppearanceFlagLenshelp&& from) noexcept - : AppearanceFlagLenshelp() { - *this = ::std::move(from); - } - - inline AppearanceFlagLenshelp& operator=(const AppearanceFlagLenshelp& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagLenshelp& operator=(AppearanceFlagLenshelp&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagLenshelp& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagLenshelp* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagLenshelp_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(AppearanceFlagLenshelp& a, AppearanceFlagLenshelp& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagLenshelp* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagLenshelp* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagLenshelp* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagLenshelp& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagLenshelp& from) { - AppearanceFlagLenshelp::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagLenshelp* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagLenshelp"; - } - protected: - explicit AppearanceFlagLenshelp(::google::protobuf::Arena* arena); - AppearanceFlagLenshelp(::google::protobuf::Arena* arena, const AppearanceFlagLenshelp& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdFieldNumber = 1, - }; - // optional uint32 id = 1; - bool has_id() const; - void clear_id() ; - ::uint32_t id() const; - void set_id(::uint32_t value); - - private: - ::uint32_t _internal_id() const; - void _internal_set_id(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagLenshelp) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagHook final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagHook) */ { - public: - inline AppearanceFlagHook() : AppearanceFlagHook(nullptr) {} - ~AppearanceFlagHook() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagHook(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagHook(const AppearanceFlagHook& from) - : AppearanceFlagHook(nullptr, from) {} - AppearanceFlagHook(AppearanceFlagHook&& from) noexcept - : AppearanceFlagHook() { - *this = ::std::move(from); - } - - inline AppearanceFlagHook& operator=(const AppearanceFlagHook& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagHook& operator=(AppearanceFlagHook&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagHook& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagHook* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagHook_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(AppearanceFlagHook& a, AppearanceFlagHook& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagHook* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagHook* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagHook* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagHook& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagHook& from) { - AppearanceFlagHook::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagHook* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagHook"; - } - protected: - explicit AppearanceFlagHook(::google::protobuf::Arena* arena); - AppearanceFlagHook(::google::protobuf::Arena* arena, const AppearanceFlagHook& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSouthFieldNumber = 1, - kEastFieldNumber = 2, - }; - // optional .otclient.protobuf.appearances.HOOK_TYPE south = 1; - bool has_south() const; - void clear_south() ; - ::otclient::protobuf::appearances::HOOK_TYPE south() const; - void set_south(::otclient::protobuf::appearances::HOOK_TYPE value); - - private: - ::otclient::protobuf::appearances::HOOK_TYPE _internal_south() const; - void _internal_set_south(::otclient::protobuf::appearances::HOOK_TYPE value); - - public: - // optional .otclient.protobuf.appearances.HOOK_TYPE east = 2; - bool has_east() const; - void clear_east() ; - ::otclient::protobuf::appearances::HOOK_TYPE east() const; - void set_east(::otclient::protobuf::appearances::HOOK_TYPE value); - - private: - ::otclient::protobuf::appearances::HOOK_TYPE _internal_east() const; - void _internal_set_east(::otclient::protobuf::appearances::HOOK_TYPE value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagHook) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - int south_; - int east_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagHeight final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagHeight) */ { - public: - inline AppearanceFlagHeight() : AppearanceFlagHeight(nullptr) {} - ~AppearanceFlagHeight() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagHeight(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagHeight(const AppearanceFlagHeight& from) - : AppearanceFlagHeight(nullptr, from) {} - AppearanceFlagHeight(AppearanceFlagHeight&& from) noexcept - : AppearanceFlagHeight() { - *this = ::std::move(from); - } - - inline AppearanceFlagHeight& operator=(const AppearanceFlagHeight& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagHeight& operator=(AppearanceFlagHeight&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagHeight& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagHeight* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagHeight_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(AppearanceFlagHeight& a, AppearanceFlagHeight& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagHeight* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagHeight* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagHeight* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagHeight& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagHeight& from) { - AppearanceFlagHeight::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagHeight* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagHeight"; - } - protected: - explicit AppearanceFlagHeight(::google::protobuf::Arena* arena); - AppearanceFlagHeight(::google::protobuf::Arena* arena, const AppearanceFlagHeight& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kElevationFieldNumber = 1, - }; - // optional uint32 elevation = 1; - bool has_elevation() const; - void clear_elevation() ; - ::uint32_t elevation() const; - void set_elevation(::uint32_t value); - - private: - ::uint32_t _internal_elevation() const; - void _internal_set_elevation(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagHeight) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t elevation_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagDefaultAction final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagDefaultAction) */ { - public: - inline AppearanceFlagDefaultAction() : AppearanceFlagDefaultAction(nullptr) {} - ~AppearanceFlagDefaultAction() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagDefaultAction(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagDefaultAction(const AppearanceFlagDefaultAction& from) - : AppearanceFlagDefaultAction(nullptr, from) {} - AppearanceFlagDefaultAction(AppearanceFlagDefaultAction&& from) noexcept - : AppearanceFlagDefaultAction() { - *this = ::std::move(from); - } - - inline AppearanceFlagDefaultAction& operator=(const AppearanceFlagDefaultAction& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagDefaultAction& operator=(AppearanceFlagDefaultAction&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagDefaultAction& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagDefaultAction* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagDefaultAction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(AppearanceFlagDefaultAction& a, AppearanceFlagDefaultAction& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagDefaultAction* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagDefaultAction* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagDefaultAction* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagDefaultAction& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagDefaultAction& from) { - AppearanceFlagDefaultAction::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagDefaultAction* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagDefaultAction"; - } - protected: - explicit AppearanceFlagDefaultAction(::google::protobuf::Arena* arena); - AppearanceFlagDefaultAction(::google::protobuf::Arena* arena, const AppearanceFlagDefaultAction& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionFieldNumber = 1, - }; - // optional .otclient.protobuf.appearances.PLAYER_ACTION action = 1; - bool has_action() const; - void clear_action() ; - ::otclient::protobuf::appearances::PLAYER_ACTION action() const; - void set_action(::otclient::protobuf::appearances::PLAYER_ACTION value); - - private: - ::otclient::protobuf::appearances::PLAYER_ACTION _internal_action() const; - void _internal_set_action(::otclient::protobuf::appearances::PLAYER_ACTION value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagDefaultAction) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - int action_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagCyclopedia final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagCyclopedia) */ { - public: - inline AppearanceFlagCyclopedia() : AppearanceFlagCyclopedia(nullptr) {} - ~AppearanceFlagCyclopedia() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagCyclopedia(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagCyclopedia(const AppearanceFlagCyclopedia& from) - : AppearanceFlagCyclopedia(nullptr, from) {} - AppearanceFlagCyclopedia(AppearanceFlagCyclopedia&& from) noexcept - : AppearanceFlagCyclopedia() { - *this = ::std::move(from); - } - - inline AppearanceFlagCyclopedia& operator=(const AppearanceFlagCyclopedia& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagCyclopedia& operator=(AppearanceFlagCyclopedia&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagCyclopedia& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagCyclopedia* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagCyclopedia_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(AppearanceFlagCyclopedia& a, AppearanceFlagCyclopedia& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagCyclopedia* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagCyclopedia* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagCyclopedia* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagCyclopedia& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagCyclopedia& from) { - AppearanceFlagCyclopedia::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagCyclopedia* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagCyclopedia"; - } - protected: - explicit AppearanceFlagCyclopedia(::google::protobuf::Arena* arena); - AppearanceFlagCyclopedia(::google::protobuf::Arena* arena, const AppearanceFlagCyclopedia& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCyclopediaTypeFieldNumber = 1, - }; - // optional uint32 cyclopedia_type = 1; - bool has_cyclopedia_type() const; - void clear_cyclopedia_type() ; - ::uint32_t cyclopedia_type() const; - void set_cyclopedia_type(::uint32_t value); - - private: - ::uint32_t _internal_cyclopedia_type() const; - void _internal_set_cyclopedia_type(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagCyclopedia) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t cyclopedia_type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagClothes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagClothes) */ { - public: - inline AppearanceFlagClothes() : AppearanceFlagClothes(nullptr) {} - ~AppearanceFlagClothes() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagClothes(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagClothes(const AppearanceFlagClothes& from) - : AppearanceFlagClothes(nullptr, from) {} - AppearanceFlagClothes(AppearanceFlagClothes&& from) noexcept - : AppearanceFlagClothes() { - *this = ::std::move(from); - } - - inline AppearanceFlagClothes& operator=(const AppearanceFlagClothes& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagClothes& operator=(AppearanceFlagClothes&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagClothes& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagClothes* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagClothes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(AppearanceFlagClothes& a, AppearanceFlagClothes& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagClothes* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagClothes* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagClothes* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagClothes& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagClothes& from) { - AppearanceFlagClothes::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagClothes* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagClothes"; - } - protected: - explicit AppearanceFlagClothes(::google::protobuf::Arena* arena); - AppearanceFlagClothes(::google::protobuf::Arena* arena, const AppearanceFlagClothes& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSlotFieldNumber = 1, - }; - // optional uint32 slot = 1; - bool has_slot() const; - void clear_slot() ; - ::uint32_t slot() const; - void set_slot(::uint32_t value); - - private: - ::uint32_t _internal_slot() const; - void _internal_set_slot(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagClothes) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t slot_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagChangedToExpire final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagChangedToExpire) */ { - public: - inline AppearanceFlagChangedToExpire() : AppearanceFlagChangedToExpire(nullptr) {} - ~AppearanceFlagChangedToExpire() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagChangedToExpire(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagChangedToExpire(const AppearanceFlagChangedToExpire& from) - : AppearanceFlagChangedToExpire(nullptr, from) {} - AppearanceFlagChangedToExpire(AppearanceFlagChangedToExpire&& from) noexcept - : AppearanceFlagChangedToExpire() { - *this = ::std::move(from); - } - - inline AppearanceFlagChangedToExpire& operator=(const AppearanceFlagChangedToExpire& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagChangedToExpire& operator=(AppearanceFlagChangedToExpire&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagChangedToExpire& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagChangedToExpire* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagChangedToExpire_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(AppearanceFlagChangedToExpire& a, AppearanceFlagChangedToExpire& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagChangedToExpire* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagChangedToExpire* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagChangedToExpire* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagChangedToExpire& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagChangedToExpire& from) { - AppearanceFlagChangedToExpire::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagChangedToExpire* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagChangedToExpire"; - } - protected: - explicit AppearanceFlagChangedToExpire(::google::protobuf::Arena* arena); - AppearanceFlagChangedToExpire(::google::protobuf::Arena* arena, const AppearanceFlagChangedToExpire& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFormerObjectTypeidFieldNumber = 1, - }; - // optional uint32 former_object_typeid = 1; - bool has_former_object_typeid() const; - void clear_former_object_typeid() ; - ::uint32_t former_object_typeid() const; - void set_former_object_typeid(::uint32_t value); - - private: - ::uint32_t _internal_former_object_typeid() const; - void _internal_set_former_object_typeid(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagChangedToExpire) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t former_object_typeid_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagBank final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagBank) */ { - public: - inline AppearanceFlagBank() : AppearanceFlagBank(nullptr) {} - ~AppearanceFlagBank() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagBank(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagBank(const AppearanceFlagBank& from) - : AppearanceFlagBank(nullptr, from) {} - AppearanceFlagBank(AppearanceFlagBank&& from) noexcept - : AppearanceFlagBank() { - *this = ::std::move(from); - } - - inline AppearanceFlagBank& operator=(const AppearanceFlagBank& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagBank& operator=(AppearanceFlagBank&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagBank& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagBank* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagBank_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(AppearanceFlagBank& a, AppearanceFlagBank& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagBank* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagBank* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagBank* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagBank& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagBank& from) { - AppearanceFlagBank::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagBank* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagBank"; - } - protected: - explicit AppearanceFlagBank(::google::protobuf::Arena* arena); - AppearanceFlagBank(::google::protobuf::Arena* arena, const AppearanceFlagBank& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kWaypointsFieldNumber = 1, - }; - // optional uint32 waypoints = 1; - bool has_waypoints() const; - void clear_waypoints() ; - ::uint32_t waypoints() const; - void set_waypoints(::uint32_t value); - - private: - ::uint32_t _internal_waypoints() const; - void _internal_set_waypoints(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagBank) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t waypoints_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlagAutomap final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlagAutomap) */ { - public: - inline AppearanceFlagAutomap() : AppearanceFlagAutomap(nullptr) {} - ~AppearanceFlagAutomap() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlagAutomap(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlagAutomap(const AppearanceFlagAutomap& from) - : AppearanceFlagAutomap(nullptr, from) {} - AppearanceFlagAutomap(AppearanceFlagAutomap&& from) noexcept - : AppearanceFlagAutomap() { - *this = ::std::move(from); - } - - inline AppearanceFlagAutomap& operator=(const AppearanceFlagAutomap& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlagAutomap& operator=(AppearanceFlagAutomap&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlagAutomap& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlagAutomap* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlagAutomap_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(AppearanceFlagAutomap& a, AppearanceFlagAutomap& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlagAutomap* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlagAutomap* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlagAutomap* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlagAutomap& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlagAutomap& from) { - AppearanceFlagAutomap::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlagAutomap* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlagAutomap"; - } - protected: - explicit AppearanceFlagAutomap(::google::protobuf::Arena* arena); - AppearanceFlagAutomap(::google::protobuf::Arena* arena, const AppearanceFlagAutomap& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kColorFieldNumber = 1, - }; - // optional uint32 color = 1; - bool has_color() const; - void clear_color() ; - ::uint32_t color() const; - void set_color(::uint32_t value); - - private: - ::uint32_t _internal_color() const; - void _internal_set_color(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlagAutomap) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t color_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class SpriteAnimation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.SpriteAnimation) */ { - public: - inline SpriteAnimation() : SpriteAnimation(nullptr) {} - ~SpriteAnimation() override; - template - explicit PROTOBUF_CONSTEXPR SpriteAnimation(::google::protobuf::internal::ConstantInitialized); - - inline SpriteAnimation(const SpriteAnimation& from) - : SpriteAnimation(nullptr, from) {} - SpriteAnimation(SpriteAnimation&& from) noexcept - : SpriteAnimation() { - *this = ::std::move(from); - } - - inline SpriteAnimation& operator=(const SpriteAnimation& from) { - CopyFrom(from); - return *this; - } - inline SpriteAnimation& operator=(SpriteAnimation&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SpriteAnimation& default_instance() { - return *internal_default_instance(); - } - static inline const SpriteAnimation* internal_default_instance() { - return reinterpret_cast( - &_SpriteAnimation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(SpriteAnimation& a, SpriteAnimation& b) { - a.Swap(&b); - } - inline void Swap(SpriteAnimation* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SpriteAnimation* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SpriteAnimation* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SpriteAnimation& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SpriteAnimation& from) { - SpriteAnimation::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SpriteAnimation* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.SpriteAnimation"; - } - protected: - explicit SpriteAnimation(::google::protobuf::Arena* arena); - SpriteAnimation(::google::protobuf::Arena* arena, const SpriteAnimation& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSpritePhaseFieldNumber = 6, - kDefaultStartPhaseFieldNumber = 1, - kSynchronizedFieldNumber = 2, - kRandomStartPhaseFieldNumber = 3, - kLoopCountFieldNumber = 5, - kLoopTypeFieldNumber = 4, - }; - // repeated .otclient.protobuf.appearances.SpritePhase sprite_phase = 6; - int sprite_phase_size() const; - private: - int _internal_sprite_phase_size() const; - - public: - void clear_sprite_phase() ; - ::otclient::protobuf::appearances::SpritePhase* mutable_sprite_phase(int index); - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::SpritePhase >* - mutable_sprite_phase(); - private: - const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::SpritePhase>& _internal_sprite_phase() const; - ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::SpritePhase>* _internal_mutable_sprite_phase(); - public: - const ::otclient::protobuf::appearances::SpritePhase& sprite_phase(int index) const; - ::otclient::protobuf::appearances::SpritePhase* add_sprite_phase(); - const ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::SpritePhase >& - sprite_phase() const; - // optional uint32 default_start_phase = 1; - bool has_default_start_phase() const; - void clear_default_start_phase() ; - ::uint32_t default_start_phase() const; - void set_default_start_phase(::uint32_t value); - - private: - ::uint32_t _internal_default_start_phase() const; - void _internal_set_default_start_phase(::uint32_t value); - - public: - // optional bool synchronized = 2; - bool has_synchronized() const; - void clear_synchronized() ; - bool synchronized() const; - void set_synchronized(bool value); - - private: - bool _internal_synchronized() const; - void _internal_set_synchronized(bool value); - - public: - // optional bool random_start_phase = 3; - bool has_random_start_phase() const; - void clear_random_start_phase() ; - bool random_start_phase() const; - void set_random_start_phase(bool value); - - private: - bool _internal_random_start_phase() const; - void _internal_set_random_start_phase(bool value); - - public: - // optional uint32 loop_count = 5; - bool has_loop_count() const; - void clear_loop_count() ; - ::uint32_t loop_count() const; - void set_loop_count(::uint32_t value); - - private: - ::uint32_t _internal_loop_count() const; - void _internal_set_loop_count(::uint32_t value); - - public: - // optional .otclient.protobuf.appearances.ANIMATION_LOOP_TYPE loop_type = 4; - bool has_loop_type() const; - void clear_loop_type() ; - ::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE loop_type() const; - void set_loop_type(::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE value); - - private: - ::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE _internal_loop_type() const; - void _internal_set_loop_type(::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.SpriteAnimation) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::SpritePhase > sprite_phase_; - ::uint32_t default_start_phase_; - bool synchronized_; - bool random_start_phase_; - ::uint32_t loop_count_; - int loop_type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class AppearanceFlags final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.AppearanceFlags) */ { - public: - inline AppearanceFlags() : AppearanceFlags(nullptr) {} - ~AppearanceFlags() override; - template - explicit PROTOBUF_CONSTEXPR AppearanceFlags(::google::protobuf::internal::ConstantInitialized); - - inline AppearanceFlags(const AppearanceFlags& from) - : AppearanceFlags(nullptr, from) {} - AppearanceFlags(AppearanceFlags&& from) noexcept - : AppearanceFlags() { - *this = ::std::move(from); - } - - inline AppearanceFlags& operator=(const AppearanceFlags& from) { - CopyFrom(from); - return *this; - } - inline AppearanceFlags& operator=(AppearanceFlags&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AppearanceFlags& default_instance() { - return *internal_default_instance(); - } - static inline const AppearanceFlags* internal_default_instance() { - return reinterpret_cast( - &_AppearanceFlags_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(AppearanceFlags& a, AppearanceFlags& b) { - a.Swap(&b); - } - inline void Swap(AppearanceFlags* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AppearanceFlags* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AppearanceFlags* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppearanceFlags& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppearanceFlags& from) { - AppearanceFlags::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AppearanceFlags* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.AppearanceFlags"; - } - protected: - explicit AppearanceFlags(::google::protobuf::Arena* arena); - AppearanceFlags(::google::protobuf::Arena* arena, const AppearanceFlags& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNpcsaledataFieldNumber = 40, - kBankFieldNumber = 1, - kWriteFieldNumber = 10, - kWriteOnceFieldNumber = 11, - kHookFieldNumber = 21, - kLightFieldNumber = 23, - kShiftFieldNumber = 26, - kHeightFieldNumber = 27, - kAutomapFieldNumber = 30, - kLenshelpFieldNumber = 31, - kClothesFieldNumber = 34, - kDefaultActionFieldNumber = 35, - kMarketFieldNumber = 36, - kChangedtoexpireFieldNumber = 41, - kCyclopediaitemFieldNumber = 44, - kUpgradeclassificationFieldNumber = 48, - kClipFieldNumber = 2, - kBottomFieldNumber = 3, - kTopFieldNumber = 4, - kContainerFieldNumber = 5, - kCumulativeFieldNumber = 6, - kUsableFieldNumber = 7, - kForceuseFieldNumber = 8, - kMultiuseFieldNumber = 9, - kLiquidpoolFieldNumber = 12, - kUnpassFieldNumber = 13, - kUnmoveFieldNumber = 14, - kUnsightFieldNumber = 15, - kAvoidFieldNumber = 16, - kNoMovementAnimationFieldNumber = 17, - kTakeFieldNumber = 18, - kLiquidcontainerFieldNumber = 19, - kHangFieldNumber = 20, - kRotateFieldNumber = 22, - kDontHideFieldNumber = 24, - kTranslucentFieldNumber = 25, - kLyingObjectFieldNumber = 28, - kAnimateAlwaysFieldNumber = 29, - kFullbankFieldNumber = 32, - kIgnoreLookFieldNumber = 33, - kWrapFieldNumber = 37, - kUnwrapFieldNumber = 38, - kTopeffectFieldNumber = 39, - kCorpseFieldNumber = 42, - kPlayerCorpseFieldNumber = 43, - kAmmoFieldNumber = 45, - kShowOffSocketFieldNumber = 46, - kReportableFieldNumber = 47, - kReverseAddonsEastFieldNumber = 49, - kReverseAddonsWestFieldNumber = 50, - kReverseAddonsSouthFieldNumber = 51, - kReverseAddonsNorthFieldNumber = 52, - kWearoutFieldNumber = 53, - kClockexpireFieldNumber = 54, - kExpireFieldNumber = 55, - kExpirestopFieldNumber = 56, - kDecoKitFieldNumber = 57, - }; - // repeated .otclient.protobuf.appearances.AppearanceFlagNPC npcsaledata = 40; - int npcsaledata_size() const; - private: - int _internal_npcsaledata_size() const; - - public: - void clear_npcsaledata() ; - ::otclient::protobuf::appearances::AppearanceFlagNPC* mutable_npcsaledata(int index); - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::AppearanceFlagNPC >* - mutable_npcsaledata(); - private: - const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::AppearanceFlagNPC>& _internal_npcsaledata() const; - ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::AppearanceFlagNPC>* _internal_mutable_npcsaledata(); - public: - const ::otclient::protobuf::appearances::AppearanceFlagNPC& npcsaledata(int index) const; - ::otclient::protobuf::appearances::AppearanceFlagNPC* add_npcsaledata(); - const ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::AppearanceFlagNPC >& - npcsaledata() const; - // optional .otclient.protobuf.appearances.AppearanceFlagBank bank = 1; - bool has_bank() const; - void clear_bank() ; - const ::otclient::protobuf::appearances::AppearanceFlagBank& bank() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagBank* release_bank(); - ::otclient::protobuf::appearances::AppearanceFlagBank* mutable_bank(); - void set_allocated_bank(::otclient::protobuf::appearances::AppearanceFlagBank* value); - void unsafe_arena_set_allocated_bank(::otclient::protobuf::appearances::AppearanceFlagBank* value); - ::otclient::protobuf::appearances::AppearanceFlagBank* unsafe_arena_release_bank(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagBank& _internal_bank() const; - ::otclient::protobuf::appearances::AppearanceFlagBank* _internal_mutable_bank(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagWrite write = 10; - bool has_write() const; - void clear_write() ; - const ::otclient::protobuf::appearances::AppearanceFlagWrite& write() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagWrite* release_write(); - ::otclient::protobuf::appearances::AppearanceFlagWrite* mutable_write(); - void set_allocated_write(::otclient::protobuf::appearances::AppearanceFlagWrite* value); - void unsafe_arena_set_allocated_write(::otclient::protobuf::appearances::AppearanceFlagWrite* value); - ::otclient::protobuf::appearances::AppearanceFlagWrite* unsafe_arena_release_write(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagWrite& _internal_write() const; - ::otclient::protobuf::appearances::AppearanceFlagWrite* _internal_mutable_write(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagWriteOnce write_once = 11; - bool has_write_once() const; - void clear_write_once() ; - const ::otclient::protobuf::appearances::AppearanceFlagWriteOnce& write_once() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* release_write_once(); - ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* mutable_write_once(); - void set_allocated_write_once(::otclient::protobuf::appearances::AppearanceFlagWriteOnce* value); - void unsafe_arena_set_allocated_write_once(::otclient::protobuf::appearances::AppearanceFlagWriteOnce* value); - ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* unsafe_arena_release_write_once(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagWriteOnce& _internal_write_once() const; - ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* _internal_mutable_write_once(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagHook hook = 21; - bool has_hook() const; - void clear_hook() ; - const ::otclient::protobuf::appearances::AppearanceFlagHook& hook() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagHook* release_hook(); - ::otclient::protobuf::appearances::AppearanceFlagHook* mutable_hook(); - void set_allocated_hook(::otclient::protobuf::appearances::AppearanceFlagHook* value); - void unsafe_arena_set_allocated_hook(::otclient::protobuf::appearances::AppearanceFlagHook* value); - ::otclient::protobuf::appearances::AppearanceFlagHook* unsafe_arena_release_hook(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagHook& _internal_hook() const; - ::otclient::protobuf::appearances::AppearanceFlagHook* _internal_mutable_hook(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagLight light = 23; - bool has_light() const; - void clear_light() ; - const ::otclient::protobuf::appearances::AppearanceFlagLight& light() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagLight* release_light(); - ::otclient::protobuf::appearances::AppearanceFlagLight* mutable_light(); - void set_allocated_light(::otclient::protobuf::appearances::AppearanceFlagLight* value); - void unsafe_arena_set_allocated_light(::otclient::protobuf::appearances::AppearanceFlagLight* value); - ::otclient::protobuf::appearances::AppearanceFlagLight* unsafe_arena_release_light(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagLight& _internal_light() const; - ::otclient::protobuf::appearances::AppearanceFlagLight* _internal_mutable_light(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagShift shift = 26; - bool has_shift() const; - void clear_shift() ; - const ::otclient::protobuf::appearances::AppearanceFlagShift& shift() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagShift* release_shift(); - ::otclient::protobuf::appearances::AppearanceFlagShift* mutable_shift(); - void set_allocated_shift(::otclient::protobuf::appearances::AppearanceFlagShift* value); - void unsafe_arena_set_allocated_shift(::otclient::protobuf::appearances::AppearanceFlagShift* value); - ::otclient::protobuf::appearances::AppearanceFlagShift* unsafe_arena_release_shift(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagShift& _internal_shift() const; - ::otclient::protobuf::appearances::AppearanceFlagShift* _internal_mutable_shift(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagHeight height = 27; - bool has_height() const; - void clear_height() ; - const ::otclient::protobuf::appearances::AppearanceFlagHeight& height() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagHeight* release_height(); - ::otclient::protobuf::appearances::AppearanceFlagHeight* mutable_height(); - void set_allocated_height(::otclient::protobuf::appearances::AppearanceFlagHeight* value); - void unsafe_arena_set_allocated_height(::otclient::protobuf::appearances::AppearanceFlagHeight* value); - ::otclient::protobuf::appearances::AppearanceFlagHeight* unsafe_arena_release_height(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagHeight& _internal_height() const; - ::otclient::protobuf::appearances::AppearanceFlagHeight* _internal_mutable_height(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagAutomap automap = 30; - bool has_automap() const; - void clear_automap() ; - const ::otclient::protobuf::appearances::AppearanceFlagAutomap& automap() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagAutomap* release_automap(); - ::otclient::protobuf::appearances::AppearanceFlagAutomap* mutable_automap(); - void set_allocated_automap(::otclient::protobuf::appearances::AppearanceFlagAutomap* value); - void unsafe_arena_set_allocated_automap(::otclient::protobuf::appearances::AppearanceFlagAutomap* value); - ::otclient::protobuf::appearances::AppearanceFlagAutomap* unsafe_arena_release_automap(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagAutomap& _internal_automap() const; - ::otclient::protobuf::appearances::AppearanceFlagAutomap* _internal_mutable_automap(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagLenshelp lenshelp = 31; - bool has_lenshelp() const; - void clear_lenshelp() ; - const ::otclient::protobuf::appearances::AppearanceFlagLenshelp& lenshelp() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagLenshelp* release_lenshelp(); - ::otclient::protobuf::appearances::AppearanceFlagLenshelp* mutable_lenshelp(); - void set_allocated_lenshelp(::otclient::protobuf::appearances::AppearanceFlagLenshelp* value); - void unsafe_arena_set_allocated_lenshelp(::otclient::protobuf::appearances::AppearanceFlagLenshelp* value); - ::otclient::protobuf::appearances::AppearanceFlagLenshelp* unsafe_arena_release_lenshelp(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagLenshelp& _internal_lenshelp() const; - ::otclient::protobuf::appearances::AppearanceFlagLenshelp* _internal_mutable_lenshelp(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagClothes clothes = 34; - bool has_clothes() const; - void clear_clothes() ; - const ::otclient::protobuf::appearances::AppearanceFlagClothes& clothes() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagClothes* release_clothes(); - ::otclient::protobuf::appearances::AppearanceFlagClothes* mutable_clothes(); - void set_allocated_clothes(::otclient::protobuf::appearances::AppearanceFlagClothes* value); - void unsafe_arena_set_allocated_clothes(::otclient::protobuf::appearances::AppearanceFlagClothes* value); - ::otclient::protobuf::appearances::AppearanceFlagClothes* unsafe_arena_release_clothes(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagClothes& _internal_clothes() const; - ::otclient::protobuf::appearances::AppearanceFlagClothes* _internal_mutable_clothes(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagDefaultAction default_action = 35; - bool has_default_action() const; - void clear_default_action() ; - const ::otclient::protobuf::appearances::AppearanceFlagDefaultAction& default_action() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* release_default_action(); - ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* mutable_default_action(); - void set_allocated_default_action(::otclient::protobuf::appearances::AppearanceFlagDefaultAction* value); - void unsafe_arena_set_allocated_default_action(::otclient::protobuf::appearances::AppearanceFlagDefaultAction* value); - ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* unsafe_arena_release_default_action(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagDefaultAction& _internal_default_action() const; - ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* _internal_mutable_default_action(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagMarket market = 36; - bool has_market() const; - void clear_market() ; - const ::otclient::protobuf::appearances::AppearanceFlagMarket& market() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagMarket* release_market(); - ::otclient::protobuf::appearances::AppearanceFlagMarket* mutable_market(); - void set_allocated_market(::otclient::protobuf::appearances::AppearanceFlagMarket* value); - void unsafe_arena_set_allocated_market(::otclient::protobuf::appearances::AppearanceFlagMarket* value); - ::otclient::protobuf::appearances::AppearanceFlagMarket* unsafe_arena_release_market(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagMarket& _internal_market() const; - ::otclient::protobuf::appearances::AppearanceFlagMarket* _internal_mutable_market(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagChangedToExpire changedtoexpire = 41; - bool has_changedtoexpire() const; - void clear_changedtoexpire() ; - const ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire& changedtoexpire() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* release_changedtoexpire(); - ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* mutable_changedtoexpire(); - void set_allocated_changedtoexpire(::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* value); - void unsafe_arena_set_allocated_changedtoexpire(::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* value); - ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* unsafe_arena_release_changedtoexpire(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire& _internal_changedtoexpire() const; - ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* _internal_mutable_changedtoexpire(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagCyclopedia cyclopediaitem = 44; - bool has_cyclopediaitem() const; - void clear_cyclopediaitem() ; - const ::otclient::protobuf::appearances::AppearanceFlagCyclopedia& cyclopediaitem() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* release_cyclopediaitem(); - ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* mutable_cyclopediaitem(); - void set_allocated_cyclopediaitem(::otclient::protobuf::appearances::AppearanceFlagCyclopedia* value); - void unsafe_arena_set_allocated_cyclopediaitem(::otclient::protobuf::appearances::AppearanceFlagCyclopedia* value); - ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* unsafe_arena_release_cyclopediaitem(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagCyclopedia& _internal_cyclopediaitem() const; - ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* _internal_mutable_cyclopediaitem(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlagUpgradeClassification upgradeclassification = 48; - bool has_upgradeclassification() const; - void clear_upgradeclassification() ; - const ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification& upgradeclassification() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* release_upgradeclassification(); - ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* mutable_upgradeclassification(); - void set_allocated_upgradeclassification(::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* value); - void unsafe_arena_set_allocated_upgradeclassification(::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* value); - ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* unsafe_arena_release_upgradeclassification(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification& _internal_upgradeclassification() const; - ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* _internal_mutable_upgradeclassification(); - - public: - // optional bool clip = 2; - bool has_clip() const; - void clear_clip() ; - bool clip() const; - void set_clip(bool value); - - private: - bool _internal_clip() const; - void _internal_set_clip(bool value); - - public: - // optional bool bottom = 3; - bool has_bottom() const; - void clear_bottom() ; - bool bottom() const; - void set_bottom(bool value); - - private: - bool _internal_bottom() const; - void _internal_set_bottom(bool value); - - public: - // optional bool top = 4; - bool has_top() const; - void clear_top() ; - bool top() const; - void set_top(bool value); - - private: - bool _internal_top() const; - void _internal_set_top(bool value); - - public: - // optional bool container = 5; - bool has_container() const; - void clear_container() ; - bool container() const; - void set_container(bool value); - - private: - bool _internal_container() const; - void _internal_set_container(bool value); - - public: - // optional bool cumulative = 6; - bool has_cumulative() const; - void clear_cumulative() ; - bool cumulative() const; - void set_cumulative(bool value); - - private: - bool _internal_cumulative() const; - void _internal_set_cumulative(bool value); - - public: - // optional bool usable = 7; - bool has_usable() const; - void clear_usable() ; - bool usable() const; - void set_usable(bool value); - - private: - bool _internal_usable() const; - void _internal_set_usable(bool value); - - public: - // optional bool forceuse = 8; - bool has_forceuse() const; - void clear_forceuse() ; - bool forceuse() const; - void set_forceuse(bool value); - - private: - bool _internal_forceuse() const; - void _internal_set_forceuse(bool value); - - public: - // optional bool multiuse = 9; - bool has_multiuse() const; - void clear_multiuse() ; - bool multiuse() const; - void set_multiuse(bool value); - - private: - bool _internal_multiuse() const; - void _internal_set_multiuse(bool value); - - public: - // optional bool liquidpool = 12; - bool has_liquidpool() const; - void clear_liquidpool() ; - bool liquidpool() const; - void set_liquidpool(bool value); - - private: - bool _internal_liquidpool() const; - void _internal_set_liquidpool(bool value); - - public: - // optional bool unpass = 13; - bool has_unpass() const; - void clear_unpass() ; - bool unpass() const; - void set_unpass(bool value); - - private: - bool _internal_unpass() const; - void _internal_set_unpass(bool value); - - public: - // optional bool unmove = 14; - bool has_unmove() const; - void clear_unmove() ; - bool unmove() const; - void set_unmove(bool value); - - private: - bool _internal_unmove() const; - void _internal_set_unmove(bool value); - - public: - // optional bool unsight = 15; - bool has_unsight() const; - void clear_unsight() ; - bool unsight() const; - void set_unsight(bool value); - - private: - bool _internal_unsight() const; - void _internal_set_unsight(bool value); - - public: - // optional bool avoid = 16; - bool has_avoid() const; - void clear_avoid() ; - bool avoid() const; - void set_avoid(bool value); - - private: - bool _internal_avoid() const; - void _internal_set_avoid(bool value); - - public: - // optional bool no_movement_animation = 17; - bool has_no_movement_animation() const; - void clear_no_movement_animation() ; - bool no_movement_animation() const; - void set_no_movement_animation(bool value); - - private: - bool _internal_no_movement_animation() const; - void _internal_set_no_movement_animation(bool value); - - public: - // optional bool take = 18; - bool has_take() const; - void clear_take() ; - bool take() const; - void set_take(bool value); - - private: - bool _internal_take() const; - void _internal_set_take(bool value); - - public: - // optional bool liquidcontainer = 19; - bool has_liquidcontainer() const; - void clear_liquidcontainer() ; - bool liquidcontainer() const; - void set_liquidcontainer(bool value); - - private: - bool _internal_liquidcontainer() const; - void _internal_set_liquidcontainer(bool value); - - public: - // optional bool hang = 20; - bool has_hang() const; - void clear_hang() ; - bool hang() const; - void set_hang(bool value); - - private: - bool _internal_hang() const; - void _internal_set_hang(bool value); - - public: - // optional bool rotate = 22; - bool has_rotate() const; - void clear_rotate() ; - bool rotate() const; - void set_rotate(bool value); - - private: - bool _internal_rotate() const; - void _internal_set_rotate(bool value); - - public: - // optional bool dont_hide = 24; - bool has_dont_hide() const; - void clear_dont_hide() ; - bool dont_hide() const; - void set_dont_hide(bool value); - - private: - bool _internal_dont_hide() const; - void _internal_set_dont_hide(bool value); - - public: - // optional bool translucent = 25; - bool has_translucent() const; - void clear_translucent() ; - bool translucent() const; - void set_translucent(bool value); - - private: - bool _internal_translucent() const; - void _internal_set_translucent(bool value); - - public: - // optional bool lying_object = 28; - bool has_lying_object() const; - void clear_lying_object() ; - bool lying_object() const; - void set_lying_object(bool value); - - private: - bool _internal_lying_object() const; - void _internal_set_lying_object(bool value); - - public: - // optional bool animate_always = 29; - bool has_animate_always() const; - void clear_animate_always() ; - bool animate_always() const; - void set_animate_always(bool value); - - private: - bool _internal_animate_always() const; - void _internal_set_animate_always(bool value); - - public: - // optional bool fullbank = 32; - bool has_fullbank() const; - void clear_fullbank() ; - bool fullbank() const; - void set_fullbank(bool value); - - private: - bool _internal_fullbank() const; - void _internal_set_fullbank(bool value); - - public: - // optional bool ignore_look = 33; - bool has_ignore_look() const; - void clear_ignore_look() ; - bool ignore_look() const; - void set_ignore_look(bool value); - - private: - bool _internal_ignore_look() const; - void _internal_set_ignore_look(bool value); - - public: - // optional bool wrap = 37; - bool has_wrap() const; - void clear_wrap() ; - bool wrap() const; - void set_wrap(bool value); - - private: - bool _internal_wrap() const; - void _internal_set_wrap(bool value); - - public: - // optional bool unwrap = 38; - bool has_unwrap() const; - void clear_unwrap() ; - bool unwrap() const; - void set_unwrap(bool value); - - private: - bool _internal_unwrap() const; - void _internal_set_unwrap(bool value); - - public: - // optional bool topeffect = 39; - bool has_topeffect() const; - void clear_topeffect() ; - bool topeffect() const; - void set_topeffect(bool value); - - private: - bool _internal_topeffect() const; - void _internal_set_topeffect(bool value); - - public: - // optional bool corpse = 42; - bool has_corpse() const; - void clear_corpse() ; - bool corpse() const; - void set_corpse(bool value); - - private: - bool _internal_corpse() const; - void _internal_set_corpse(bool value); - - public: - // optional bool player_corpse = 43; - bool has_player_corpse() const; - void clear_player_corpse() ; - bool player_corpse() const; - void set_player_corpse(bool value); - - private: - bool _internal_player_corpse() const; - void _internal_set_player_corpse(bool value); - - public: - // optional bool ammo = 45; - bool has_ammo() const; - void clear_ammo() ; - bool ammo() const; - void set_ammo(bool value); - - private: - bool _internal_ammo() const; - void _internal_set_ammo(bool value); - - public: - // optional bool show_off_socket = 46; - bool has_show_off_socket() const; - void clear_show_off_socket() ; - bool show_off_socket() const; - void set_show_off_socket(bool value); - - private: - bool _internal_show_off_socket() const; - void _internal_set_show_off_socket(bool value); - - public: - // optional bool reportable = 47; - bool has_reportable() const; - void clear_reportable() ; - bool reportable() const; - void set_reportable(bool value); - - private: - bool _internal_reportable() const; - void _internal_set_reportable(bool value); - - public: - // optional bool reverse_addons_east = 49; - bool has_reverse_addons_east() const; - void clear_reverse_addons_east() ; - bool reverse_addons_east() const; - void set_reverse_addons_east(bool value); - - private: - bool _internal_reverse_addons_east() const; - void _internal_set_reverse_addons_east(bool value); - - public: - // optional bool reverse_addons_west = 50; - bool has_reverse_addons_west() const; - void clear_reverse_addons_west() ; - bool reverse_addons_west() const; - void set_reverse_addons_west(bool value); - - private: - bool _internal_reverse_addons_west() const; - void _internal_set_reverse_addons_west(bool value); - - public: - // optional bool reverse_addons_south = 51; - bool has_reverse_addons_south() const; - void clear_reverse_addons_south() ; - bool reverse_addons_south() const; - void set_reverse_addons_south(bool value); - - private: - bool _internal_reverse_addons_south() const; - void _internal_set_reverse_addons_south(bool value); - - public: - // optional bool reverse_addons_north = 52; - bool has_reverse_addons_north() const; - void clear_reverse_addons_north() ; - bool reverse_addons_north() const; - void set_reverse_addons_north(bool value); - - private: - bool _internal_reverse_addons_north() const; - void _internal_set_reverse_addons_north(bool value); - - public: - // optional bool wearout = 53; - bool has_wearout() const; - void clear_wearout() ; - bool wearout() const; - void set_wearout(bool value); - - private: - bool _internal_wearout() const; - void _internal_set_wearout(bool value); - - public: - // optional bool clockexpire = 54; - bool has_clockexpire() const; - void clear_clockexpire() ; - bool clockexpire() const; - void set_clockexpire(bool value); - - private: - bool _internal_clockexpire() const; - void _internal_set_clockexpire(bool value); - - public: - // optional bool expire = 55; - bool has_expire() const; - void clear_expire() ; - bool expire() const; - void set_expire(bool value); - - private: - bool _internal_expire() const; - void _internal_set_expire(bool value); - - public: - // optional bool expirestop = 56; - bool has_expirestop() const; - void clear_expirestop() ; - bool expirestop() const; - void set_expirestop(bool value); - - private: - bool _internal_expirestop() const; - void _internal_set_expirestop(bool value); - - public: - // optional bool deco_kit = 57; - bool has_deco_kit() const; - void clear_deco_kit() ; - bool deco_kit() const; - void set_deco_kit(bool value); - - private: - bool _internal_deco_kit() const; - void _internal_set_deco_kit(bool value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.AppearanceFlags) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 5, 57, 16, - 0, 9> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<2> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::AppearanceFlagNPC > npcsaledata_; - ::otclient::protobuf::appearances::AppearanceFlagBank* bank_; - ::otclient::protobuf::appearances::AppearanceFlagWrite* write_; - ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* write_once_; - ::otclient::protobuf::appearances::AppearanceFlagHook* hook_; - ::otclient::protobuf::appearances::AppearanceFlagLight* light_; - ::otclient::protobuf::appearances::AppearanceFlagShift* shift_; - ::otclient::protobuf::appearances::AppearanceFlagHeight* height_; - ::otclient::protobuf::appearances::AppearanceFlagAutomap* automap_; - ::otclient::protobuf::appearances::AppearanceFlagLenshelp* lenshelp_; - ::otclient::protobuf::appearances::AppearanceFlagClothes* clothes_; - ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* default_action_; - ::otclient::protobuf::appearances::AppearanceFlagMarket* market_; - ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* changedtoexpire_; - ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* cyclopediaitem_; - ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* upgradeclassification_; - bool clip_; - bool bottom_; - bool top_; - bool container_; - bool cumulative_; - bool usable_; - bool forceuse_; - bool multiuse_; - bool liquidpool_; - bool unpass_; - bool unmove_; - bool unsight_; - bool avoid_; - bool no_movement_animation_; - bool take_; - bool liquidcontainer_; - bool hang_; - bool rotate_; - bool dont_hide_; - bool translucent_; - bool lying_object_; - bool animate_always_; - bool fullbank_; - bool ignore_look_; - bool wrap_; - bool unwrap_; - bool topeffect_; - bool corpse_; - bool player_corpse_; - bool ammo_; - bool show_off_socket_; - bool reportable_; - bool reverse_addons_east_; - bool reverse_addons_west_; - bool reverse_addons_south_; - bool reverse_addons_north_; - bool wearout_; - bool clockexpire_; - bool expire_; - bool expirestop_; - bool deco_kit_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class SpriteInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.SpriteInfo) */ { - public: - inline SpriteInfo() : SpriteInfo(nullptr) {} - ~SpriteInfo() override; - template - explicit PROTOBUF_CONSTEXPR SpriteInfo(::google::protobuf::internal::ConstantInitialized); - - inline SpriteInfo(const SpriteInfo& from) - : SpriteInfo(nullptr, from) {} - SpriteInfo(SpriteInfo&& from) noexcept - : SpriteInfo() { - *this = ::std::move(from); - } - - inline SpriteInfo& operator=(const SpriteInfo& from) { - CopyFrom(from); - return *this; - } - inline SpriteInfo& operator=(SpriteInfo&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SpriteInfo& default_instance() { - return *internal_default_instance(); - } - static inline const SpriteInfo* internal_default_instance() { - return reinterpret_cast( - &_SpriteInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(SpriteInfo& a, SpriteInfo& b) { - a.Swap(&b); - } - inline void Swap(SpriteInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SpriteInfo* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SpriteInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SpriteInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SpriteInfo& from) { - SpriteInfo::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SpriteInfo* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.SpriteInfo"; - } - protected: - explicit SpriteInfo(::google::protobuf::Arena* arena); - SpriteInfo(::google::protobuf::Arena* arena, const SpriteInfo& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSpriteIdFieldNumber = 5, - kBoundingBoxPerDirectionFieldNumber = 9, - kAnimationFieldNumber = 6, - kPatternWidthFieldNumber = 1, - kPatternHeightFieldNumber = 2, - kPatternDepthFieldNumber = 3, - kLayersFieldNumber = 4, - kBoundingSquareFieldNumber = 7, - kIsOpaqueFieldNumber = 8, - }; - // repeated uint32 sprite_id = 5; - int sprite_id_size() const; - private: - int _internal_sprite_id_size() const; - - public: - void clear_sprite_id() ; - ::uint32_t sprite_id(int index) const; - void set_sprite_id(int index, ::uint32_t value); - void add_sprite_id(::uint32_t value); - const ::google::protobuf::RepeatedField<::uint32_t>& sprite_id() const; - ::google::protobuf::RepeatedField<::uint32_t>* mutable_sprite_id(); - - private: - const ::google::protobuf::RepeatedField<::uint32_t>& _internal_sprite_id() const; - ::google::protobuf::RepeatedField<::uint32_t>* _internal_mutable_sprite_id(); - - public: - // repeated .otclient.protobuf.appearances.Box bounding_box_per_direction = 9; - int bounding_box_per_direction_size() const; - private: - int _internal_bounding_box_per_direction_size() const; - - public: - void clear_bounding_box_per_direction() ; - ::otclient::protobuf::appearances::Box* mutable_bounding_box_per_direction(int index); - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Box >* - mutable_bounding_box_per_direction(); - private: - const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Box>& _internal_bounding_box_per_direction() const; - ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Box>* _internal_mutable_bounding_box_per_direction(); - public: - const ::otclient::protobuf::appearances::Box& bounding_box_per_direction(int index) const; - ::otclient::protobuf::appearances::Box* add_bounding_box_per_direction(); - const ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Box >& - bounding_box_per_direction() const; - // optional .otclient.protobuf.appearances.SpriteAnimation animation = 6; - bool has_animation() const; - void clear_animation() ; - const ::otclient::protobuf::appearances::SpriteAnimation& animation() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::SpriteAnimation* release_animation(); - ::otclient::protobuf::appearances::SpriteAnimation* mutable_animation(); - void set_allocated_animation(::otclient::protobuf::appearances::SpriteAnimation* value); - void unsafe_arena_set_allocated_animation(::otclient::protobuf::appearances::SpriteAnimation* value); - ::otclient::protobuf::appearances::SpriteAnimation* unsafe_arena_release_animation(); - - private: - const ::otclient::protobuf::appearances::SpriteAnimation& _internal_animation() const; - ::otclient::protobuf::appearances::SpriteAnimation* _internal_mutable_animation(); - - public: - // optional uint32 pattern_width = 1; - bool has_pattern_width() const; - void clear_pattern_width() ; - ::uint32_t pattern_width() const; - void set_pattern_width(::uint32_t value); - - private: - ::uint32_t _internal_pattern_width() const; - void _internal_set_pattern_width(::uint32_t value); - - public: - // optional uint32 pattern_height = 2; - bool has_pattern_height() const; - void clear_pattern_height() ; - ::uint32_t pattern_height() const; - void set_pattern_height(::uint32_t value); - - private: - ::uint32_t _internal_pattern_height() const; - void _internal_set_pattern_height(::uint32_t value); - - public: - // optional uint32 pattern_depth = 3; - bool has_pattern_depth() const; - void clear_pattern_depth() ; - ::uint32_t pattern_depth() const; - void set_pattern_depth(::uint32_t value); - - private: - ::uint32_t _internal_pattern_depth() const; - void _internal_set_pattern_depth(::uint32_t value); - - public: - // optional uint32 layers = 4; - bool has_layers() const; - void clear_layers() ; - ::uint32_t layers() const; - void set_layers(::uint32_t value); - - private: - ::uint32_t _internal_layers() const; - void _internal_set_layers(::uint32_t value); - - public: - // optional uint32 bounding_square = 7; - bool has_bounding_square() const; - void clear_bounding_square() ; - ::uint32_t bounding_square() const; - void set_bounding_square(::uint32_t value); - - private: - ::uint32_t _internal_bounding_square() const; - void _internal_set_bounding_square(::uint32_t value); - - public: - // optional bool is_opaque = 8; - bool has_is_opaque() const; - void clear_is_opaque() ; - bool is_opaque() const; - void set_is_opaque(bool value); - - private: - bool _internal_is_opaque() const; - void _internal_set_is_opaque(bool value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.SpriteInfo) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 9, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField<::uint32_t> sprite_id_; - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Box > bounding_box_per_direction_; - ::otclient::protobuf::appearances::SpriteAnimation* animation_; - ::uint32_t pattern_width_; - ::uint32_t pattern_height_; - ::uint32_t pattern_depth_; - ::uint32_t layers_; - ::uint32_t bounding_square_; - bool is_opaque_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class FrameGroup final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.FrameGroup) */ { - public: - inline FrameGroup() : FrameGroup(nullptr) {} - ~FrameGroup() override; - template - explicit PROTOBUF_CONSTEXPR FrameGroup(::google::protobuf::internal::ConstantInitialized); - - inline FrameGroup(const FrameGroup& from) - : FrameGroup(nullptr, from) {} - FrameGroup(FrameGroup&& from) noexcept - : FrameGroup() { - *this = ::std::move(from); - } - - inline FrameGroup& operator=(const FrameGroup& from) { - CopyFrom(from); - return *this; - } - inline FrameGroup& operator=(FrameGroup&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FrameGroup& default_instance() { - return *internal_default_instance(); - } - static inline const FrameGroup* internal_default_instance() { - return reinterpret_cast( - &_FrameGroup_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(FrameGroup& a, FrameGroup& b) { - a.Swap(&b); - } - inline void Swap(FrameGroup* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FrameGroup* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FrameGroup* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FrameGroup& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FrameGroup& from) { - FrameGroup::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(FrameGroup* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.FrameGroup"; - } - protected: - explicit FrameGroup(::google::protobuf::Arena* arena); - FrameGroup(::google::protobuf::Arena* arena, const FrameGroup& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSpriteInfoFieldNumber = 3, - kFixedFrameGroupFieldNumber = 1, - kIdFieldNumber = 2, - }; - // optional .otclient.protobuf.appearances.SpriteInfo sprite_info = 3; - bool has_sprite_info() const; - void clear_sprite_info() ; - const ::otclient::protobuf::appearances::SpriteInfo& sprite_info() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::SpriteInfo* release_sprite_info(); - ::otclient::protobuf::appearances::SpriteInfo* mutable_sprite_info(); - void set_allocated_sprite_info(::otclient::protobuf::appearances::SpriteInfo* value); - void unsafe_arena_set_allocated_sprite_info(::otclient::protobuf::appearances::SpriteInfo* value); - ::otclient::protobuf::appearances::SpriteInfo* unsafe_arena_release_sprite_info(); - - private: - const ::otclient::protobuf::appearances::SpriteInfo& _internal_sprite_info() const; - ::otclient::protobuf::appearances::SpriteInfo* _internal_mutable_sprite_info(); - - public: - // optional .otclient.protobuf.appearances.FIXED_FRAME_GROUP fixed_frame_group = 1; - bool has_fixed_frame_group() const; - void clear_fixed_frame_group() ; - ::otclient::protobuf::appearances::FIXED_FRAME_GROUP fixed_frame_group() const; - void set_fixed_frame_group(::otclient::protobuf::appearances::FIXED_FRAME_GROUP value); - - private: - ::otclient::protobuf::appearances::FIXED_FRAME_GROUP _internal_fixed_frame_group() const; - void _internal_set_fixed_frame_group(::otclient::protobuf::appearances::FIXED_FRAME_GROUP value); - - public: - // optional uint32 id = 2; - bool has_id() const; - void clear_id() ; - ::uint32_t id() const; - void set_id(::uint32_t value); - - private: - ::uint32_t _internal_id() const; - void _internal_set_id(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.FrameGroup) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::otclient::protobuf::appearances::SpriteInfo* sprite_info_; - int fixed_frame_group_; - ::uint32_t id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class Appearance final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.Appearance) */ { - public: - inline Appearance() : Appearance(nullptr) {} - ~Appearance() override; - template - explicit PROTOBUF_CONSTEXPR Appearance(::google::protobuf::internal::ConstantInitialized); - - inline Appearance(const Appearance& from) - : Appearance(nullptr, from) {} - Appearance(Appearance&& from) noexcept - : Appearance() { - *this = ::std::move(from); - } - - inline Appearance& operator=(const Appearance& from) { - CopyFrom(from); - return *this; - } - inline Appearance& operator=(Appearance&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Appearance& default_instance() { - return *internal_default_instance(); - } - static inline const Appearance* internal_default_instance() { - return reinterpret_cast( - &_Appearance_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(Appearance& a, Appearance& b) { - a.Swap(&b); - } - inline void Swap(Appearance* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Appearance* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Appearance* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Appearance& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Appearance& from) { - Appearance::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Appearance* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.Appearance"; - } - protected: - explicit Appearance(::google::protobuf::Arena* arena); - Appearance(::google::protobuf::Arena* arena, const Appearance& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFrameGroupFieldNumber = 2, - kNameFieldNumber = 4, - kDescriptionFieldNumber = 5, - kFlagsFieldNumber = 3, - kIdFieldNumber = 1, - }; - // repeated .otclient.protobuf.appearances.FrameGroup frame_group = 2; - int frame_group_size() const; - private: - int _internal_frame_group_size() const; - - public: - void clear_frame_group() ; - ::otclient::protobuf::appearances::FrameGroup* mutable_frame_group(int index); - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::FrameGroup >* - mutable_frame_group(); - private: - const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::FrameGroup>& _internal_frame_group() const; - ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::FrameGroup>* _internal_mutable_frame_group(); - public: - const ::otclient::protobuf::appearances::FrameGroup& frame_group(int index) const; - ::otclient::protobuf::appearances::FrameGroup* add_frame_group(); - const ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::FrameGroup >& - frame_group() const; - // optional string name = 4; - bool has_name() const; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // optional string description = 5; - bool has_description() const; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - - private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - - public: - // optional .otclient.protobuf.appearances.AppearanceFlags flags = 3; - bool has_flags() const; - void clear_flags() ; - const ::otclient::protobuf::appearances::AppearanceFlags& flags() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::AppearanceFlags* release_flags(); - ::otclient::protobuf::appearances::AppearanceFlags* mutable_flags(); - void set_allocated_flags(::otclient::protobuf::appearances::AppearanceFlags* value); - void unsafe_arena_set_allocated_flags(::otclient::protobuf::appearances::AppearanceFlags* value); - ::otclient::protobuf::appearances::AppearanceFlags* unsafe_arena_release_flags(); - - private: - const ::otclient::protobuf::appearances::AppearanceFlags& _internal_flags() const; - ::otclient::protobuf::appearances::AppearanceFlags* _internal_mutable_flags(); - - public: - // optional uint32 id = 1; - bool has_id() const; - void clear_id() ; - ::uint32_t id() const; - void set_id(::uint32_t value); - - private: - ::uint32_t _internal_id() const; - void _internal_set_id(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.Appearance) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 64, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::FrameGroup > frame_group_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::otclient::protobuf::appearances::AppearanceFlags* flags_; - ::uint32_t id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -};// ------------------------------------------------------------------- - -class Appearances final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:otclient.protobuf.appearances.Appearances) */ { - public: - inline Appearances() : Appearances(nullptr) {} - ~Appearances() override; - template - explicit PROTOBUF_CONSTEXPR Appearances(::google::protobuf::internal::ConstantInitialized); - - inline Appearances(const Appearances& from) - : Appearances(nullptr, from) {} - Appearances(Appearances&& from) noexcept - : Appearances() { - *this = ::std::move(from); - } - - inline Appearances& operator=(const Appearances& from) { - CopyFrom(from); - return *this; - } - inline Appearances& operator=(Appearances&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Appearances& default_instance() { - return *internal_default_instance(); - } - static inline const Appearances* internal_default_instance() { - return reinterpret_cast( - &_Appearances_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Appearances& a, Appearances& b) { - a.Swap(&b); - } - inline void Swap(Appearances* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Appearances* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Appearances* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Appearances& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Appearances& from) { - Appearances::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Appearances* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "otclient.protobuf.appearances.Appearances"; - } - protected: - explicit Appearances(::google::protobuf::Arena* arena); - Appearances(::google::protobuf::Arena* arena, const Appearances& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kObjectFieldNumber = 1, - kOutfitFieldNumber = 2, - kEffectFieldNumber = 3, - kMissileFieldNumber = 4, - kSpecialMeaningAppearanceIdsFieldNumber = 5, - }; - // repeated .otclient.protobuf.appearances.Appearance object = 1; - int object_size() const; - private: - int _internal_object_size() const; - - public: - void clear_object() ; - ::otclient::protobuf::appearances::Appearance* mutable_object(int index); - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance >* - mutable_object(); - private: - const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& _internal_object() const; - ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* _internal_mutable_object(); - public: - const ::otclient::protobuf::appearances::Appearance& object(int index) const; - ::otclient::protobuf::appearances::Appearance* add_object(); - const ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance >& - object() const; - // repeated .otclient.protobuf.appearances.Appearance outfit = 2; - int outfit_size() const; - private: - int _internal_outfit_size() const; - - public: - void clear_outfit() ; - ::otclient::protobuf::appearances::Appearance* mutable_outfit(int index); - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance >* - mutable_outfit(); - private: - const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& _internal_outfit() const; - ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* _internal_mutable_outfit(); - public: - const ::otclient::protobuf::appearances::Appearance& outfit(int index) const; - ::otclient::protobuf::appearances::Appearance* add_outfit(); - const ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance >& - outfit() const; - // repeated .otclient.protobuf.appearances.Appearance effect = 3; - int effect_size() const; - private: - int _internal_effect_size() const; - - public: - void clear_effect() ; - ::otclient::protobuf::appearances::Appearance* mutable_effect(int index); - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance >* - mutable_effect(); - private: - const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& _internal_effect() const; - ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* _internal_mutable_effect(); - public: - const ::otclient::protobuf::appearances::Appearance& effect(int index) const; - ::otclient::protobuf::appearances::Appearance* add_effect(); - const ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance >& - effect() const; - // repeated .otclient.protobuf.appearances.Appearance missile = 4; - int missile_size() const; - private: - int _internal_missile_size() const; - - public: - void clear_missile() ; - ::otclient::protobuf::appearances::Appearance* mutable_missile(int index); - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance >* - mutable_missile(); - private: - const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& _internal_missile() const; - ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* _internal_mutable_missile(); - public: - const ::otclient::protobuf::appearances::Appearance& missile(int index) const; - ::otclient::protobuf::appearances::Appearance* add_missile(); - const ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance >& - missile() const; - // optional .otclient.protobuf.appearances.SpecialMeaningAppearanceIds special_meaning_appearance_ids = 5; - bool has_special_meaning_appearance_ids() const; - void clear_special_meaning_appearance_ids() ; - const ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds& special_meaning_appearance_ids() const; - PROTOBUF_NODISCARD ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* release_special_meaning_appearance_ids(); - ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* mutable_special_meaning_appearance_ids(); - void set_allocated_special_meaning_appearance_ids(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* value); - void unsafe_arena_set_allocated_special_meaning_appearance_ids(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* value); - ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* unsafe_arena_release_special_meaning_appearance_ids(); - - private: - const ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds& _internal_special_meaning_appearance_ids() const; - ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* _internal_mutable_special_meaning_appearance_ids(); - - public: - // @@protoc_insertion_point(class_scope:otclient.protobuf.appearances.Appearances) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 5, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance > object_; - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance > outfit_; - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance > effect_; - ::google::protobuf::RepeatedPtrField< ::otclient::protobuf::appearances::Appearance > missile_; - ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* special_meaning_appearance_ids_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_appearances_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// Coordinate - -// optional uint32 x = 1; -inline bool Coordinate::has_x() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void Coordinate::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t Coordinate::x() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Coordinate.x) - return _internal_x(); -} -inline void Coordinate::set_x(::uint32_t value) { - _internal_set_x(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.Coordinate.x) -} -inline ::uint32_t Coordinate::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void Coordinate::_internal_set_x(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.x_ = value; -} - -// optional uint32 y = 2; -inline bool Coordinate::has_y() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void Coordinate::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::uint32_t Coordinate::y() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Coordinate.y) - return _internal_y(); -} -inline void Coordinate::set_y(::uint32_t value) { - _internal_set_y(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.Coordinate.y) -} -inline ::uint32_t Coordinate::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void Coordinate::_internal_set_y(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.y_ = value; -} - -// optional uint32 z = 3; -inline bool Coordinate::has_z() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void Coordinate::clear_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.z_ = 0u; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline ::uint32_t Coordinate::z() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Coordinate.z) - return _internal_z(); -} -inline void Coordinate::set_z(::uint32_t value) { - _internal_set_z(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.Coordinate.z) -} -inline ::uint32_t Coordinate::_internal_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.z_; -} -inline void Coordinate::_internal_set_z(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.z_ = value; -} - -// ------------------------------------------------------------------- - -// Appearances - -// repeated .otclient.protobuf.appearances.Appearance object = 1; -inline int Appearances::_internal_object_size() const { - return _internal_object().size(); -} -inline int Appearances::object_size() const { - return _internal_object_size(); -} -inline void Appearances::clear_object() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.object_.Clear(); -} -inline ::otclient::protobuf::appearances::Appearance* Appearances::mutable_object(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.Appearances.object) - return _internal_mutable_object()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* Appearances::mutable_object() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:otclient.protobuf.appearances.Appearances.object) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_object(); -} -inline const ::otclient::protobuf::appearances::Appearance& Appearances::object(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Appearances.object) - return _internal_object().Get(index); -} -inline ::otclient::protobuf::appearances::Appearance* Appearances::add_object() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::otclient::protobuf::appearances::Appearance* _add = _internal_mutable_object()->Add(); - // @@protoc_insertion_point(field_add:otclient.protobuf.appearances.Appearances.object) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& Appearances::object() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:otclient.protobuf.appearances.Appearances.object) - return _internal_object(); -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& -Appearances::_internal_object() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.object_; -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* -Appearances::_internal_mutable_object() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.object_; -} - -// repeated .otclient.protobuf.appearances.Appearance outfit = 2; -inline int Appearances::_internal_outfit_size() const { - return _internal_outfit().size(); -} -inline int Appearances::outfit_size() const { - return _internal_outfit_size(); -} -inline void Appearances::clear_outfit() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.outfit_.Clear(); -} -inline ::otclient::protobuf::appearances::Appearance* Appearances::mutable_outfit(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.Appearances.outfit) - return _internal_mutable_outfit()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* Appearances::mutable_outfit() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:otclient.protobuf.appearances.Appearances.outfit) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_outfit(); -} -inline const ::otclient::protobuf::appearances::Appearance& Appearances::outfit(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Appearances.outfit) - return _internal_outfit().Get(index); -} -inline ::otclient::protobuf::appearances::Appearance* Appearances::add_outfit() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::otclient::protobuf::appearances::Appearance* _add = _internal_mutable_outfit()->Add(); - // @@protoc_insertion_point(field_add:otclient.protobuf.appearances.Appearances.outfit) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& Appearances::outfit() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:otclient.protobuf.appearances.Appearances.outfit) - return _internal_outfit(); -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& -Appearances::_internal_outfit() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.outfit_; -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* -Appearances::_internal_mutable_outfit() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.outfit_; -} - -// repeated .otclient.protobuf.appearances.Appearance effect = 3; -inline int Appearances::_internal_effect_size() const { - return _internal_effect().size(); -} -inline int Appearances::effect_size() const { - return _internal_effect_size(); -} -inline void Appearances::clear_effect() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.effect_.Clear(); -} -inline ::otclient::protobuf::appearances::Appearance* Appearances::mutable_effect(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.Appearances.effect) - return _internal_mutable_effect()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* Appearances::mutable_effect() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:otclient.protobuf.appearances.Appearances.effect) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_effect(); -} -inline const ::otclient::protobuf::appearances::Appearance& Appearances::effect(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Appearances.effect) - return _internal_effect().Get(index); -} -inline ::otclient::protobuf::appearances::Appearance* Appearances::add_effect() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::otclient::protobuf::appearances::Appearance* _add = _internal_mutable_effect()->Add(); - // @@protoc_insertion_point(field_add:otclient.protobuf.appearances.Appearances.effect) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& Appearances::effect() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:otclient.protobuf.appearances.Appearances.effect) - return _internal_effect(); -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& -Appearances::_internal_effect() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.effect_; -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* -Appearances::_internal_mutable_effect() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.effect_; -} - -// repeated .otclient.protobuf.appearances.Appearance missile = 4; -inline int Appearances::_internal_missile_size() const { - return _internal_missile().size(); -} -inline int Appearances::missile_size() const { - return _internal_missile_size(); -} -inline void Appearances::clear_missile() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.missile_.Clear(); -} -inline ::otclient::protobuf::appearances::Appearance* Appearances::mutable_missile(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.Appearances.missile) - return _internal_mutable_missile()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* Appearances::mutable_missile() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:otclient.protobuf.appearances.Appearances.missile) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_missile(); -} -inline const ::otclient::protobuf::appearances::Appearance& Appearances::missile(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Appearances.missile) - return _internal_missile().Get(index); -} -inline ::otclient::protobuf::appearances::Appearance* Appearances::add_missile() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::otclient::protobuf::appearances::Appearance* _add = _internal_mutable_missile()->Add(); - // @@protoc_insertion_point(field_add:otclient.protobuf.appearances.Appearances.missile) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& Appearances::missile() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:otclient.protobuf.appearances.Appearances.missile) - return _internal_missile(); -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>& -Appearances::_internal_missile() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.missile_; -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Appearance>* -Appearances::_internal_mutable_missile() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.missile_; -} - -// optional .otclient.protobuf.appearances.SpecialMeaningAppearanceIds special_meaning_appearance_ids = 5; -inline bool Appearances::has_special_meaning_appearance_ids() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.special_meaning_appearance_ids_ != nullptr); - return value; -} -inline void Appearances::clear_special_meaning_appearance_ids() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.special_meaning_appearance_ids_ != nullptr) _impl_.special_meaning_appearance_ids_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds& Appearances::_internal_special_meaning_appearance_ids() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* p = _impl_.special_meaning_appearance_ids_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_SpecialMeaningAppearanceIds_default_instance_); -} -inline const ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds& Appearances::special_meaning_appearance_ids() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Appearances.special_meaning_appearance_ids) - return _internal_special_meaning_appearance_ids(); -} -inline void Appearances::unsafe_arena_set_allocated_special_meaning_appearance_ids(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.special_meaning_appearance_ids_); - } - _impl_.special_meaning_appearance_ids_ = reinterpret_cast<::otclient::protobuf::appearances::SpecialMeaningAppearanceIds*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.Appearances.special_meaning_appearance_ids) -} -inline ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* Appearances::release_special_meaning_appearance_ids() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* released = _impl_.special_meaning_appearance_ids_; - _impl_.special_meaning_appearance_ids_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* Appearances::unsafe_arena_release_special_meaning_appearance_ids() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.Appearances.special_meaning_appearance_ids) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* temp = _impl_.special_meaning_appearance_ids_; - _impl_.special_meaning_appearance_ids_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* Appearances::_internal_mutable_special_meaning_appearance_ids() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.special_meaning_appearance_ids_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::SpecialMeaningAppearanceIds>(GetArena()); - _impl_.special_meaning_appearance_ids_ = reinterpret_cast<::otclient::protobuf::appearances::SpecialMeaningAppearanceIds*>(p); - } - return _impl_.special_meaning_appearance_ids_; -} -inline ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* Appearances::mutable_special_meaning_appearance_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* _msg = _internal_mutable_special_meaning_appearance_ids(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.Appearances.special_meaning_appearance_ids) - return _msg; -} -inline void Appearances::set_allocated_special_meaning_appearance_ids(::otclient::protobuf::appearances::SpecialMeaningAppearanceIds* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::SpecialMeaningAppearanceIds*>(_impl_.special_meaning_appearance_ids_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::SpecialMeaningAppearanceIds*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.special_meaning_appearance_ids_ = reinterpret_cast<::otclient::protobuf::appearances::SpecialMeaningAppearanceIds*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.Appearances.special_meaning_appearance_ids) -} - -// ------------------------------------------------------------------- - -// SpritePhase - -// optional uint32 duration_min = 1; -inline bool SpritePhase::has_duration_min() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void SpritePhase::clear_duration_min() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.duration_min_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t SpritePhase::duration_min() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpritePhase.duration_min) - return _internal_duration_min(); -} -inline void SpritePhase::set_duration_min(::uint32_t value) { - _internal_set_duration_min(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpritePhase.duration_min) -} -inline ::uint32_t SpritePhase::_internal_duration_min() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.duration_min_; -} -inline void SpritePhase::_internal_set_duration_min(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.duration_min_ = value; -} - -// optional uint32 duration_max = 2; -inline bool SpritePhase::has_duration_max() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void SpritePhase::clear_duration_max() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.duration_max_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::uint32_t SpritePhase::duration_max() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpritePhase.duration_max) - return _internal_duration_max(); -} -inline void SpritePhase::set_duration_max(::uint32_t value) { - _internal_set_duration_max(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpritePhase.duration_max) -} -inline ::uint32_t SpritePhase::_internal_duration_max() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.duration_max_; -} -inline void SpritePhase::_internal_set_duration_max(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.duration_max_ = value; -} - -// ------------------------------------------------------------------- - -// SpriteAnimation - -// optional uint32 default_start_phase = 1; -inline bool SpriteAnimation::has_default_start_phase() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void SpriteAnimation::clear_default_start_phase() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.default_start_phase_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t SpriteAnimation::default_start_phase() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteAnimation.default_start_phase) - return _internal_default_start_phase(); -} -inline void SpriteAnimation::set_default_start_phase(::uint32_t value) { - _internal_set_default_start_phase(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteAnimation.default_start_phase) -} -inline ::uint32_t SpriteAnimation::_internal_default_start_phase() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.default_start_phase_; -} -inline void SpriteAnimation::_internal_set_default_start_phase(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.default_start_phase_ = value; -} - -// optional bool synchronized = 2; -inline bool SpriteAnimation::has_synchronized() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void SpriteAnimation::clear_synchronized() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.synchronized_ = false; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline bool SpriteAnimation::synchronized() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteAnimation.synchronized) - return _internal_synchronized(); -} -inline void SpriteAnimation::set_synchronized(bool value) { - _internal_set_synchronized(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteAnimation.synchronized) -} -inline bool SpriteAnimation::_internal_synchronized() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.synchronized_; -} -inline void SpriteAnimation::_internal_set_synchronized(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.synchronized_ = value; -} - -// optional bool random_start_phase = 3; -inline bool SpriteAnimation::has_random_start_phase() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void SpriteAnimation::clear_random_start_phase() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.random_start_phase_ = false; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline bool SpriteAnimation::random_start_phase() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteAnimation.random_start_phase) - return _internal_random_start_phase(); -} -inline void SpriteAnimation::set_random_start_phase(bool value) { - _internal_set_random_start_phase(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteAnimation.random_start_phase) -} -inline bool SpriteAnimation::_internal_random_start_phase() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.random_start_phase_; -} -inline void SpriteAnimation::_internal_set_random_start_phase(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.random_start_phase_ = value; -} - -// optional .otclient.protobuf.appearances.ANIMATION_LOOP_TYPE loop_type = 4; -inline bool SpriteAnimation::has_loop_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline void SpriteAnimation::clear_loop_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.loop_type_ = -1; - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline ::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE SpriteAnimation::loop_type() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteAnimation.loop_type) - return _internal_loop_type(); -} -inline void SpriteAnimation::set_loop_type(::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE value) { - _internal_set_loop_type(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteAnimation.loop_type) -} -inline ::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE SpriteAnimation::_internal_loop_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE>(_impl_.loop_type_); -} -inline void SpriteAnimation::_internal_set_loop_type(::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - assert(::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE_IsValid(value)); - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.loop_type_ = value; -} - -// optional uint32 loop_count = 5; -inline bool SpriteAnimation::has_loop_count() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline void SpriteAnimation::clear_loop_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.loop_count_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline ::uint32_t SpriteAnimation::loop_count() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteAnimation.loop_count) - return _internal_loop_count(); -} -inline void SpriteAnimation::set_loop_count(::uint32_t value) { - _internal_set_loop_count(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteAnimation.loop_count) -} -inline ::uint32_t SpriteAnimation::_internal_loop_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.loop_count_; -} -inline void SpriteAnimation::_internal_set_loop_count(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.loop_count_ = value; -} - -// repeated .otclient.protobuf.appearances.SpritePhase sprite_phase = 6; -inline int SpriteAnimation::_internal_sprite_phase_size() const { - return _internal_sprite_phase().size(); -} -inline int SpriteAnimation::sprite_phase_size() const { - return _internal_sprite_phase_size(); -} -inline void SpriteAnimation::clear_sprite_phase() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sprite_phase_.Clear(); -} -inline ::otclient::protobuf::appearances::SpritePhase* SpriteAnimation::mutable_sprite_phase(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.SpriteAnimation.sprite_phase) - return _internal_mutable_sprite_phase()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::SpritePhase>* SpriteAnimation::mutable_sprite_phase() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:otclient.protobuf.appearances.SpriteAnimation.sprite_phase) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_sprite_phase(); -} -inline const ::otclient::protobuf::appearances::SpritePhase& SpriteAnimation::sprite_phase(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteAnimation.sprite_phase) - return _internal_sprite_phase().Get(index); -} -inline ::otclient::protobuf::appearances::SpritePhase* SpriteAnimation::add_sprite_phase() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::otclient::protobuf::appearances::SpritePhase* _add = _internal_mutable_sprite_phase()->Add(); - // @@protoc_insertion_point(field_add:otclient.protobuf.appearances.SpriteAnimation.sprite_phase) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::SpritePhase>& SpriteAnimation::sprite_phase() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:otclient.protobuf.appearances.SpriteAnimation.sprite_phase) - return _internal_sprite_phase(); -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::SpritePhase>& -SpriteAnimation::_internal_sprite_phase() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sprite_phase_; -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::SpritePhase>* -SpriteAnimation::_internal_mutable_sprite_phase() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.sprite_phase_; -} - -// ------------------------------------------------------------------- - -// Box - -// optional uint32 x = 1; -inline bool Box::has_x() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void Box::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t Box::x() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Box.x) - return _internal_x(); -} -inline void Box::set_x(::uint32_t value) { - _internal_set_x(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.Box.x) -} -inline ::uint32_t Box::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void Box::_internal_set_x(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.x_ = value; -} - -// optional uint32 y = 2; -inline bool Box::has_y() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void Box::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::uint32_t Box::y() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Box.y) - return _internal_y(); -} -inline void Box::set_y(::uint32_t value) { - _internal_set_y(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.Box.y) -} -inline ::uint32_t Box::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void Box::_internal_set_y(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.y_ = value; -} - -// optional uint32 width = 3; -inline bool Box::has_width() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void Box::clear_width() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.width_ = 0u; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline ::uint32_t Box::width() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Box.width) - return _internal_width(); -} -inline void Box::set_width(::uint32_t value) { - _internal_set_width(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.Box.width) -} -inline ::uint32_t Box::_internal_width() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.width_; -} -inline void Box::_internal_set_width(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.width_ = value; -} - -// optional uint32 height = 4; -inline bool Box::has_height() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline void Box::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline ::uint32_t Box::height() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Box.height) - return _internal_height(); -} -inline void Box::set_height(::uint32_t value) { - _internal_set_height(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.Box.height) -} -inline ::uint32_t Box::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; -} -inline void Box::_internal_set_height(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.height_ = value; -} - -// ------------------------------------------------------------------- - -// SpriteInfo - -// optional uint32 pattern_width = 1; -inline bool SpriteInfo::has_pattern_width() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void SpriteInfo::clear_pattern_width() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pattern_width_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::uint32_t SpriteInfo::pattern_width() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteInfo.pattern_width) - return _internal_pattern_width(); -} -inline void SpriteInfo::set_pattern_width(::uint32_t value) { - _internal_set_pattern_width(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteInfo.pattern_width) -} -inline ::uint32_t SpriteInfo::_internal_pattern_width() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pattern_width_; -} -inline void SpriteInfo::_internal_set_pattern_width(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.pattern_width_ = value; -} - -// optional uint32 pattern_height = 2; -inline bool SpriteInfo::has_pattern_height() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void SpriteInfo::clear_pattern_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pattern_height_ = 0u; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline ::uint32_t SpriteInfo::pattern_height() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteInfo.pattern_height) - return _internal_pattern_height(); -} -inline void SpriteInfo::set_pattern_height(::uint32_t value) { - _internal_set_pattern_height(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteInfo.pattern_height) -} -inline ::uint32_t SpriteInfo::_internal_pattern_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pattern_height_; -} -inline void SpriteInfo::_internal_set_pattern_height(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.pattern_height_ = value; -} - -// optional uint32 pattern_depth = 3; -inline bool SpriteInfo::has_pattern_depth() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline void SpriteInfo::clear_pattern_depth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pattern_depth_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline ::uint32_t SpriteInfo::pattern_depth() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteInfo.pattern_depth) - return _internal_pattern_depth(); -} -inline void SpriteInfo::set_pattern_depth(::uint32_t value) { - _internal_set_pattern_depth(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteInfo.pattern_depth) -} -inline ::uint32_t SpriteInfo::_internal_pattern_depth() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pattern_depth_; -} -inline void SpriteInfo::_internal_set_pattern_depth(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.pattern_depth_ = value; -} - -// optional uint32 layers = 4; -inline bool SpriteInfo::has_layers() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline void SpriteInfo::clear_layers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.layers_ = 0u; - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline ::uint32_t SpriteInfo::layers() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteInfo.layers) - return _internal_layers(); -} -inline void SpriteInfo::set_layers(::uint32_t value) { - _internal_set_layers(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteInfo.layers) -} -inline ::uint32_t SpriteInfo::_internal_layers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.layers_; -} -inline void SpriteInfo::_internal_set_layers(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.layers_ = value; -} - -// repeated uint32 sprite_id = 5; -inline int SpriteInfo::_internal_sprite_id_size() const { - return _internal_sprite_id().size(); -} -inline int SpriteInfo::sprite_id_size() const { - return _internal_sprite_id_size(); -} -inline void SpriteInfo::clear_sprite_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sprite_id_.Clear(); -} -inline ::uint32_t SpriteInfo::sprite_id(int index) const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteInfo.sprite_id) - return _internal_sprite_id().Get(index); -} -inline void SpriteInfo::set_sprite_id(int index, ::uint32_t value) { - _internal_mutable_sprite_id()->Set(index, value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteInfo.sprite_id) -} -inline void SpriteInfo::add_sprite_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_sprite_id()->Add(value); - // @@protoc_insertion_point(field_add:otclient.protobuf.appearances.SpriteInfo.sprite_id) -} -inline const ::google::protobuf::RepeatedField<::uint32_t>& SpriteInfo::sprite_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:otclient.protobuf.appearances.SpriteInfo.sprite_id) - return _internal_sprite_id(); -} -inline ::google::protobuf::RepeatedField<::uint32_t>* SpriteInfo::mutable_sprite_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:otclient.protobuf.appearances.SpriteInfo.sprite_id) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_sprite_id(); -} -inline const ::google::protobuf::RepeatedField<::uint32_t>& SpriteInfo::_internal_sprite_id() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sprite_id_; -} -inline ::google::protobuf::RepeatedField<::uint32_t>* SpriteInfo::_internal_mutable_sprite_id() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.sprite_id_; -} - -// optional uint32 bounding_square = 7; -inline bool SpriteInfo::has_bounding_square() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline void SpriteInfo::clear_bounding_square() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.bounding_square_ = 0u; - _impl_._has_bits_[0] &= ~0x00000020u; -} -inline ::uint32_t SpriteInfo::bounding_square() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteInfo.bounding_square) - return _internal_bounding_square(); -} -inline void SpriteInfo::set_bounding_square(::uint32_t value) { - _internal_set_bounding_square(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteInfo.bounding_square) -} -inline ::uint32_t SpriteInfo::_internal_bounding_square() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.bounding_square_; -} -inline void SpriteInfo::_internal_set_bounding_square(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.bounding_square_ = value; -} - -// optional .otclient.protobuf.appearances.SpriteAnimation animation = 6; -inline bool SpriteInfo::has_animation() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.animation_ != nullptr); - return value; -} -inline void SpriteInfo::clear_animation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.animation_ != nullptr) _impl_.animation_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::otclient::protobuf::appearances::SpriteAnimation& SpriteInfo::_internal_animation() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::SpriteAnimation* p = _impl_.animation_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_SpriteAnimation_default_instance_); -} -inline const ::otclient::protobuf::appearances::SpriteAnimation& SpriteInfo::animation() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteInfo.animation) - return _internal_animation(); -} -inline void SpriteInfo::unsafe_arena_set_allocated_animation(::otclient::protobuf::appearances::SpriteAnimation* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.animation_); - } - _impl_.animation_ = reinterpret_cast<::otclient::protobuf::appearances::SpriteAnimation*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.SpriteInfo.animation) -} -inline ::otclient::protobuf::appearances::SpriteAnimation* SpriteInfo::release_animation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::otclient::protobuf::appearances::SpriteAnimation* released = _impl_.animation_; - _impl_.animation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::SpriteAnimation* SpriteInfo::unsafe_arena_release_animation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.SpriteInfo.animation) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::otclient::protobuf::appearances::SpriteAnimation* temp = _impl_.animation_; - _impl_.animation_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::SpriteAnimation* SpriteInfo::_internal_mutable_animation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.animation_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::SpriteAnimation>(GetArena()); - _impl_.animation_ = reinterpret_cast<::otclient::protobuf::appearances::SpriteAnimation*>(p); - } - return _impl_.animation_; -} -inline ::otclient::protobuf::appearances::SpriteAnimation* SpriteInfo::mutable_animation() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::SpriteAnimation* _msg = _internal_mutable_animation(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.SpriteInfo.animation) - return _msg; -} -inline void SpriteInfo::set_allocated_animation(::otclient::protobuf::appearances::SpriteAnimation* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::SpriteAnimation*>(_impl_.animation_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::SpriteAnimation*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.animation_ = reinterpret_cast<::otclient::protobuf::appearances::SpriteAnimation*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.SpriteInfo.animation) -} - -// optional bool is_opaque = 8; -inline bool SpriteInfo::has_is_opaque() const { - bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; - return value; -} -inline void SpriteInfo::clear_is_opaque() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_opaque_ = false; - _impl_._has_bits_[0] &= ~0x00000040u; -} -inline bool SpriteInfo::is_opaque() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteInfo.is_opaque) - return _internal_is_opaque(); -} -inline void SpriteInfo::set_is_opaque(bool value) { - _internal_set_is_opaque(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpriteInfo.is_opaque) -} -inline bool SpriteInfo::_internal_is_opaque() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_opaque_; -} -inline void SpriteInfo::_internal_set_is_opaque(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.is_opaque_ = value; -} - -// repeated .otclient.protobuf.appearances.Box bounding_box_per_direction = 9; -inline int SpriteInfo::_internal_bounding_box_per_direction_size() const { - return _internal_bounding_box_per_direction().size(); -} -inline int SpriteInfo::bounding_box_per_direction_size() const { - return _internal_bounding_box_per_direction_size(); -} -inline void SpriteInfo::clear_bounding_box_per_direction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.bounding_box_per_direction_.Clear(); -} -inline ::otclient::protobuf::appearances::Box* SpriteInfo::mutable_bounding_box_per_direction(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.SpriteInfo.bounding_box_per_direction) - return _internal_mutable_bounding_box_per_direction()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Box>* SpriteInfo::mutable_bounding_box_per_direction() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:otclient.protobuf.appearances.SpriteInfo.bounding_box_per_direction) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_bounding_box_per_direction(); -} -inline const ::otclient::protobuf::appearances::Box& SpriteInfo::bounding_box_per_direction(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpriteInfo.bounding_box_per_direction) - return _internal_bounding_box_per_direction().Get(index); -} -inline ::otclient::protobuf::appearances::Box* SpriteInfo::add_bounding_box_per_direction() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::otclient::protobuf::appearances::Box* _add = _internal_mutable_bounding_box_per_direction()->Add(); - // @@protoc_insertion_point(field_add:otclient.protobuf.appearances.SpriteInfo.bounding_box_per_direction) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Box>& SpriteInfo::bounding_box_per_direction() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:otclient.protobuf.appearances.SpriteInfo.bounding_box_per_direction) - return _internal_bounding_box_per_direction(); -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Box>& -SpriteInfo::_internal_bounding_box_per_direction() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.bounding_box_per_direction_; -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::Box>* -SpriteInfo::_internal_mutable_bounding_box_per_direction() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.bounding_box_per_direction_; -} - -// ------------------------------------------------------------------- - -// FrameGroup - -// optional .otclient.protobuf.appearances.FIXED_FRAME_GROUP fixed_frame_group = 1; -inline bool FrameGroup::has_fixed_frame_group() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void FrameGroup::clear_fixed_frame_group() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fixed_frame_group_ = 0; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::otclient::protobuf::appearances::FIXED_FRAME_GROUP FrameGroup::fixed_frame_group() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.FrameGroup.fixed_frame_group) - return _internal_fixed_frame_group(); -} -inline void FrameGroup::set_fixed_frame_group(::otclient::protobuf::appearances::FIXED_FRAME_GROUP value) { - _internal_set_fixed_frame_group(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.FrameGroup.fixed_frame_group) -} -inline ::otclient::protobuf::appearances::FIXED_FRAME_GROUP FrameGroup::_internal_fixed_frame_group() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::otclient::protobuf::appearances::FIXED_FRAME_GROUP>(_impl_.fixed_frame_group_); -} -inline void FrameGroup::_internal_set_fixed_frame_group(::otclient::protobuf::appearances::FIXED_FRAME_GROUP value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - assert(::otclient::protobuf::appearances::FIXED_FRAME_GROUP_IsValid(value)); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.fixed_frame_group_ = value; -} - -// optional uint32 id = 2; -inline bool FrameGroup::has_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void FrameGroup::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline ::uint32_t FrameGroup::id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.FrameGroup.id) - return _internal_id(); -} -inline void FrameGroup::set_id(::uint32_t value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.FrameGroup.id) -} -inline ::uint32_t FrameGroup::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void FrameGroup::_internal_set_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.id_ = value; -} - -// optional .otclient.protobuf.appearances.SpriteInfo sprite_info = 3; -inline bool FrameGroup::has_sprite_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.sprite_info_ != nullptr); - return value; -} -inline void FrameGroup::clear_sprite_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.sprite_info_ != nullptr) _impl_.sprite_info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::otclient::protobuf::appearances::SpriteInfo& FrameGroup::_internal_sprite_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::SpriteInfo* p = _impl_.sprite_info_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_SpriteInfo_default_instance_); -} -inline const ::otclient::protobuf::appearances::SpriteInfo& FrameGroup::sprite_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.FrameGroup.sprite_info) - return _internal_sprite_info(); -} -inline void FrameGroup::unsafe_arena_set_allocated_sprite_info(::otclient::protobuf::appearances::SpriteInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sprite_info_); - } - _impl_.sprite_info_ = reinterpret_cast<::otclient::protobuf::appearances::SpriteInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.FrameGroup.sprite_info) -} -inline ::otclient::protobuf::appearances::SpriteInfo* FrameGroup::release_sprite_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::otclient::protobuf::appearances::SpriteInfo* released = _impl_.sprite_info_; - _impl_.sprite_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::SpriteInfo* FrameGroup::unsafe_arena_release_sprite_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.FrameGroup.sprite_info) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::otclient::protobuf::appearances::SpriteInfo* temp = _impl_.sprite_info_; - _impl_.sprite_info_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::SpriteInfo* FrameGroup::_internal_mutable_sprite_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.sprite_info_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::SpriteInfo>(GetArena()); - _impl_.sprite_info_ = reinterpret_cast<::otclient::protobuf::appearances::SpriteInfo*>(p); - } - return _impl_.sprite_info_; -} -inline ::otclient::protobuf::appearances::SpriteInfo* FrameGroup::mutable_sprite_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::SpriteInfo* _msg = _internal_mutable_sprite_info(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.FrameGroup.sprite_info) - return _msg; -} -inline void FrameGroup::set_allocated_sprite_info(::otclient::protobuf::appearances::SpriteInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::SpriteInfo*>(_impl_.sprite_info_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::SpriteInfo*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.sprite_info_ = reinterpret_cast<::otclient::protobuf::appearances::SpriteInfo*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.FrameGroup.sprite_info) -} - -// ------------------------------------------------------------------- - -// Appearance - -// optional uint32 id = 1; -inline bool Appearance::has_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline void Appearance::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline ::uint32_t Appearance::id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Appearance.id) - return _internal_id(); -} -inline void Appearance::set_id(::uint32_t value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.Appearance.id) -} -inline ::uint32_t Appearance::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void Appearance::_internal_set_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.id_ = value; -} - -// repeated .otclient.protobuf.appearances.FrameGroup frame_group = 2; -inline int Appearance::_internal_frame_group_size() const { - return _internal_frame_group().size(); -} -inline int Appearance::frame_group_size() const { - return _internal_frame_group_size(); -} -inline void Appearance::clear_frame_group() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frame_group_.Clear(); -} -inline ::otclient::protobuf::appearances::FrameGroup* Appearance::mutable_frame_group(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.Appearance.frame_group) - return _internal_mutable_frame_group()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::FrameGroup>* Appearance::mutable_frame_group() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:otclient.protobuf.appearances.Appearance.frame_group) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_frame_group(); -} -inline const ::otclient::protobuf::appearances::FrameGroup& Appearance::frame_group(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Appearance.frame_group) - return _internal_frame_group().Get(index); -} -inline ::otclient::protobuf::appearances::FrameGroup* Appearance::add_frame_group() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::otclient::protobuf::appearances::FrameGroup* _add = _internal_mutable_frame_group()->Add(); - // @@protoc_insertion_point(field_add:otclient.protobuf.appearances.Appearance.frame_group) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::FrameGroup>& Appearance::frame_group() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:otclient.protobuf.appearances.Appearance.frame_group) - return _internal_frame_group(); -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::FrameGroup>& -Appearance::_internal_frame_group() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.frame_group_; -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::FrameGroup>* -Appearance::_internal_mutable_frame_group() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.frame_group_; -} - -// optional .otclient.protobuf.appearances.AppearanceFlags flags = 3; -inline bool Appearance::has_flags() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.flags_ != nullptr); - return value; -} -inline void Appearance::clear_flags() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.flags_ != nullptr) _impl_.flags_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlags& Appearance::_internal_flags() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlags* p = _impl_.flags_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlags_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlags& Appearance::flags() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Appearance.flags) - return _internal_flags(); -} -inline void Appearance::unsafe_arena_set_allocated_flags(::otclient::protobuf::appearances::AppearanceFlags* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.flags_); - } - _impl_.flags_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlags*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.Appearance.flags) -} -inline ::otclient::protobuf::appearances::AppearanceFlags* Appearance::release_flags() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::otclient::protobuf::appearances::AppearanceFlags* released = _impl_.flags_; - _impl_.flags_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlags* Appearance::unsafe_arena_release_flags() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.Appearance.flags) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::otclient::protobuf::appearances::AppearanceFlags* temp = _impl_.flags_; - _impl_.flags_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlags* Appearance::_internal_mutable_flags() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.flags_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlags>(GetArena()); - _impl_.flags_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlags*>(p); - } - return _impl_.flags_; -} -inline ::otclient::protobuf::appearances::AppearanceFlags* Appearance::mutable_flags() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlags* _msg = _internal_mutable_flags(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.Appearance.flags) - return _msg; -} -inline void Appearance::set_allocated_flags(::otclient::protobuf::appearances::AppearanceFlags* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlags*>(_impl_.flags_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlags*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - - _impl_.flags_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlags*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.Appearance.flags) -} - -// optional string name = 4; -inline bool Appearance::has_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void Appearance::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const std::string& Appearance::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Appearance.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Appearance::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.Appearance.name) -} -inline std::string* Appearance::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.Appearance.name) - return _s; -} -inline const std::string& Appearance::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void Appearance::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArena()); -} -inline std::string* Appearance::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* Appearance::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.Appearance.name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.name_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void Appearance::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.Appearance.name) -} - -// optional string description = 5; -inline bool Appearance::has_description() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void Appearance::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const std::string& Appearance::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.Appearance.description) - return _internal_description(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Appearance::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.Appearance.description) -} -inline std::string* Appearance::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_description(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.Appearance.description) - return _s; -} -inline const std::string& Appearance::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); -} -inline void Appearance::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.description_.Set(value, GetArena()); -} -inline std::string* Appearance::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.description_.Mutable( GetArena()); -} -inline std::string* Appearance::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.Appearance.description) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000002u; - auto* released = _impl_.description_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void Appearance::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.Appearance.description) -} - -// ------------------------------------------------------------------- - -// AppearanceFlags - -// optional .otclient.protobuf.appearances.AppearanceFlagBank bank = 1; -inline bool AppearanceFlags::has_bank() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.bank_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_bank() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.bank_ != nullptr) _impl_.bank_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagBank& AppearanceFlags::_internal_bank() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagBank* p = _impl_.bank_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagBank_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagBank& AppearanceFlags::bank() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.bank) - return _internal_bank(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_bank(::otclient::protobuf::appearances::AppearanceFlagBank* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.bank_); - } - _impl_.bank_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagBank*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.bank) -} -inline ::otclient::protobuf::appearances::AppearanceFlagBank* AppearanceFlags::release_bank() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::otclient::protobuf::appearances::AppearanceFlagBank* released = _impl_.bank_; - _impl_.bank_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagBank* AppearanceFlags::unsafe_arena_release_bank() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.bank) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::otclient::protobuf::appearances::AppearanceFlagBank* temp = _impl_.bank_; - _impl_.bank_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagBank* AppearanceFlags::_internal_mutable_bank() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.bank_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagBank>(GetArena()); - _impl_.bank_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagBank*>(p); - } - return _impl_.bank_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagBank* AppearanceFlags::mutable_bank() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagBank* _msg = _internal_mutable_bank(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.bank) - return _msg; -} -inline void AppearanceFlags::set_allocated_bank(::otclient::protobuf::appearances::AppearanceFlagBank* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagBank*>(_impl_.bank_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagBank*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.bank_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagBank*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.bank) -} - -// optional bool clip = 2; -inline bool AppearanceFlags::has_clip() const { - bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0; - return value; -} -inline void AppearanceFlags::clear_clip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.clip_ = false; - _impl_._has_bits_[0] &= ~0x00008000u; -} -inline bool AppearanceFlags::clip() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.clip) - return _internal_clip(); -} -inline void AppearanceFlags::set_clip(bool value) { - _internal_set_clip(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.clip) -} -inline bool AppearanceFlags::_internal_clip() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.clip_; -} -inline void AppearanceFlags::_internal_set_clip(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00008000u; - _impl_.clip_ = value; -} - -// optional bool bottom = 3; -inline bool AppearanceFlags::has_bottom() const { - bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0; - return value; -} -inline void AppearanceFlags::clear_bottom() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.bottom_ = false; - _impl_._has_bits_[0] &= ~0x00010000u; -} -inline bool AppearanceFlags::bottom() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.bottom) - return _internal_bottom(); -} -inline void AppearanceFlags::set_bottom(bool value) { - _internal_set_bottom(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.bottom) -} -inline bool AppearanceFlags::_internal_bottom() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.bottom_; -} -inline void AppearanceFlags::_internal_set_bottom(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00010000u; - _impl_.bottom_ = value; -} - -// optional bool top = 4; -inline bool AppearanceFlags::has_top() const { - bool value = (_impl_._has_bits_[0] & 0x00020000u) != 0; - return value; -} -inline void AppearanceFlags::clear_top() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.top_ = false; - _impl_._has_bits_[0] &= ~0x00020000u; -} -inline bool AppearanceFlags::top() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.top) - return _internal_top(); -} -inline void AppearanceFlags::set_top(bool value) { - _internal_set_top(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.top) -} -inline bool AppearanceFlags::_internal_top() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.top_; -} -inline void AppearanceFlags::_internal_set_top(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00020000u; - _impl_.top_ = value; -} - -// optional bool container = 5; -inline bool AppearanceFlags::has_container() const { - bool value = (_impl_._has_bits_[0] & 0x00040000u) != 0; - return value; -} -inline void AppearanceFlags::clear_container() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.container_ = false; - _impl_._has_bits_[0] &= ~0x00040000u; -} -inline bool AppearanceFlags::container() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.container) - return _internal_container(); -} -inline void AppearanceFlags::set_container(bool value) { - _internal_set_container(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.container) -} -inline bool AppearanceFlags::_internal_container() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.container_; -} -inline void AppearanceFlags::_internal_set_container(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00040000u; - _impl_.container_ = value; -} - -// optional bool cumulative = 6; -inline bool AppearanceFlags::has_cumulative() const { - bool value = (_impl_._has_bits_[0] & 0x00080000u) != 0; - return value; -} -inline void AppearanceFlags::clear_cumulative() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cumulative_ = false; - _impl_._has_bits_[0] &= ~0x00080000u; -} -inline bool AppearanceFlags::cumulative() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.cumulative) - return _internal_cumulative(); -} -inline void AppearanceFlags::set_cumulative(bool value) { - _internal_set_cumulative(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.cumulative) -} -inline bool AppearanceFlags::_internal_cumulative() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cumulative_; -} -inline void AppearanceFlags::_internal_set_cumulative(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00080000u; - _impl_.cumulative_ = value; -} - -// optional bool usable = 7; -inline bool AppearanceFlags::has_usable() const { - bool value = (_impl_._has_bits_[0] & 0x00100000u) != 0; - return value; -} -inline void AppearanceFlags::clear_usable() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.usable_ = false; - _impl_._has_bits_[0] &= ~0x00100000u; -} -inline bool AppearanceFlags::usable() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.usable) - return _internal_usable(); -} -inline void AppearanceFlags::set_usable(bool value) { - _internal_set_usable(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.usable) -} -inline bool AppearanceFlags::_internal_usable() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.usable_; -} -inline void AppearanceFlags::_internal_set_usable(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00100000u; - _impl_.usable_ = value; -} - -// optional bool forceuse = 8; -inline bool AppearanceFlags::has_forceuse() const { - bool value = (_impl_._has_bits_[0] & 0x00200000u) != 0; - return value; -} -inline void AppearanceFlags::clear_forceuse() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.forceuse_ = false; - _impl_._has_bits_[0] &= ~0x00200000u; -} -inline bool AppearanceFlags::forceuse() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.forceuse) - return _internal_forceuse(); -} -inline void AppearanceFlags::set_forceuse(bool value) { - _internal_set_forceuse(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.forceuse) -} -inline bool AppearanceFlags::_internal_forceuse() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.forceuse_; -} -inline void AppearanceFlags::_internal_set_forceuse(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00200000u; - _impl_.forceuse_ = value; -} - -// optional bool multiuse = 9; -inline bool AppearanceFlags::has_multiuse() const { - bool value = (_impl_._has_bits_[0] & 0x00400000u) != 0; - return value; -} -inline void AppearanceFlags::clear_multiuse() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.multiuse_ = false; - _impl_._has_bits_[0] &= ~0x00400000u; -} -inline bool AppearanceFlags::multiuse() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.multiuse) - return _internal_multiuse(); -} -inline void AppearanceFlags::set_multiuse(bool value) { - _internal_set_multiuse(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.multiuse) -} -inline bool AppearanceFlags::_internal_multiuse() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.multiuse_; -} -inline void AppearanceFlags::_internal_set_multiuse(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00400000u; - _impl_.multiuse_ = value; -} - -// optional .otclient.protobuf.appearances.AppearanceFlagWrite write = 10; -inline bool AppearanceFlags::has_write() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.write_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_write() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.write_ != nullptr) _impl_.write_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagWrite& AppearanceFlags::_internal_write() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagWrite* p = _impl_.write_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagWrite_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagWrite& AppearanceFlags::write() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.write) - return _internal_write(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_write(::otclient::protobuf::appearances::AppearanceFlagWrite* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.write_); - } - _impl_.write_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagWrite*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.write) -} -inline ::otclient::protobuf::appearances::AppearanceFlagWrite* AppearanceFlags::release_write() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::otclient::protobuf::appearances::AppearanceFlagWrite* released = _impl_.write_; - _impl_.write_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagWrite* AppearanceFlags::unsafe_arena_release_write() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.write) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::otclient::protobuf::appearances::AppearanceFlagWrite* temp = _impl_.write_; - _impl_.write_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagWrite* AppearanceFlags::_internal_mutable_write() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.write_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagWrite>(GetArena()); - _impl_.write_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagWrite*>(p); - } - return _impl_.write_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagWrite* AppearanceFlags::mutable_write() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagWrite* _msg = _internal_mutable_write(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.write) - return _msg; -} -inline void AppearanceFlags::set_allocated_write(::otclient::protobuf::appearances::AppearanceFlagWrite* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagWrite*>(_impl_.write_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagWrite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.write_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagWrite*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.write) -} - -// optional .otclient.protobuf.appearances.AppearanceFlagWriteOnce write_once = 11; -inline bool AppearanceFlags::has_write_once() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.write_once_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_write_once() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.write_once_ != nullptr) _impl_.write_once_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagWriteOnce& AppearanceFlags::_internal_write_once() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* p = _impl_.write_once_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagWriteOnce_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagWriteOnce& AppearanceFlags::write_once() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.write_once) - return _internal_write_once(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_write_once(::otclient::protobuf::appearances::AppearanceFlagWriteOnce* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.write_once_); - } - _impl_.write_once_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagWriteOnce*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.write_once) -} -inline ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* AppearanceFlags::release_write_once() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* released = _impl_.write_once_; - _impl_.write_once_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* AppearanceFlags::unsafe_arena_release_write_once() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.write_once) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* temp = _impl_.write_once_; - _impl_.write_once_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* AppearanceFlags::_internal_mutable_write_once() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.write_once_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagWriteOnce>(GetArena()); - _impl_.write_once_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagWriteOnce*>(p); - } - return _impl_.write_once_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* AppearanceFlags::mutable_write_once() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagWriteOnce* _msg = _internal_mutable_write_once(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.write_once) - return _msg; -} -inline void AppearanceFlags::set_allocated_write_once(::otclient::protobuf::appearances::AppearanceFlagWriteOnce* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagWriteOnce*>(_impl_.write_once_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagWriteOnce*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - - _impl_.write_once_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagWriteOnce*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.write_once) -} - -// optional bool liquidpool = 12; -inline bool AppearanceFlags::has_liquidpool() const { - bool value = (_impl_._has_bits_[0] & 0x00800000u) != 0; - return value; -} -inline void AppearanceFlags::clear_liquidpool() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.liquidpool_ = false; - _impl_._has_bits_[0] &= ~0x00800000u; -} -inline bool AppearanceFlags::liquidpool() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.liquidpool) - return _internal_liquidpool(); -} -inline void AppearanceFlags::set_liquidpool(bool value) { - _internal_set_liquidpool(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.liquidpool) -} -inline bool AppearanceFlags::_internal_liquidpool() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.liquidpool_; -} -inline void AppearanceFlags::_internal_set_liquidpool(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00800000u; - _impl_.liquidpool_ = value; -} - -// optional bool unpass = 13; -inline bool AppearanceFlags::has_unpass() const { - bool value = (_impl_._has_bits_[0] & 0x01000000u) != 0; - return value; -} -inline void AppearanceFlags::clear_unpass() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unpass_ = false; - _impl_._has_bits_[0] &= ~0x01000000u; -} -inline bool AppearanceFlags::unpass() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.unpass) - return _internal_unpass(); -} -inline void AppearanceFlags::set_unpass(bool value) { - _internal_set_unpass(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.unpass) -} -inline bool AppearanceFlags::_internal_unpass() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.unpass_; -} -inline void AppearanceFlags::_internal_set_unpass(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x01000000u; - _impl_.unpass_ = value; -} - -// optional bool unmove = 14; -inline bool AppearanceFlags::has_unmove() const { - bool value = (_impl_._has_bits_[0] & 0x02000000u) != 0; - return value; -} -inline void AppearanceFlags::clear_unmove() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unmove_ = false; - _impl_._has_bits_[0] &= ~0x02000000u; -} -inline bool AppearanceFlags::unmove() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.unmove) - return _internal_unmove(); -} -inline void AppearanceFlags::set_unmove(bool value) { - _internal_set_unmove(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.unmove) -} -inline bool AppearanceFlags::_internal_unmove() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.unmove_; -} -inline void AppearanceFlags::_internal_set_unmove(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x02000000u; - _impl_.unmove_ = value; -} - -// optional bool unsight = 15; -inline bool AppearanceFlags::has_unsight() const { - bool value = (_impl_._has_bits_[0] & 0x04000000u) != 0; - return value; -} -inline void AppearanceFlags::clear_unsight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unsight_ = false; - _impl_._has_bits_[0] &= ~0x04000000u; -} -inline bool AppearanceFlags::unsight() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.unsight) - return _internal_unsight(); -} -inline void AppearanceFlags::set_unsight(bool value) { - _internal_set_unsight(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.unsight) -} -inline bool AppearanceFlags::_internal_unsight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.unsight_; -} -inline void AppearanceFlags::_internal_set_unsight(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x04000000u; - _impl_.unsight_ = value; -} - -// optional bool avoid = 16; -inline bool AppearanceFlags::has_avoid() const { - bool value = (_impl_._has_bits_[0] & 0x08000000u) != 0; - return value; -} -inline void AppearanceFlags::clear_avoid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.avoid_ = false; - _impl_._has_bits_[0] &= ~0x08000000u; -} -inline bool AppearanceFlags::avoid() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.avoid) - return _internal_avoid(); -} -inline void AppearanceFlags::set_avoid(bool value) { - _internal_set_avoid(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.avoid) -} -inline bool AppearanceFlags::_internal_avoid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.avoid_; -} -inline void AppearanceFlags::_internal_set_avoid(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x08000000u; - _impl_.avoid_ = value; -} - -// optional bool no_movement_animation = 17; -inline bool AppearanceFlags::has_no_movement_animation() const { - bool value = (_impl_._has_bits_[0] & 0x10000000u) != 0; - return value; -} -inline void AppearanceFlags::clear_no_movement_animation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.no_movement_animation_ = false; - _impl_._has_bits_[0] &= ~0x10000000u; -} -inline bool AppearanceFlags::no_movement_animation() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.no_movement_animation) - return _internal_no_movement_animation(); -} -inline void AppearanceFlags::set_no_movement_animation(bool value) { - _internal_set_no_movement_animation(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.no_movement_animation) -} -inline bool AppearanceFlags::_internal_no_movement_animation() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.no_movement_animation_; -} -inline void AppearanceFlags::_internal_set_no_movement_animation(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x10000000u; - _impl_.no_movement_animation_ = value; -} - -// optional bool take = 18; -inline bool AppearanceFlags::has_take() const { - bool value = (_impl_._has_bits_[0] & 0x20000000u) != 0; - return value; -} -inline void AppearanceFlags::clear_take() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.take_ = false; - _impl_._has_bits_[0] &= ~0x20000000u; -} -inline bool AppearanceFlags::take() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.take) - return _internal_take(); -} -inline void AppearanceFlags::set_take(bool value) { - _internal_set_take(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.take) -} -inline bool AppearanceFlags::_internal_take() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.take_; -} -inline void AppearanceFlags::_internal_set_take(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x20000000u; - _impl_.take_ = value; -} - -// optional bool liquidcontainer = 19; -inline bool AppearanceFlags::has_liquidcontainer() const { - bool value = (_impl_._has_bits_[0] & 0x40000000u) != 0; - return value; -} -inline void AppearanceFlags::clear_liquidcontainer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.liquidcontainer_ = false; - _impl_._has_bits_[0] &= ~0x40000000u; -} -inline bool AppearanceFlags::liquidcontainer() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.liquidcontainer) - return _internal_liquidcontainer(); -} -inline void AppearanceFlags::set_liquidcontainer(bool value) { - _internal_set_liquidcontainer(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.liquidcontainer) -} -inline bool AppearanceFlags::_internal_liquidcontainer() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.liquidcontainer_; -} -inline void AppearanceFlags::_internal_set_liquidcontainer(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x40000000u; - _impl_.liquidcontainer_ = value; -} - -// optional bool hang = 20; -inline bool AppearanceFlags::has_hang() const { - bool value = (_impl_._has_bits_[0] & 0x80000000u) != 0; - return value; -} -inline void AppearanceFlags::clear_hang() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hang_ = false; - _impl_._has_bits_[0] &= ~0x80000000u; -} -inline bool AppearanceFlags::hang() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.hang) - return _internal_hang(); -} -inline void AppearanceFlags::set_hang(bool value) { - _internal_set_hang(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.hang) -} -inline bool AppearanceFlags::_internal_hang() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hang_; -} -inline void AppearanceFlags::_internal_set_hang(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x80000000u; - _impl_.hang_ = value; -} - -// optional .otclient.protobuf.appearances.AppearanceFlagHook hook = 21; -inline bool AppearanceFlags::has_hook() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.hook_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_hook() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.hook_ != nullptr) _impl_.hook_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagHook& AppearanceFlags::_internal_hook() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagHook* p = _impl_.hook_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagHook_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagHook& AppearanceFlags::hook() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.hook) - return _internal_hook(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_hook(::otclient::protobuf::appearances::AppearanceFlagHook* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.hook_); - } - _impl_.hook_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagHook*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; - } else { - _impl_._has_bits_[0] &= ~0x00000008u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.hook) -} -inline ::otclient::protobuf::appearances::AppearanceFlagHook* AppearanceFlags::release_hook() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::otclient::protobuf::appearances::AppearanceFlagHook* released = _impl_.hook_; - _impl_.hook_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagHook* AppearanceFlags::unsafe_arena_release_hook() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.hook) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::otclient::protobuf::appearances::AppearanceFlagHook* temp = _impl_.hook_; - _impl_.hook_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagHook* AppearanceFlags::_internal_mutable_hook() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.hook_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagHook>(GetArena()); - _impl_.hook_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagHook*>(p); - } - return _impl_.hook_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagHook* AppearanceFlags::mutable_hook() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagHook* _msg = _internal_mutable_hook(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.hook) - return _msg; -} -inline void AppearanceFlags::set_allocated_hook(::otclient::protobuf::appearances::AppearanceFlagHook* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagHook*>(_impl_.hook_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagHook*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000008u; - } else { - _impl_._has_bits_[0] &= ~0x00000008u; - } - - _impl_.hook_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagHook*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.hook) -} - -// optional bool rotate = 22; -inline bool AppearanceFlags::has_rotate() const { - bool value = (_impl_._has_bits_[1] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlags::clear_rotate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rotate_ = false; - _impl_._has_bits_[1] &= ~0x00000001u; -} -inline bool AppearanceFlags::rotate() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.rotate) - return _internal_rotate(); -} -inline void AppearanceFlags::set_rotate(bool value) { - _internal_set_rotate(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.rotate) -} -inline bool AppearanceFlags::_internal_rotate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.rotate_; -} -inline void AppearanceFlags::_internal_set_rotate(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000001u; - _impl_.rotate_ = value; -} - -// optional .otclient.protobuf.appearances.AppearanceFlagLight light = 23; -inline bool AppearanceFlags::has_light() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.light_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_light() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.light_ != nullptr) _impl_.light_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagLight& AppearanceFlags::_internal_light() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagLight* p = _impl_.light_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagLight_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagLight& AppearanceFlags::light() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.light) - return _internal_light(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_light(::otclient::protobuf::appearances::AppearanceFlagLight* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.light_); - } - _impl_.light_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagLight*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; - } else { - _impl_._has_bits_[0] &= ~0x00000010u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.light) -} -inline ::otclient::protobuf::appearances::AppearanceFlagLight* AppearanceFlags::release_light() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::otclient::protobuf::appearances::AppearanceFlagLight* released = _impl_.light_; - _impl_.light_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagLight* AppearanceFlags::unsafe_arena_release_light() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.light) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::otclient::protobuf::appearances::AppearanceFlagLight* temp = _impl_.light_; - _impl_.light_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagLight* AppearanceFlags::_internal_mutable_light() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.light_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagLight>(GetArena()); - _impl_.light_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagLight*>(p); - } - return _impl_.light_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagLight* AppearanceFlags::mutable_light() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagLight* _msg = _internal_mutable_light(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.light) - return _msg; -} -inline void AppearanceFlags::set_allocated_light(::otclient::protobuf::appearances::AppearanceFlagLight* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagLight*>(_impl_.light_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagLight*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000010u; - } else { - _impl_._has_bits_[0] &= ~0x00000010u; - } - - _impl_.light_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagLight*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.light) -} - -// optional bool dont_hide = 24; -inline bool AppearanceFlags::has_dont_hide() const { - bool value = (_impl_._has_bits_[1] & 0x00000002u) != 0; - return value; -} -inline void AppearanceFlags::clear_dont_hide() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dont_hide_ = false; - _impl_._has_bits_[1] &= ~0x00000002u; -} -inline bool AppearanceFlags::dont_hide() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.dont_hide) - return _internal_dont_hide(); -} -inline void AppearanceFlags::set_dont_hide(bool value) { - _internal_set_dont_hide(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.dont_hide) -} -inline bool AppearanceFlags::_internal_dont_hide() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.dont_hide_; -} -inline void AppearanceFlags::_internal_set_dont_hide(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000002u; - _impl_.dont_hide_ = value; -} - -// optional bool translucent = 25; -inline bool AppearanceFlags::has_translucent() const { - bool value = (_impl_._has_bits_[1] & 0x00000004u) != 0; - return value; -} -inline void AppearanceFlags::clear_translucent() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.translucent_ = false; - _impl_._has_bits_[1] &= ~0x00000004u; -} -inline bool AppearanceFlags::translucent() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.translucent) - return _internal_translucent(); -} -inline void AppearanceFlags::set_translucent(bool value) { - _internal_set_translucent(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.translucent) -} -inline bool AppearanceFlags::_internal_translucent() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.translucent_; -} -inline void AppearanceFlags::_internal_set_translucent(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000004u; - _impl_.translucent_ = value; -} - -// optional .otclient.protobuf.appearances.AppearanceFlagShift shift = 26; -inline bool AppearanceFlags::has_shift() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || _impl_.shift_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_shift() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.shift_ != nullptr) _impl_.shift_->Clear(); - _impl_._has_bits_[0] &= ~0x00000020u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagShift& AppearanceFlags::_internal_shift() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagShift* p = _impl_.shift_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagShift_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagShift& AppearanceFlags::shift() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.shift) - return _internal_shift(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_shift(::otclient::protobuf::appearances::AppearanceFlagShift* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.shift_); - } - _impl_.shift_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagShift*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000020u; - } else { - _impl_._has_bits_[0] &= ~0x00000020u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.shift) -} -inline ::otclient::protobuf::appearances::AppearanceFlagShift* AppearanceFlags::release_shift() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000020u; - ::otclient::protobuf::appearances::AppearanceFlagShift* released = _impl_.shift_; - _impl_.shift_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagShift* AppearanceFlags::unsafe_arena_release_shift() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.shift) - - _impl_._has_bits_[0] &= ~0x00000020u; - ::otclient::protobuf::appearances::AppearanceFlagShift* temp = _impl_.shift_; - _impl_.shift_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagShift* AppearanceFlags::_internal_mutable_shift() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000020u; - if (_impl_.shift_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagShift>(GetArena()); - _impl_.shift_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagShift*>(p); - } - return _impl_.shift_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagShift* AppearanceFlags::mutable_shift() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagShift* _msg = _internal_mutable_shift(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.shift) - return _msg; -} -inline void AppearanceFlags::set_allocated_shift(::otclient::protobuf::appearances::AppearanceFlagShift* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagShift*>(_impl_.shift_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagShift*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000020u; - } else { - _impl_._has_bits_[0] &= ~0x00000020u; - } - - _impl_.shift_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagShift*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.shift) -} - -// optional .otclient.protobuf.appearances.AppearanceFlagHeight height = 27; -inline bool AppearanceFlags::has_height() const { - bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || _impl_.height_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.height_ != nullptr) _impl_.height_->Clear(); - _impl_._has_bits_[0] &= ~0x00000040u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagHeight& AppearanceFlags::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagHeight* p = _impl_.height_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagHeight_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagHeight& AppearanceFlags::height() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.height) - return _internal_height(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_height(::otclient::protobuf::appearances::AppearanceFlagHeight* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.height_); - } - _impl_.height_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagHeight*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000040u; - } else { - _impl_._has_bits_[0] &= ~0x00000040u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.height) -} -inline ::otclient::protobuf::appearances::AppearanceFlagHeight* AppearanceFlags::release_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000040u; - ::otclient::protobuf::appearances::AppearanceFlagHeight* released = _impl_.height_; - _impl_.height_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagHeight* AppearanceFlags::unsafe_arena_release_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.height) - - _impl_._has_bits_[0] &= ~0x00000040u; - ::otclient::protobuf::appearances::AppearanceFlagHeight* temp = _impl_.height_; - _impl_.height_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagHeight* AppearanceFlags::_internal_mutable_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000040u; - if (_impl_.height_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagHeight>(GetArena()); - _impl_.height_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagHeight*>(p); - } - return _impl_.height_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagHeight* AppearanceFlags::mutable_height() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagHeight* _msg = _internal_mutable_height(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.height) - return _msg; -} -inline void AppearanceFlags::set_allocated_height(::otclient::protobuf::appearances::AppearanceFlagHeight* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagHeight*>(_impl_.height_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagHeight*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000040u; - } else { - _impl_._has_bits_[0] &= ~0x00000040u; - } - - _impl_.height_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagHeight*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.height) -} - -// optional bool lying_object = 28; -inline bool AppearanceFlags::has_lying_object() const { - bool value = (_impl_._has_bits_[1] & 0x00000008u) != 0; - return value; -} -inline void AppearanceFlags::clear_lying_object() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.lying_object_ = false; - _impl_._has_bits_[1] &= ~0x00000008u; -} -inline bool AppearanceFlags::lying_object() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.lying_object) - return _internal_lying_object(); -} -inline void AppearanceFlags::set_lying_object(bool value) { - _internal_set_lying_object(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.lying_object) -} -inline bool AppearanceFlags::_internal_lying_object() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.lying_object_; -} -inline void AppearanceFlags::_internal_set_lying_object(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000008u; - _impl_.lying_object_ = value; -} - -// optional bool animate_always = 29; -inline bool AppearanceFlags::has_animate_always() const { - bool value = (_impl_._has_bits_[1] & 0x00000010u) != 0; - return value; -} -inline void AppearanceFlags::clear_animate_always() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.animate_always_ = false; - _impl_._has_bits_[1] &= ~0x00000010u; -} -inline bool AppearanceFlags::animate_always() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.animate_always) - return _internal_animate_always(); -} -inline void AppearanceFlags::set_animate_always(bool value) { - _internal_set_animate_always(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.animate_always) -} -inline bool AppearanceFlags::_internal_animate_always() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.animate_always_; -} -inline void AppearanceFlags::_internal_set_animate_always(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000010u; - _impl_.animate_always_ = value; -} - -// optional .otclient.protobuf.appearances.AppearanceFlagAutomap automap = 30; -inline bool AppearanceFlags::has_automap() const { - bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; - PROTOBUF_ASSUME(!value || _impl_.automap_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_automap() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.automap_ != nullptr) _impl_.automap_->Clear(); - _impl_._has_bits_[0] &= ~0x00000080u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagAutomap& AppearanceFlags::_internal_automap() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagAutomap* p = _impl_.automap_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagAutomap_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagAutomap& AppearanceFlags::automap() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.automap) - return _internal_automap(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_automap(::otclient::protobuf::appearances::AppearanceFlagAutomap* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.automap_); - } - _impl_.automap_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagAutomap*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000080u; - } else { - _impl_._has_bits_[0] &= ~0x00000080u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.automap) -} -inline ::otclient::protobuf::appearances::AppearanceFlagAutomap* AppearanceFlags::release_automap() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000080u; - ::otclient::protobuf::appearances::AppearanceFlagAutomap* released = _impl_.automap_; - _impl_.automap_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagAutomap* AppearanceFlags::unsafe_arena_release_automap() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.automap) - - _impl_._has_bits_[0] &= ~0x00000080u; - ::otclient::protobuf::appearances::AppearanceFlagAutomap* temp = _impl_.automap_; - _impl_.automap_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagAutomap* AppearanceFlags::_internal_mutable_automap() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000080u; - if (_impl_.automap_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagAutomap>(GetArena()); - _impl_.automap_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagAutomap*>(p); - } - return _impl_.automap_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagAutomap* AppearanceFlags::mutable_automap() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagAutomap* _msg = _internal_mutable_automap(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.automap) - return _msg; -} -inline void AppearanceFlags::set_allocated_automap(::otclient::protobuf::appearances::AppearanceFlagAutomap* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagAutomap*>(_impl_.automap_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagAutomap*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000080u; - } else { - _impl_._has_bits_[0] &= ~0x00000080u; - } - - _impl_.automap_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagAutomap*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.automap) -} - -// optional .otclient.protobuf.appearances.AppearanceFlagLenshelp lenshelp = 31; -inline bool AppearanceFlags::has_lenshelp() const { - bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; - PROTOBUF_ASSUME(!value || _impl_.lenshelp_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_lenshelp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.lenshelp_ != nullptr) _impl_.lenshelp_->Clear(); - _impl_._has_bits_[0] &= ~0x00000100u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagLenshelp& AppearanceFlags::_internal_lenshelp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagLenshelp* p = _impl_.lenshelp_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagLenshelp_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagLenshelp& AppearanceFlags::lenshelp() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.lenshelp) - return _internal_lenshelp(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_lenshelp(::otclient::protobuf::appearances::AppearanceFlagLenshelp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.lenshelp_); - } - _impl_.lenshelp_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagLenshelp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000100u; - } else { - _impl_._has_bits_[0] &= ~0x00000100u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.lenshelp) -} -inline ::otclient::protobuf::appearances::AppearanceFlagLenshelp* AppearanceFlags::release_lenshelp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000100u; - ::otclient::protobuf::appearances::AppearanceFlagLenshelp* released = _impl_.lenshelp_; - _impl_.lenshelp_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagLenshelp* AppearanceFlags::unsafe_arena_release_lenshelp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.lenshelp) - - _impl_._has_bits_[0] &= ~0x00000100u; - ::otclient::protobuf::appearances::AppearanceFlagLenshelp* temp = _impl_.lenshelp_; - _impl_.lenshelp_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagLenshelp* AppearanceFlags::_internal_mutable_lenshelp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000100u; - if (_impl_.lenshelp_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagLenshelp>(GetArena()); - _impl_.lenshelp_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagLenshelp*>(p); - } - return _impl_.lenshelp_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagLenshelp* AppearanceFlags::mutable_lenshelp() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagLenshelp* _msg = _internal_mutable_lenshelp(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.lenshelp) - return _msg; -} -inline void AppearanceFlags::set_allocated_lenshelp(::otclient::protobuf::appearances::AppearanceFlagLenshelp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagLenshelp*>(_impl_.lenshelp_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagLenshelp*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000100u; - } else { - _impl_._has_bits_[0] &= ~0x00000100u; - } - - _impl_.lenshelp_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagLenshelp*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.lenshelp) -} - -// optional bool fullbank = 32; -inline bool AppearanceFlags::has_fullbank() const { - bool value = (_impl_._has_bits_[1] & 0x00000020u) != 0; - return value; -} -inline void AppearanceFlags::clear_fullbank() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fullbank_ = false; - _impl_._has_bits_[1] &= ~0x00000020u; -} -inline bool AppearanceFlags::fullbank() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.fullbank) - return _internal_fullbank(); -} -inline void AppearanceFlags::set_fullbank(bool value) { - _internal_set_fullbank(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.fullbank) -} -inline bool AppearanceFlags::_internal_fullbank() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fullbank_; -} -inline void AppearanceFlags::_internal_set_fullbank(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000020u; - _impl_.fullbank_ = value; -} - -// optional bool ignore_look = 33; -inline bool AppearanceFlags::has_ignore_look() const { - bool value = (_impl_._has_bits_[1] & 0x00000040u) != 0; - return value; -} -inline void AppearanceFlags::clear_ignore_look() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ignore_look_ = false; - _impl_._has_bits_[1] &= ~0x00000040u; -} -inline bool AppearanceFlags::ignore_look() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.ignore_look) - return _internal_ignore_look(); -} -inline void AppearanceFlags::set_ignore_look(bool value) { - _internal_set_ignore_look(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.ignore_look) -} -inline bool AppearanceFlags::_internal_ignore_look() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ignore_look_; -} -inline void AppearanceFlags::_internal_set_ignore_look(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000040u; - _impl_.ignore_look_ = value; -} - -// optional .otclient.protobuf.appearances.AppearanceFlagClothes clothes = 34; -inline bool AppearanceFlags::has_clothes() const { - bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; - PROTOBUF_ASSUME(!value || _impl_.clothes_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_clothes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.clothes_ != nullptr) _impl_.clothes_->Clear(); - _impl_._has_bits_[0] &= ~0x00000200u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagClothes& AppearanceFlags::_internal_clothes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagClothes* p = _impl_.clothes_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagClothes_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagClothes& AppearanceFlags::clothes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.clothes) - return _internal_clothes(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_clothes(::otclient::protobuf::appearances::AppearanceFlagClothes* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.clothes_); - } - _impl_.clothes_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagClothes*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000200u; - } else { - _impl_._has_bits_[0] &= ~0x00000200u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.clothes) -} -inline ::otclient::protobuf::appearances::AppearanceFlagClothes* AppearanceFlags::release_clothes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000200u; - ::otclient::protobuf::appearances::AppearanceFlagClothes* released = _impl_.clothes_; - _impl_.clothes_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagClothes* AppearanceFlags::unsafe_arena_release_clothes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.clothes) - - _impl_._has_bits_[0] &= ~0x00000200u; - ::otclient::protobuf::appearances::AppearanceFlagClothes* temp = _impl_.clothes_; - _impl_.clothes_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagClothes* AppearanceFlags::_internal_mutable_clothes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000200u; - if (_impl_.clothes_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagClothes>(GetArena()); - _impl_.clothes_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagClothes*>(p); - } - return _impl_.clothes_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagClothes* AppearanceFlags::mutable_clothes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagClothes* _msg = _internal_mutable_clothes(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.clothes) - return _msg; -} -inline void AppearanceFlags::set_allocated_clothes(::otclient::protobuf::appearances::AppearanceFlagClothes* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagClothes*>(_impl_.clothes_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagClothes*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000200u; - } else { - _impl_._has_bits_[0] &= ~0x00000200u; - } - - _impl_.clothes_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagClothes*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.clothes) -} - -// optional .otclient.protobuf.appearances.AppearanceFlagDefaultAction default_action = 35; -inline bool AppearanceFlags::has_default_action() const { - bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0; - PROTOBUF_ASSUME(!value || _impl_.default_action_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_default_action() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.default_action_ != nullptr) _impl_.default_action_->Clear(); - _impl_._has_bits_[0] &= ~0x00000400u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagDefaultAction& AppearanceFlags::_internal_default_action() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* p = _impl_.default_action_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagDefaultAction_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagDefaultAction& AppearanceFlags::default_action() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.default_action) - return _internal_default_action(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_default_action(::otclient::protobuf::appearances::AppearanceFlagDefaultAction* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.default_action_); - } - _impl_.default_action_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagDefaultAction*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000400u; - } else { - _impl_._has_bits_[0] &= ~0x00000400u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.default_action) -} -inline ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* AppearanceFlags::release_default_action() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000400u; - ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* released = _impl_.default_action_; - _impl_.default_action_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* AppearanceFlags::unsafe_arena_release_default_action() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.default_action) - - _impl_._has_bits_[0] &= ~0x00000400u; - ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* temp = _impl_.default_action_; - _impl_.default_action_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* AppearanceFlags::_internal_mutable_default_action() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000400u; - if (_impl_.default_action_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagDefaultAction>(GetArena()); - _impl_.default_action_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagDefaultAction*>(p); - } - return _impl_.default_action_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* AppearanceFlags::mutable_default_action() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagDefaultAction* _msg = _internal_mutable_default_action(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.default_action) - return _msg; -} -inline void AppearanceFlags::set_allocated_default_action(::otclient::protobuf::appearances::AppearanceFlagDefaultAction* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagDefaultAction*>(_impl_.default_action_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagDefaultAction*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000400u; - } else { - _impl_._has_bits_[0] &= ~0x00000400u; - } - - _impl_.default_action_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagDefaultAction*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.default_action) -} - -// optional .otclient.protobuf.appearances.AppearanceFlagMarket market = 36; -inline bool AppearanceFlags::has_market() const { - bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0; - PROTOBUF_ASSUME(!value || _impl_.market_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_market() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.market_ != nullptr) _impl_.market_->Clear(); - _impl_._has_bits_[0] &= ~0x00000800u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagMarket& AppearanceFlags::_internal_market() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagMarket* p = _impl_.market_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagMarket_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagMarket& AppearanceFlags::market() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.market) - return _internal_market(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_market(::otclient::protobuf::appearances::AppearanceFlagMarket* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.market_); - } - _impl_.market_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagMarket*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000800u; - } else { - _impl_._has_bits_[0] &= ~0x00000800u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.market) -} -inline ::otclient::protobuf::appearances::AppearanceFlagMarket* AppearanceFlags::release_market() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000800u; - ::otclient::protobuf::appearances::AppearanceFlagMarket* released = _impl_.market_; - _impl_.market_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagMarket* AppearanceFlags::unsafe_arena_release_market() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.market) - - _impl_._has_bits_[0] &= ~0x00000800u; - ::otclient::protobuf::appearances::AppearanceFlagMarket* temp = _impl_.market_; - _impl_.market_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagMarket* AppearanceFlags::_internal_mutable_market() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000800u; - if (_impl_.market_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagMarket>(GetArena()); - _impl_.market_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagMarket*>(p); - } - return _impl_.market_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagMarket* AppearanceFlags::mutable_market() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagMarket* _msg = _internal_mutable_market(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.market) - return _msg; -} -inline void AppearanceFlags::set_allocated_market(::otclient::protobuf::appearances::AppearanceFlagMarket* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagMarket*>(_impl_.market_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagMarket*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000800u; - } else { - _impl_._has_bits_[0] &= ~0x00000800u; - } - - _impl_.market_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagMarket*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.market) -} - -// optional bool wrap = 37; -inline bool AppearanceFlags::has_wrap() const { - bool value = (_impl_._has_bits_[1] & 0x00000080u) != 0; - return value; -} -inline void AppearanceFlags::clear_wrap() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.wrap_ = false; - _impl_._has_bits_[1] &= ~0x00000080u; -} -inline bool AppearanceFlags::wrap() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.wrap) - return _internal_wrap(); -} -inline void AppearanceFlags::set_wrap(bool value) { - _internal_set_wrap(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.wrap) -} -inline bool AppearanceFlags::_internal_wrap() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.wrap_; -} -inline void AppearanceFlags::_internal_set_wrap(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000080u; - _impl_.wrap_ = value; -} - -// optional bool unwrap = 38; -inline bool AppearanceFlags::has_unwrap() const { - bool value = (_impl_._has_bits_[1] & 0x00000100u) != 0; - return value; -} -inline void AppearanceFlags::clear_unwrap() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unwrap_ = false; - _impl_._has_bits_[1] &= ~0x00000100u; -} -inline bool AppearanceFlags::unwrap() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.unwrap) - return _internal_unwrap(); -} -inline void AppearanceFlags::set_unwrap(bool value) { - _internal_set_unwrap(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.unwrap) -} -inline bool AppearanceFlags::_internal_unwrap() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.unwrap_; -} -inline void AppearanceFlags::_internal_set_unwrap(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000100u; - _impl_.unwrap_ = value; -} - -// optional bool topeffect = 39; -inline bool AppearanceFlags::has_topeffect() const { - bool value = (_impl_._has_bits_[1] & 0x00000200u) != 0; - return value; -} -inline void AppearanceFlags::clear_topeffect() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.topeffect_ = false; - _impl_._has_bits_[1] &= ~0x00000200u; -} -inline bool AppearanceFlags::topeffect() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.topeffect) - return _internal_topeffect(); -} -inline void AppearanceFlags::set_topeffect(bool value) { - _internal_set_topeffect(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.topeffect) -} -inline bool AppearanceFlags::_internal_topeffect() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.topeffect_; -} -inline void AppearanceFlags::_internal_set_topeffect(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000200u; - _impl_.topeffect_ = value; -} - -// repeated .otclient.protobuf.appearances.AppearanceFlagNPC npcsaledata = 40; -inline int AppearanceFlags::_internal_npcsaledata_size() const { - return _internal_npcsaledata().size(); -} -inline int AppearanceFlags::npcsaledata_size() const { - return _internal_npcsaledata_size(); -} -inline void AppearanceFlags::clear_npcsaledata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.npcsaledata_.Clear(); -} -inline ::otclient::protobuf::appearances::AppearanceFlagNPC* AppearanceFlags::mutable_npcsaledata(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.npcsaledata) - return _internal_mutable_npcsaledata()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::AppearanceFlagNPC>* AppearanceFlags::mutable_npcsaledata() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:otclient.protobuf.appearances.AppearanceFlags.npcsaledata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_npcsaledata(); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagNPC& AppearanceFlags::npcsaledata(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.npcsaledata) - return _internal_npcsaledata().Get(index); -} -inline ::otclient::protobuf::appearances::AppearanceFlagNPC* AppearanceFlags::add_npcsaledata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::otclient::protobuf::appearances::AppearanceFlagNPC* _add = _internal_mutable_npcsaledata()->Add(); - // @@protoc_insertion_point(field_add:otclient.protobuf.appearances.AppearanceFlags.npcsaledata) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::AppearanceFlagNPC>& AppearanceFlags::npcsaledata() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:otclient.protobuf.appearances.AppearanceFlags.npcsaledata) - return _internal_npcsaledata(); -} -inline const ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::AppearanceFlagNPC>& -AppearanceFlags::_internal_npcsaledata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.npcsaledata_; -} -inline ::google::protobuf::RepeatedPtrField<::otclient::protobuf::appearances::AppearanceFlagNPC>* -AppearanceFlags::_internal_mutable_npcsaledata() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.npcsaledata_; -} - -// optional .otclient.protobuf.appearances.AppearanceFlagChangedToExpire changedtoexpire = 41; -inline bool AppearanceFlags::has_changedtoexpire() const { - bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0; - PROTOBUF_ASSUME(!value || _impl_.changedtoexpire_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_changedtoexpire() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.changedtoexpire_ != nullptr) _impl_.changedtoexpire_->Clear(); - _impl_._has_bits_[0] &= ~0x00001000u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire& AppearanceFlags::_internal_changedtoexpire() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* p = _impl_.changedtoexpire_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagChangedToExpire_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire& AppearanceFlags::changedtoexpire() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.changedtoexpire) - return _internal_changedtoexpire(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_changedtoexpire(::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.changedtoexpire_); - } - _impl_.changedtoexpire_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagChangedToExpire*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00001000u; - } else { - _impl_._has_bits_[0] &= ~0x00001000u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.changedtoexpire) -} -inline ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* AppearanceFlags::release_changedtoexpire() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00001000u; - ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* released = _impl_.changedtoexpire_; - _impl_.changedtoexpire_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* AppearanceFlags::unsafe_arena_release_changedtoexpire() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.changedtoexpire) - - _impl_._has_bits_[0] &= ~0x00001000u; - ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* temp = _impl_.changedtoexpire_; - _impl_.changedtoexpire_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* AppearanceFlags::_internal_mutable_changedtoexpire() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00001000u; - if (_impl_.changedtoexpire_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagChangedToExpire>(GetArena()); - _impl_.changedtoexpire_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagChangedToExpire*>(p); - } - return _impl_.changedtoexpire_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* AppearanceFlags::mutable_changedtoexpire() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* _msg = _internal_mutable_changedtoexpire(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.changedtoexpire) - return _msg; -} -inline void AppearanceFlags::set_allocated_changedtoexpire(::otclient::protobuf::appearances::AppearanceFlagChangedToExpire* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagChangedToExpire*>(_impl_.changedtoexpire_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagChangedToExpire*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00001000u; - } else { - _impl_._has_bits_[0] &= ~0x00001000u; - } - - _impl_.changedtoexpire_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagChangedToExpire*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.changedtoexpire) -} - -// optional bool corpse = 42; -inline bool AppearanceFlags::has_corpse() const { - bool value = (_impl_._has_bits_[1] & 0x00000400u) != 0; - return value; -} -inline void AppearanceFlags::clear_corpse() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.corpse_ = false; - _impl_._has_bits_[1] &= ~0x00000400u; -} -inline bool AppearanceFlags::corpse() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.corpse) - return _internal_corpse(); -} -inline void AppearanceFlags::set_corpse(bool value) { - _internal_set_corpse(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.corpse) -} -inline bool AppearanceFlags::_internal_corpse() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.corpse_; -} -inline void AppearanceFlags::_internal_set_corpse(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000400u; - _impl_.corpse_ = value; -} - -// optional bool player_corpse = 43; -inline bool AppearanceFlags::has_player_corpse() const { - bool value = (_impl_._has_bits_[1] & 0x00000800u) != 0; - return value; -} -inline void AppearanceFlags::clear_player_corpse() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.player_corpse_ = false; - _impl_._has_bits_[1] &= ~0x00000800u; -} -inline bool AppearanceFlags::player_corpse() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.player_corpse) - return _internal_player_corpse(); -} -inline void AppearanceFlags::set_player_corpse(bool value) { - _internal_set_player_corpse(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.player_corpse) -} -inline bool AppearanceFlags::_internal_player_corpse() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.player_corpse_; -} -inline void AppearanceFlags::_internal_set_player_corpse(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00000800u; - _impl_.player_corpse_ = value; -} - -// optional .otclient.protobuf.appearances.AppearanceFlagCyclopedia cyclopediaitem = 44; -inline bool AppearanceFlags::has_cyclopediaitem() const { - bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0; - PROTOBUF_ASSUME(!value || _impl_.cyclopediaitem_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_cyclopediaitem() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.cyclopediaitem_ != nullptr) _impl_.cyclopediaitem_->Clear(); - _impl_._has_bits_[0] &= ~0x00002000u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagCyclopedia& AppearanceFlags::_internal_cyclopediaitem() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* p = _impl_.cyclopediaitem_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagCyclopedia_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagCyclopedia& AppearanceFlags::cyclopediaitem() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.cyclopediaitem) - return _internal_cyclopediaitem(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_cyclopediaitem(::otclient::protobuf::appearances::AppearanceFlagCyclopedia* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cyclopediaitem_); - } - _impl_.cyclopediaitem_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagCyclopedia*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00002000u; - } else { - _impl_._has_bits_[0] &= ~0x00002000u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.cyclopediaitem) -} -inline ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* AppearanceFlags::release_cyclopediaitem() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00002000u; - ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* released = _impl_.cyclopediaitem_; - _impl_.cyclopediaitem_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* AppearanceFlags::unsafe_arena_release_cyclopediaitem() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.cyclopediaitem) - - _impl_._has_bits_[0] &= ~0x00002000u; - ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* temp = _impl_.cyclopediaitem_; - _impl_.cyclopediaitem_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* AppearanceFlags::_internal_mutable_cyclopediaitem() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00002000u; - if (_impl_.cyclopediaitem_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagCyclopedia>(GetArena()); - _impl_.cyclopediaitem_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagCyclopedia*>(p); - } - return _impl_.cyclopediaitem_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* AppearanceFlags::mutable_cyclopediaitem() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagCyclopedia* _msg = _internal_mutable_cyclopediaitem(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.cyclopediaitem) - return _msg; -} -inline void AppearanceFlags::set_allocated_cyclopediaitem(::otclient::protobuf::appearances::AppearanceFlagCyclopedia* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagCyclopedia*>(_impl_.cyclopediaitem_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagCyclopedia*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00002000u; - } else { - _impl_._has_bits_[0] &= ~0x00002000u; - } - - _impl_.cyclopediaitem_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagCyclopedia*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.cyclopediaitem) -} - -// optional bool ammo = 45; -inline bool AppearanceFlags::has_ammo() const { - bool value = (_impl_._has_bits_[1] & 0x00001000u) != 0; - return value; -} -inline void AppearanceFlags::clear_ammo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ammo_ = false; - _impl_._has_bits_[1] &= ~0x00001000u; -} -inline bool AppearanceFlags::ammo() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.ammo) - return _internal_ammo(); -} -inline void AppearanceFlags::set_ammo(bool value) { - _internal_set_ammo(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.ammo) -} -inline bool AppearanceFlags::_internal_ammo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ammo_; -} -inline void AppearanceFlags::_internal_set_ammo(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00001000u; - _impl_.ammo_ = value; -} - -// optional bool show_off_socket = 46; -inline bool AppearanceFlags::has_show_off_socket() const { - bool value = (_impl_._has_bits_[1] & 0x00002000u) != 0; - return value; -} -inline void AppearanceFlags::clear_show_off_socket() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.show_off_socket_ = false; - _impl_._has_bits_[1] &= ~0x00002000u; -} -inline bool AppearanceFlags::show_off_socket() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.show_off_socket) - return _internal_show_off_socket(); -} -inline void AppearanceFlags::set_show_off_socket(bool value) { - _internal_set_show_off_socket(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.show_off_socket) -} -inline bool AppearanceFlags::_internal_show_off_socket() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.show_off_socket_; -} -inline void AppearanceFlags::_internal_set_show_off_socket(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00002000u; - _impl_.show_off_socket_ = value; -} - -// optional bool reportable = 47; -inline bool AppearanceFlags::has_reportable() const { - bool value = (_impl_._has_bits_[1] & 0x00004000u) != 0; - return value; -} -inline void AppearanceFlags::clear_reportable() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reportable_ = false; - _impl_._has_bits_[1] &= ~0x00004000u; -} -inline bool AppearanceFlags::reportable() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.reportable) - return _internal_reportable(); -} -inline void AppearanceFlags::set_reportable(bool value) { - _internal_set_reportable(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.reportable) -} -inline bool AppearanceFlags::_internal_reportable() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reportable_; -} -inline void AppearanceFlags::_internal_set_reportable(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00004000u; - _impl_.reportable_ = value; -} - -// optional .otclient.protobuf.appearances.AppearanceFlagUpgradeClassification upgradeclassification = 48; -inline bool AppearanceFlags::has_upgradeclassification() const { - bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0; - PROTOBUF_ASSUME(!value || _impl_.upgradeclassification_ != nullptr); - return value; -} -inline void AppearanceFlags::clear_upgradeclassification() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.upgradeclassification_ != nullptr) _impl_.upgradeclassification_->Clear(); - _impl_._has_bits_[0] &= ~0x00004000u; -} -inline const ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification& AppearanceFlags::_internal_upgradeclassification() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* p = _impl_.upgradeclassification_; - return p != nullptr ? *p : reinterpret_cast(::otclient::protobuf::appearances::_AppearanceFlagUpgradeClassification_default_instance_); -} -inline const ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification& AppearanceFlags::upgradeclassification() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.upgradeclassification) - return _internal_upgradeclassification(); -} -inline void AppearanceFlags::unsafe_arena_set_allocated_upgradeclassification(::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.upgradeclassification_); - } - _impl_.upgradeclassification_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00004000u; - } else { - _impl_._has_bits_[0] &= ~0x00004000u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:otclient.protobuf.appearances.AppearanceFlags.upgradeclassification) -} -inline ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* AppearanceFlags::release_upgradeclassification() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00004000u; - ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* released = _impl_.upgradeclassification_; - _impl_.upgradeclassification_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* AppearanceFlags::unsafe_arena_release_upgradeclassification() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlags.upgradeclassification) - - _impl_._has_bits_[0] &= ~0x00004000u; - ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* temp = _impl_.upgradeclassification_; - _impl_.upgradeclassification_ = nullptr; - return temp; -} -inline ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* AppearanceFlags::_internal_mutable_upgradeclassification() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00004000u; - if (_impl_.upgradeclassification_ == nullptr) { - auto* p = CreateMaybeMessage<::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification>(GetArena()); - _impl_.upgradeclassification_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification*>(p); - } - return _impl_.upgradeclassification_; -} -inline ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* AppearanceFlags::mutable_upgradeclassification() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* _msg = _internal_mutable_upgradeclassification(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlags.upgradeclassification) - return _msg; -} -inline void AppearanceFlags::set_allocated_upgradeclassification(::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification*>(_impl_.upgradeclassification_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00004000u; - } else { - _impl_._has_bits_[0] &= ~0x00004000u; - } - - _impl_.upgradeclassification_ = reinterpret_cast<::otclient::protobuf::appearances::AppearanceFlagUpgradeClassification*>(value); - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlags.upgradeclassification) -} - -// optional bool reverse_addons_east = 49; -inline bool AppearanceFlags::has_reverse_addons_east() const { - bool value = (_impl_._has_bits_[1] & 0x00008000u) != 0; - return value; -} -inline void AppearanceFlags::clear_reverse_addons_east() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reverse_addons_east_ = false; - _impl_._has_bits_[1] &= ~0x00008000u; -} -inline bool AppearanceFlags::reverse_addons_east() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.reverse_addons_east) - return _internal_reverse_addons_east(); -} -inline void AppearanceFlags::set_reverse_addons_east(bool value) { - _internal_set_reverse_addons_east(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.reverse_addons_east) -} -inline bool AppearanceFlags::_internal_reverse_addons_east() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reverse_addons_east_; -} -inline void AppearanceFlags::_internal_set_reverse_addons_east(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00008000u; - _impl_.reverse_addons_east_ = value; -} - -// optional bool reverse_addons_west = 50; -inline bool AppearanceFlags::has_reverse_addons_west() const { - bool value = (_impl_._has_bits_[1] & 0x00010000u) != 0; - return value; -} -inline void AppearanceFlags::clear_reverse_addons_west() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reverse_addons_west_ = false; - _impl_._has_bits_[1] &= ~0x00010000u; -} -inline bool AppearanceFlags::reverse_addons_west() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.reverse_addons_west) - return _internal_reverse_addons_west(); -} -inline void AppearanceFlags::set_reverse_addons_west(bool value) { - _internal_set_reverse_addons_west(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.reverse_addons_west) -} -inline bool AppearanceFlags::_internal_reverse_addons_west() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reverse_addons_west_; -} -inline void AppearanceFlags::_internal_set_reverse_addons_west(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00010000u; - _impl_.reverse_addons_west_ = value; -} - -// optional bool reverse_addons_south = 51; -inline bool AppearanceFlags::has_reverse_addons_south() const { - bool value = (_impl_._has_bits_[1] & 0x00020000u) != 0; - return value; -} -inline void AppearanceFlags::clear_reverse_addons_south() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reverse_addons_south_ = false; - _impl_._has_bits_[1] &= ~0x00020000u; -} -inline bool AppearanceFlags::reverse_addons_south() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.reverse_addons_south) - return _internal_reverse_addons_south(); -} -inline void AppearanceFlags::set_reverse_addons_south(bool value) { - _internal_set_reverse_addons_south(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.reverse_addons_south) -} -inline bool AppearanceFlags::_internal_reverse_addons_south() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reverse_addons_south_; -} -inline void AppearanceFlags::_internal_set_reverse_addons_south(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00020000u; - _impl_.reverse_addons_south_ = value; -} - -// optional bool reverse_addons_north = 52; -inline bool AppearanceFlags::has_reverse_addons_north() const { - bool value = (_impl_._has_bits_[1] & 0x00040000u) != 0; - return value; -} -inline void AppearanceFlags::clear_reverse_addons_north() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reverse_addons_north_ = false; - _impl_._has_bits_[1] &= ~0x00040000u; -} -inline bool AppearanceFlags::reverse_addons_north() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.reverse_addons_north) - return _internal_reverse_addons_north(); -} -inline void AppearanceFlags::set_reverse_addons_north(bool value) { - _internal_set_reverse_addons_north(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.reverse_addons_north) -} -inline bool AppearanceFlags::_internal_reverse_addons_north() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reverse_addons_north_; -} -inline void AppearanceFlags::_internal_set_reverse_addons_north(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00040000u; - _impl_.reverse_addons_north_ = value; -} - -// optional bool wearout = 53; -inline bool AppearanceFlags::has_wearout() const { - bool value = (_impl_._has_bits_[1] & 0x00080000u) != 0; - return value; -} -inline void AppearanceFlags::clear_wearout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.wearout_ = false; - _impl_._has_bits_[1] &= ~0x00080000u; -} -inline bool AppearanceFlags::wearout() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.wearout) - return _internal_wearout(); -} -inline void AppearanceFlags::set_wearout(bool value) { - _internal_set_wearout(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.wearout) -} -inline bool AppearanceFlags::_internal_wearout() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.wearout_; -} -inline void AppearanceFlags::_internal_set_wearout(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00080000u; - _impl_.wearout_ = value; -} - -// optional bool clockexpire = 54; -inline bool AppearanceFlags::has_clockexpire() const { - bool value = (_impl_._has_bits_[1] & 0x00100000u) != 0; - return value; -} -inline void AppearanceFlags::clear_clockexpire() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.clockexpire_ = false; - _impl_._has_bits_[1] &= ~0x00100000u; -} -inline bool AppearanceFlags::clockexpire() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.clockexpire) - return _internal_clockexpire(); -} -inline void AppearanceFlags::set_clockexpire(bool value) { - _internal_set_clockexpire(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.clockexpire) -} -inline bool AppearanceFlags::_internal_clockexpire() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.clockexpire_; -} -inline void AppearanceFlags::_internal_set_clockexpire(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00100000u; - _impl_.clockexpire_ = value; -} - -// optional bool expire = 55; -inline bool AppearanceFlags::has_expire() const { - bool value = (_impl_._has_bits_[1] & 0x00200000u) != 0; - return value; -} -inline void AppearanceFlags::clear_expire() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.expire_ = false; - _impl_._has_bits_[1] &= ~0x00200000u; -} -inline bool AppearanceFlags::expire() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.expire) - return _internal_expire(); -} -inline void AppearanceFlags::set_expire(bool value) { - _internal_set_expire(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.expire) -} -inline bool AppearanceFlags::_internal_expire() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.expire_; -} -inline void AppearanceFlags::_internal_set_expire(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00200000u; - _impl_.expire_ = value; -} - -// optional bool expirestop = 56; -inline bool AppearanceFlags::has_expirestop() const { - bool value = (_impl_._has_bits_[1] & 0x00400000u) != 0; - return value; -} -inline void AppearanceFlags::clear_expirestop() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.expirestop_ = false; - _impl_._has_bits_[1] &= ~0x00400000u; -} -inline bool AppearanceFlags::expirestop() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.expirestop) - return _internal_expirestop(); -} -inline void AppearanceFlags::set_expirestop(bool value) { - _internal_set_expirestop(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.expirestop) -} -inline bool AppearanceFlags::_internal_expirestop() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.expirestop_; -} -inline void AppearanceFlags::_internal_set_expirestop(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00400000u; - _impl_.expirestop_ = value; -} - -// optional bool deco_kit = 57; -inline bool AppearanceFlags::has_deco_kit() const { - bool value = (_impl_._has_bits_[1] & 0x00800000u) != 0; - return value; -} -inline void AppearanceFlags::clear_deco_kit() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.deco_kit_ = false; - _impl_._has_bits_[1] &= ~0x00800000u; -} -inline bool AppearanceFlags::deco_kit() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlags.deco_kit) - return _internal_deco_kit(); -} -inline void AppearanceFlags::set_deco_kit(bool value) { - _internal_set_deco_kit(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlags.deco_kit) -} -inline bool AppearanceFlags::_internal_deco_kit() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.deco_kit_; -} -inline void AppearanceFlags::_internal_set_deco_kit(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[1] |= 0x00800000u; - _impl_.deco_kit_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagUpgradeClassification - -// optional uint32 upgrade_classification = 1; -inline bool AppearanceFlagUpgradeClassification::has_upgrade_classification() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagUpgradeClassification::clear_upgrade_classification() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.upgrade_classification_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagUpgradeClassification::upgrade_classification() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification.upgrade_classification) - return _internal_upgrade_classification(); -} -inline void AppearanceFlagUpgradeClassification::set_upgrade_classification(::uint32_t value) { - _internal_set_upgrade_classification(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagUpgradeClassification.upgrade_classification) -} -inline ::uint32_t AppearanceFlagUpgradeClassification::_internal_upgrade_classification() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.upgrade_classification_; -} -inline void AppearanceFlagUpgradeClassification::_internal_set_upgrade_classification(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.upgrade_classification_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagBank - -// optional uint32 waypoints = 1; -inline bool AppearanceFlagBank::has_waypoints() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagBank::clear_waypoints() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.waypoints_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagBank::waypoints() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagBank.waypoints) - return _internal_waypoints(); -} -inline void AppearanceFlagBank::set_waypoints(::uint32_t value) { - _internal_set_waypoints(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagBank.waypoints) -} -inline ::uint32_t AppearanceFlagBank::_internal_waypoints() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.waypoints_; -} -inline void AppearanceFlagBank::_internal_set_waypoints(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.waypoints_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagWrite - -// optional uint32 max_text_length = 1; -inline bool AppearanceFlagWrite::has_max_text_length() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagWrite::clear_max_text_length() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_text_length_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagWrite::max_text_length() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagWrite.max_text_length) - return _internal_max_text_length(); -} -inline void AppearanceFlagWrite::set_max_text_length(::uint32_t value) { - _internal_set_max_text_length(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagWrite.max_text_length) -} -inline ::uint32_t AppearanceFlagWrite::_internal_max_text_length() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_text_length_; -} -inline void AppearanceFlagWrite::_internal_set_max_text_length(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.max_text_length_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagWriteOnce - -// optional uint32 max_text_length_once = 1; -inline bool AppearanceFlagWriteOnce::has_max_text_length_once() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagWriteOnce::clear_max_text_length_once() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_text_length_once_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagWriteOnce::max_text_length_once() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagWriteOnce.max_text_length_once) - return _internal_max_text_length_once(); -} -inline void AppearanceFlagWriteOnce::set_max_text_length_once(::uint32_t value) { - _internal_set_max_text_length_once(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagWriteOnce.max_text_length_once) -} -inline ::uint32_t AppearanceFlagWriteOnce::_internal_max_text_length_once() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_text_length_once_; -} -inline void AppearanceFlagWriteOnce::_internal_set_max_text_length_once(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.max_text_length_once_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagLight - -// optional uint32 brightness = 1; -inline bool AppearanceFlagLight::has_brightness() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagLight::clear_brightness() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.brightness_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagLight::brightness() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagLight.brightness) - return _internal_brightness(); -} -inline void AppearanceFlagLight::set_brightness(::uint32_t value) { - _internal_set_brightness(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagLight.brightness) -} -inline ::uint32_t AppearanceFlagLight::_internal_brightness() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.brightness_; -} -inline void AppearanceFlagLight::_internal_set_brightness(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.brightness_ = value; -} - -// optional uint32 color = 2; -inline bool AppearanceFlagLight::has_color() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void AppearanceFlagLight::clear_color() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.color_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::uint32_t AppearanceFlagLight::color() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagLight.color) - return _internal_color(); -} -inline void AppearanceFlagLight::set_color(::uint32_t value) { - _internal_set_color(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagLight.color) -} -inline ::uint32_t AppearanceFlagLight::_internal_color() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.color_; -} -inline void AppearanceFlagLight::_internal_set_color(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.color_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagHeight - -// optional uint32 elevation = 1; -inline bool AppearanceFlagHeight::has_elevation() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagHeight::clear_elevation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.elevation_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagHeight::elevation() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagHeight.elevation) - return _internal_elevation(); -} -inline void AppearanceFlagHeight::set_elevation(::uint32_t value) { - _internal_set_elevation(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagHeight.elevation) -} -inline ::uint32_t AppearanceFlagHeight::_internal_elevation() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.elevation_; -} -inline void AppearanceFlagHeight::_internal_set_elevation(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.elevation_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagShift - -// optional uint32 x = 1; -inline bool AppearanceFlagShift::has_x() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagShift::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagShift::x() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagShift.x) - return _internal_x(); -} -inline void AppearanceFlagShift::set_x(::uint32_t value) { - _internal_set_x(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagShift.x) -} -inline ::uint32_t AppearanceFlagShift::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void AppearanceFlagShift::_internal_set_x(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.x_ = value; -} - -// optional uint32 y = 2; -inline bool AppearanceFlagShift::has_y() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void AppearanceFlagShift::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::uint32_t AppearanceFlagShift::y() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagShift.y) - return _internal_y(); -} -inline void AppearanceFlagShift::set_y(::uint32_t value) { - _internal_set_y(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagShift.y) -} -inline ::uint32_t AppearanceFlagShift::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void AppearanceFlagShift::_internal_set_y(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.y_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagClothes - -// optional uint32 slot = 1; -inline bool AppearanceFlagClothes::has_slot() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagClothes::clear_slot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.slot_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagClothes::slot() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagClothes.slot) - return _internal_slot(); -} -inline void AppearanceFlagClothes::set_slot(::uint32_t value) { - _internal_set_slot(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagClothes.slot) -} -inline ::uint32_t AppearanceFlagClothes::_internal_slot() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.slot_; -} -inline void AppearanceFlagClothes::_internal_set_slot(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.slot_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagDefaultAction - -// optional .otclient.protobuf.appearances.PLAYER_ACTION action = 1; -inline bool AppearanceFlagDefaultAction::has_action() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagDefaultAction::clear_action() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.action_ = 0; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::otclient::protobuf::appearances::PLAYER_ACTION AppearanceFlagDefaultAction::action() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagDefaultAction.action) - return _internal_action(); -} -inline void AppearanceFlagDefaultAction::set_action(::otclient::protobuf::appearances::PLAYER_ACTION value) { - _internal_set_action(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagDefaultAction.action) -} -inline ::otclient::protobuf::appearances::PLAYER_ACTION AppearanceFlagDefaultAction::_internal_action() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::otclient::protobuf::appearances::PLAYER_ACTION>(_impl_.action_); -} -inline void AppearanceFlagDefaultAction::_internal_set_action(::otclient::protobuf::appearances::PLAYER_ACTION value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - assert(::otclient::protobuf::appearances::PLAYER_ACTION_IsValid(value)); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.action_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagMarket - -// optional .otclient.protobuf.appearances.ITEM_CATEGORY category = 1; -inline bool AppearanceFlagMarket::has_category() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline void AppearanceFlagMarket::clear_category() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.category_ = 1; - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline ::otclient::protobuf::appearances::ITEM_CATEGORY AppearanceFlagMarket::category() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagMarket.category) - return _internal_category(); -} -inline void AppearanceFlagMarket::set_category(::otclient::protobuf::appearances::ITEM_CATEGORY value) { - _internal_set_category(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagMarket.category) -} -inline ::otclient::protobuf::appearances::ITEM_CATEGORY AppearanceFlagMarket::_internal_category() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::otclient::protobuf::appearances::ITEM_CATEGORY>(_impl_.category_); -} -inline void AppearanceFlagMarket::_internal_set_category(::otclient::protobuf::appearances::ITEM_CATEGORY value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - assert(::otclient::protobuf::appearances::ITEM_CATEGORY_IsValid(value)); - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.category_ = value; -} - -// optional uint32 trade_as_object_id = 2; -inline bool AppearanceFlagMarket::has_trade_as_object_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void AppearanceFlagMarket::clear_trade_as_object_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.trade_as_object_id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::uint32_t AppearanceFlagMarket::trade_as_object_id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagMarket.trade_as_object_id) - return _internal_trade_as_object_id(); -} -inline void AppearanceFlagMarket::set_trade_as_object_id(::uint32_t value) { - _internal_set_trade_as_object_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagMarket.trade_as_object_id) -} -inline ::uint32_t AppearanceFlagMarket::_internal_trade_as_object_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.trade_as_object_id_; -} -inline void AppearanceFlagMarket::_internal_set_trade_as_object_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.trade_as_object_id_ = value; -} - -// optional uint32 show_as_object_id = 3; -inline bool AppearanceFlagMarket::has_show_as_object_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void AppearanceFlagMarket::clear_show_as_object_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.show_as_object_id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline ::uint32_t AppearanceFlagMarket::show_as_object_id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagMarket.show_as_object_id) - return _internal_show_as_object_id(); -} -inline void AppearanceFlagMarket::set_show_as_object_id(::uint32_t value) { - _internal_set_show_as_object_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagMarket.show_as_object_id) -} -inline ::uint32_t AppearanceFlagMarket::_internal_show_as_object_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.show_as_object_id_; -} -inline void AppearanceFlagMarket::_internal_set_show_as_object_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.show_as_object_id_ = value; -} - -// optional string name = 4; -inline bool AppearanceFlagMarket::has_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagMarket::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const std::string& AppearanceFlagMarket::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagMarket.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void AppearanceFlagMarket::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagMarket.name) -} -inline std::string* AppearanceFlagMarket::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlagMarket.name) - return _s; -} -inline const std::string& AppearanceFlagMarket::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void AppearanceFlagMarket::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArena()); -} -inline std::string* AppearanceFlagMarket::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* AppearanceFlagMarket::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlagMarket.name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.name_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void AppearanceFlagMarket::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlagMarket.name) -} - -// repeated .otclient.protobuf.appearances.PLAYER_PROFESSION restrict_to_profession = 5; -inline int AppearanceFlagMarket::_internal_restrict_to_profession_size() const { - return _internal_restrict_to_profession().size(); -} -inline int AppearanceFlagMarket::restrict_to_profession_size() const { - return _internal_restrict_to_profession_size(); -} -inline void AppearanceFlagMarket::clear_restrict_to_profession() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.restrict_to_profession_.Clear(); -} -inline ::otclient::protobuf::appearances::PLAYER_PROFESSION AppearanceFlagMarket::restrict_to_profession(int index) const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagMarket.restrict_to_profession) - return static_cast<::otclient::protobuf::appearances::PLAYER_PROFESSION>(_internal_restrict_to_profession().Get(index)); -} -inline void AppearanceFlagMarket::set_restrict_to_profession(int index, ::otclient::protobuf::appearances::PLAYER_PROFESSION value) { - assert(::otclient::protobuf::appearances::PLAYER_PROFESSION_IsValid(value)); - _internal_mutable_restrict_to_profession()->Set(index, value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagMarket.restrict_to_profession) -} -inline void AppearanceFlagMarket::add_restrict_to_profession(::otclient::protobuf::appearances::PLAYER_PROFESSION value) { - assert(::otclient::protobuf::appearances::PLAYER_PROFESSION_IsValid(value)); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_restrict_to_profession()->Add(value); - // @@protoc_insertion_point(field_add:otclient.protobuf.appearances.AppearanceFlagMarket.restrict_to_profession) -} -inline const ::google::protobuf::RepeatedField& AppearanceFlagMarket::restrict_to_profession() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:otclient.protobuf.appearances.AppearanceFlagMarket.restrict_to_profession) - return _internal_restrict_to_profession(); -} -inline ::google::protobuf::RepeatedField* AppearanceFlagMarket::mutable_restrict_to_profession() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:otclient.protobuf.appearances.AppearanceFlagMarket.restrict_to_profession) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_restrict_to_profession(); -} -inline const ::google::protobuf::RepeatedField& AppearanceFlagMarket::_internal_restrict_to_profession() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.restrict_to_profession_; -} -inline ::google::protobuf::RepeatedField* AppearanceFlagMarket::_internal_mutable_restrict_to_profession() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.restrict_to_profession_; -} - -// optional uint32 minimum_level = 6; -inline bool AppearanceFlagMarket::has_minimum_level() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline void AppearanceFlagMarket::clear_minimum_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.minimum_level_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline ::uint32_t AppearanceFlagMarket::minimum_level() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagMarket.minimum_level) - return _internal_minimum_level(); -} -inline void AppearanceFlagMarket::set_minimum_level(::uint32_t value) { - _internal_set_minimum_level(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagMarket.minimum_level) -} -inline ::uint32_t AppearanceFlagMarket::_internal_minimum_level() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.minimum_level_; -} -inline void AppearanceFlagMarket::_internal_set_minimum_level(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.minimum_level_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagNPC - -// optional string name = 1; -inline bool AppearanceFlagNPC::has_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagNPC::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const std::string& AppearanceFlagNPC::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagNPC.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void AppearanceFlagNPC::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagNPC.name) -} -inline std::string* AppearanceFlagNPC::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlagNPC.name) - return _s; -} -inline const std::string& AppearanceFlagNPC::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void AppearanceFlagNPC::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArena()); -} -inline std::string* AppearanceFlagNPC::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* AppearanceFlagNPC::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlagNPC.name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.name_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void AppearanceFlagNPC::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlagNPC.name) -} - -// optional string location = 2; -inline bool AppearanceFlagNPC::has_location() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void AppearanceFlagNPC::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const std::string& AppearanceFlagNPC::location() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagNPC.location) - return _internal_location(); -} -template -inline PROTOBUF_ALWAYS_INLINE void AppearanceFlagNPC::set_location(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.location_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagNPC.location) -} -inline std::string* AppearanceFlagNPC::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlagNPC.location) - return _s; -} -inline const std::string& AppearanceFlagNPC::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_.Get(); -} -inline void AppearanceFlagNPC::_internal_set_location(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.location_.Set(value, GetArena()); -} -inline std::string* AppearanceFlagNPC::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.location_.Mutable( GetArena()); -} -inline std::string* AppearanceFlagNPC::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlagNPC.location) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000002u; - auto* released = _impl_.location_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.location_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void AppearanceFlagNPC::set_allocated_location(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - _impl_.location_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_.IsDefault()) { - _impl_.location_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlagNPC.location) -} - -// optional uint32 sale_price = 3; -inline bool AppearanceFlagNPC::has_sale_price() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline void AppearanceFlagNPC::clear_sale_price() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sale_price_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline ::uint32_t AppearanceFlagNPC::sale_price() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagNPC.sale_price) - return _internal_sale_price(); -} -inline void AppearanceFlagNPC::set_sale_price(::uint32_t value) { - _internal_set_sale_price(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagNPC.sale_price) -} -inline ::uint32_t AppearanceFlagNPC::_internal_sale_price() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sale_price_; -} -inline void AppearanceFlagNPC::_internal_set_sale_price(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.sale_price_ = value; -} - -// optional uint32 buy_price = 4; -inline bool AppearanceFlagNPC::has_buy_price() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline void AppearanceFlagNPC::clear_buy_price() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.buy_price_ = 0u; - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline ::uint32_t AppearanceFlagNPC::buy_price() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagNPC.buy_price) - return _internal_buy_price(); -} -inline void AppearanceFlagNPC::set_buy_price(::uint32_t value) { - _internal_set_buy_price(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagNPC.buy_price) -} -inline ::uint32_t AppearanceFlagNPC::_internal_buy_price() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.buy_price_; -} -inline void AppearanceFlagNPC::_internal_set_buy_price(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.buy_price_ = value; -} - -// optional uint32 currency_object_type_id = 5; -inline bool AppearanceFlagNPC::has_currency_object_type_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline void AppearanceFlagNPC::clear_currency_object_type_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.currency_object_type_id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000020u; -} -inline ::uint32_t AppearanceFlagNPC::currency_object_type_id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagNPC.currency_object_type_id) - return _internal_currency_object_type_id(); -} -inline void AppearanceFlagNPC::set_currency_object_type_id(::uint32_t value) { - _internal_set_currency_object_type_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagNPC.currency_object_type_id) -} -inline ::uint32_t AppearanceFlagNPC::_internal_currency_object_type_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.currency_object_type_id_; -} -inline void AppearanceFlagNPC::_internal_set_currency_object_type_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.currency_object_type_id_ = value; -} - -// optional string currency_quest_flag_display_name = 6; -inline bool AppearanceFlagNPC::has_currency_quest_flag_display_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void AppearanceFlagNPC::clear_currency_quest_flag_display_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.currency_quest_flag_display_name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline const std::string& AppearanceFlagNPC::currency_quest_flag_display_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagNPC.currency_quest_flag_display_name) - return _internal_currency_quest_flag_display_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void AppearanceFlagNPC::set_currency_quest_flag_display_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.currency_quest_flag_display_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagNPC.currency_quest_flag_display_name) -} -inline std::string* AppearanceFlagNPC::mutable_currency_quest_flag_display_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_currency_quest_flag_display_name(); - // @@protoc_insertion_point(field_mutable:otclient.protobuf.appearances.AppearanceFlagNPC.currency_quest_flag_display_name) - return _s; -} -inline const std::string& AppearanceFlagNPC::_internal_currency_quest_flag_display_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.currency_quest_flag_display_name_.Get(); -} -inline void AppearanceFlagNPC::_internal_set_currency_quest_flag_display_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.currency_quest_flag_display_name_.Set(value, GetArena()); -} -inline std::string* AppearanceFlagNPC::_internal_mutable_currency_quest_flag_display_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.currency_quest_flag_display_name_.Mutable( GetArena()); -} -inline std::string* AppearanceFlagNPC::release_currency_quest_flag_display_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:otclient.protobuf.appearances.AppearanceFlagNPC.currency_quest_flag_display_name) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000004u; - auto* released = _impl_.currency_quest_flag_display_name_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.currency_quest_flag_display_name_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void AppearanceFlagNPC::set_allocated_currency_quest_flag_display_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - _impl_.currency_quest_flag_display_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.currency_quest_flag_display_name_.IsDefault()) { - _impl_.currency_quest_flag_display_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:otclient.protobuf.appearances.AppearanceFlagNPC.currency_quest_flag_display_name) -} - -// ------------------------------------------------------------------- - -// AppearanceFlagAutomap - -// optional uint32 color = 1; -inline bool AppearanceFlagAutomap::has_color() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagAutomap::clear_color() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.color_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagAutomap::color() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagAutomap.color) - return _internal_color(); -} -inline void AppearanceFlagAutomap::set_color(::uint32_t value) { - _internal_set_color(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagAutomap.color) -} -inline ::uint32_t AppearanceFlagAutomap::_internal_color() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.color_; -} -inline void AppearanceFlagAutomap::_internal_set_color(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.color_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagHook - -// optional .otclient.protobuf.appearances.HOOK_TYPE south = 1; -inline bool AppearanceFlagHook::has_south() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagHook::clear_south() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.south_ = 1; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::otclient::protobuf::appearances::HOOK_TYPE AppearanceFlagHook::south() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagHook.south) - return _internal_south(); -} -inline void AppearanceFlagHook::set_south(::otclient::protobuf::appearances::HOOK_TYPE value) { - _internal_set_south(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagHook.south) -} -inline ::otclient::protobuf::appearances::HOOK_TYPE AppearanceFlagHook::_internal_south() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::otclient::protobuf::appearances::HOOK_TYPE>(_impl_.south_); -} -inline void AppearanceFlagHook::_internal_set_south(::otclient::protobuf::appearances::HOOK_TYPE value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - assert(::otclient::protobuf::appearances::HOOK_TYPE_IsValid(value)); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.south_ = value; -} - -// optional .otclient.protobuf.appearances.HOOK_TYPE east = 2; -inline bool AppearanceFlagHook::has_east() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void AppearanceFlagHook::clear_east() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.east_ = 1; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::otclient::protobuf::appearances::HOOK_TYPE AppearanceFlagHook::east() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagHook.east) - return _internal_east(); -} -inline void AppearanceFlagHook::set_east(::otclient::protobuf::appearances::HOOK_TYPE value) { - _internal_set_east(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagHook.east) -} -inline ::otclient::protobuf::appearances::HOOK_TYPE AppearanceFlagHook::_internal_east() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::otclient::protobuf::appearances::HOOK_TYPE>(_impl_.east_); -} -inline void AppearanceFlagHook::_internal_set_east(::otclient::protobuf::appearances::HOOK_TYPE value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - assert(::otclient::protobuf::appearances::HOOK_TYPE_IsValid(value)); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.east_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagLenshelp - -// optional uint32 id = 1; -inline bool AppearanceFlagLenshelp::has_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagLenshelp::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagLenshelp::id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagLenshelp.id) - return _internal_id(); -} -inline void AppearanceFlagLenshelp::set_id(::uint32_t value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagLenshelp.id) -} -inline ::uint32_t AppearanceFlagLenshelp::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void AppearanceFlagLenshelp::_internal_set_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.id_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagChangedToExpire - -// optional uint32 former_object_typeid = 1; -inline bool AppearanceFlagChangedToExpire::has_former_object_typeid() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagChangedToExpire::clear_former_object_typeid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.former_object_typeid_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagChangedToExpire::former_object_typeid() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagChangedToExpire.former_object_typeid) - return _internal_former_object_typeid(); -} -inline void AppearanceFlagChangedToExpire::set_former_object_typeid(::uint32_t value) { - _internal_set_former_object_typeid(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagChangedToExpire.former_object_typeid) -} -inline ::uint32_t AppearanceFlagChangedToExpire::_internal_former_object_typeid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.former_object_typeid_; -} -inline void AppearanceFlagChangedToExpire::_internal_set_former_object_typeid(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.former_object_typeid_ = value; -} - -// ------------------------------------------------------------------- - -// AppearanceFlagCyclopedia - -// optional uint32 cyclopedia_type = 1; -inline bool AppearanceFlagCyclopedia::has_cyclopedia_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void AppearanceFlagCyclopedia::clear_cyclopedia_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cyclopedia_type_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t AppearanceFlagCyclopedia::cyclopedia_type() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.AppearanceFlagCyclopedia.cyclopedia_type) - return _internal_cyclopedia_type(); -} -inline void AppearanceFlagCyclopedia::set_cyclopedia_type(::uint32_t value) { - _internal_set_cyclopedia_type(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.AppearanceFlagCyclopedia.cyclopedia_type) -} -inline ::uint32_t AppearanceFlagCyclopedia::_internal_cyclopedia_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cyclopedia_type_; -} -inline void AppearanceFlagCyclopedia::_internal_set_cyclopedia_type(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.cyclopedia_type_ = value; -} - -// ------------------------------------------------------------------- - -// SpecialMeaningAppearanceIds - -// optional uint32 gold_coin_id = 1; -inline bool SpecialMeaningAppearanceIds::has_gold_coin_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void SpecialMeaningAppearanceIds::clear_gold_coin_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.gold_coin_id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline ::uint32_t SpecialMeaningAppearanceIds::gold_coin_id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.gold_coin_id) - return _internal_gold_coin_id(); -} -inline void SpecialMeaningAppearanceIds::set_gold_coin_id(::uint32_t value) { - _internal_set_gold_coin_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.gold_coin_id) -} -inline ::uint32_t SpecialMeaningAppearanceIds::_internal_gold_coin_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.gold_coin_id_; -} -inline void SpecialMeaningAppearanceIds::_internal_set_gold_coin_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.gold_coin_id_ = value; -} - -// optional uint32 platinum_coin_id = 2; -inline bool SpecialMeaningAppearanceIds::has_platinum_coin_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void SpecialMeaningAppearanceIds::clear_platinum_coin_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platinum_coin_id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::uint32_t SpecialMeaningAppearanceIds::platinum_coin_id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.platinum_coin_id) - return _internal_platinum_coin_id(); -} -inline void SpecialMeaningAppearanceIds::set_platinum_coin_id(::uint32_t value) { - _internal_set_platinum_coin_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.platinum_coin_id) -} -inline ::uint32_t SpecialMeaningAppearanceIds::_internal_platinum_coin_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.platinum_coin_id_; -} -inline void SpecialMeaningAppearanceIds::_internal_set_platinum_coin_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.platinum_coin_id_ = value; -} - -// optional uint32 crystal_coin_id = 3; -inline bool SpecialMeaningAppearanceIds::has_crystal_coin_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void SpecialMeaningAppearanceIds::clear_crystal_coin_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.crystal_coin_id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline ::uint32_t SpecialMeaningAppearanceIds::crystal_coin_id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.crystal_coin_id) - return _internal_crystal_coin_id(); -} -inline void SpecialMeaningAppearanceIds::set_crystal_coin_id(::uint32_t value) { - _internal_set_crystal_coin_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.crystal_coin_id) -} -inline ::uint32_t SpecialMeaningAppearanceIds::_internal_crystal_coin_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.crystal_coin_id_; -} -inline void SpecialMeaningAppearanceIds::_internal_set_crystal_coin_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.crystal_coin_id_ = value; -} - -// optional uint32 tibia_coin_id = 4; -inline bool SpecialMeaningAppearanceIds::has_tibia_coin_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline void SpecialMeaningAppearanceIds::clear_tibia_coin_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tibia_coin_id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline ::uint32_t SpecialMeaningAppearanceIds::tibia_coin_id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.tibia_coin_id) - return _internal_tibia_coin_id(); -} -inline void SpecialMeaningAppearanceIds::set_tibia_coin_id(::uint32_t value) { - _internal_set_tibia_coin_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.tibia_coin_id) -} -inline ::uint32_t SpecialMeaningAppearanceIds::_internal_tibia_coin_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tibia_coin_id_; -} -inline void SpecialMeaningAppearanceIds::_internal_set_tibia_coin_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.tibia_coin_id_ = value; -} - -// optional uint32 stamped_letter_id = 5; -inline bool SpecialMeaningAppearanceIds::has_stamped_letter_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline void SpecialMeaningAppearanceIds::clear_stamped_letter_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stamped_letter_id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline ::uint32_t SpecialMeaningAppearanceIds::stamped_letter_id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.stamped_letter_id) - return _internal_stamped_letter_id(); -} -inline void SpecialMeaningAppearanceIds::set_stamped_letter_id(::uint32_t value) { - _internal_set_stamped_letter_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.stamped_letter_id) -} -inline ::uint32_t SpecialMeaningAppearanceIds::_internal_stamped_letter_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.stamped_letter_id_; -} -inline void SpecialMeaningAppearanceIds::_internal_set_stamped_letter_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.stamped_letter_id_ = value; -} - -// optional uint32 supply_stash_id = 6; -inline bool SpecialMeaningAppearanceIds::has_supply_stash_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline void SpecialMeaningAppearanceIds::clear_supply_stash_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.supply_stash_id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000020u; -} -inline ::uint32_t SpecialMeaningAppearanceIds::supply_stash_id() const { - // @@protoc_insertion_point(field_get:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.supply_stash_id) - return _internal_supply_stash_id(); -} -inline void SpecialMeaningAppearanceIds::set_supply_stash_id(::uint32_t value) { - _internal_set_supply_stash_id(value); - // @@protoc_insertion_point(field_set:otclient.protobuf.appearances.SpecialMeaningAppearanceIds.supply_stash_id) -} -inline ::uint32_t SpecialMeaningAppearanceIds::_internal_supply_stash_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.supply_stash_id_; -} -inline void SpecialMeaningAppearanceIds::_internal_set_supply_stash_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.supply_stash_id_ = value; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace appearances -} // namespace protobuf -} // namespace otclient - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::otclient::protobuf::appearances::PLAYER_ACTION> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::otclient::protobuf::appearances::PLAYER_ACTION>() { - return ::otclient::protobuf::appearances::PLAYER_ACTION_descriptor(); -} -template <> -struct is_proto_enum<::otclient::protobuf::appearances::ITEM_CATEGORY> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::otclient::protobuf::appearances::ITEM_CATEGORY>() { - return ::otclient::protobuf::appearances::ITEM_CATEGORY_descriptor(); -} -template <> -struct is_proto_enum<::otclient::protobuf::appearances::PLAYER_PROFESSION> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::otclient::protobuf::appearances::PLAYER_PROFESSION>() { - return ::otclient::protobuf::appearances::PLAYER_PROFESSION_descriptor(); -} -template <> -struct is_proto_enum<::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE>() { - return ::otclient::protobuf::appearances::ANIMATION_LOOP_TYPE_descriptor(); -} -template <> -struct is_proto_enum<::otclient::protobuf::appearances::HOOK_TYPE> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::otclient::protobuf::appearances::HOOK_TYPE>() { - return ::otclient::protobuf::appearances::HOOK_TYPE_descriptor(); -} -template <> -struct is_proto_enum<::otclient::protobuf::appearances::FIXED_FRAME_GROUP> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::otclient::protobuf::appearances::FIXED_FRAME_GROUP>() { - return ::otclient::protobuf::appearances::FIXED_FRAME_GROUP_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_appearances_2eproto_2epb_2eh diff --git a/vc17/otclient.vcxproj b/vc17/otclient.vcxproj index 499342b9f3..e4f4c43891 100644 --- a/vc17/otclient.vcxproj +++ b/vc17/otclient.vcxproj @@ -31,6 +31,7 @@ {17A8F78F-1FFB-4128-A3B3-59CC6C19D89A} otclient 10.0 + $(OutDirFullPath)../src/ @@ -106,12 +107,10 @@ $(VC_IncludePath);$(WindowsSDK_IncludePath);../src; - $(VC_SourcePath);$(ProjectDir)../src; $(ProjectName)-dbg $(VC_IncludePath);$(WindowsSDK_IncludePath);../src; - $(VC_SourcePath);$(ProjectDir)../src; $(ProjectName)_x64-dbg @@ -135,6 +134,7 @@ x86-windows-static Release + vcpkg_installed @@ -154,9 +154,11 @@ true true + vcpkg_installed x86-windows + vcpkg_installed x64-windows @@ -167,7 +169,7 @@ ProgramDatabase Disabled StreamingSIMDExtensions2 - $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories) + $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories) stdcpp20 4244;4251;4996;%(DisableSpecificWarnings) true @@ -177,11 +179,6 @@ MachineX86 true - - if NOT EXIST "../src/protobuf/appearances.pb.cc" ( -cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\protoc" --cpp_out=../src/protobuf/ --proto_path=../src/protobuf/ appearances.proto -) - @@ -189,7 +186,7 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ ProgramDatabase Disabled AdvancedVectorExtensions - $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories) + $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories) stdcpp20 4244;4251;4996;%(DisableSpecificWarnings) true @@ -197,11 +194,6 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ true - - if NOT EXIST "../src/protobuf/appearances.pb.cc" ( -cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\protoc" --cpp_out=../src/protobuf/ --proto_path=../src/protobuf/ appearances.proto -) - @@ -211,7 +203,7 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ MaxSpeed true true - $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories) + $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories) stdcpp20 Default 4244;4251;4996;%(DisableSpecificWarnings) @@ -225,12 +217,6 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ false true - - if NOT EXIST "../src/protobuf/appearances.pb.cc" ( -cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\protoc" --cpp_out=../src/protobuf/ --proto_path=../src/protobuf/ appearances.proto -) - - @@ -240,7 +226,7 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ MaxSpeed true true - $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories) + $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories) stdcpp20 Default 4244;4251;4996;%(DisableSpecificWarnings) @@ -255,12 +241,6 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ true libEGL.lib;libGLESv2.lib;dxgi.lib;d3d9.lib;d3d11.lib;dxguid.lib;%(AdditionalDependencies) - - if NOT EXIST "../src/protobuf/appearances.pb.cc" ( -cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\protoc" --cpp_out=../src/protobuf/ --proto_path=../src/protobuf/ appearances.proto -) - - @@ -270,7 +250,7 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ MaxSpeed true true - $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories) + $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories) stdcpp20 Default 4244;4251;4996;4267;%(DisableSpecificWarnings) @@ -283,11 +263,6 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ true true - - if NOT EXIST "../src/protobuf/appearances.pb.cc" ( -cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\protoc" --cpp_out=../src/protobuf/ --proto_path=../src/protobuf/ appearances.proto -) - @@ -297,7 +272,7 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ MaxSpeed true true - $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories) + $(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories) stdcpp20 Default 4244;4251;4996;4267;%(DisableSpecificWarnings) @@ -311,11 +286,6 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ true libEGL.lib;libGLESv2.lib;dxgi.lib;d3d9.lib;d3d11.lib;dxguid.lib;%(AdditionalDependencies) - - if NOT EXIST "../src/protobuf/appearances.pb.cc" ( -cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\protoc" --cpp_out=../src/protobuf/ --proto_path=../src/protobuf/ appearances.proto -) - @@ -471,7 +441,6 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ - @@ -658,6 +627,37 @@ cmd /c "start ../vcpkg_installed\$(VcpkgTriplet)\$(VcpkgTriplet)\tools\protobuf\ + + true + + + false + + + $(ProjectDir)vcpkg_installed\$(VcpkgTriplet)\tools\protobuf\protoc + $(SourcePath)protobuf + + + $(ProjectDir)vcpkg_installed\$(VcpkgTriplet)\tools\protobuf\protoc + $(GITHUB_WORKSPACE)\src\protobuf + + + + + + + + + + false + NotUsing + + + false + NotUsing + + + From 130d909b67a51047ee2d7e91871e2d3b1ef656ea Mon Sep 17 00:00:00 2001 From: kokekanon <114332266+kokekanon@users.noreply.github.com> Date: Tue, 29 Oct 2024 17:16:59 -0300 Subject: [PATCH 7/8] feat: NpcSaleData (#951) --- .../game_cyclopedia/cyclopedia_widgets.otui | 6 +- .../tab/character/character.lua | 2 + .../tab/character/character.otui | 4 +- modules/game_cyclopedia/tab/items/items.lua | 24 +- modules/game_cyclopedia/utils.lua | 10 +- modules/game_textmessage/textmessage.lua | 8 +- modules/gamelib/const.lua | 3 +- modules/gamelib/items.lua | 4987 +---------------- src/client/luafunctions.cpp | 6 + src/client/luavaluecasts_client.cpp | 49 + src/client/luavaluecasts_client.h | 4 + src/client/thing.h | 4 +- src/client/thingtype.cpp | 14 + src/client/thingtype.h | 43 +- 14 files changed, 179 insertions(+), 4985 deletions(-) diff --git a/modules/game_cyclopedia/cyclopedia_widgets.otui b/modules/game_cyclopedia/cyclopedia_widgets.otui index 4888a60b5f..c395347d9c 100644 --- a/modules/game_cyclopedia/cyclopedia_widgets.otui +++ b/modules/game_cyclopedia/cyclopedia_widgets.otui @@ -136,11 +136,7 @@ CharacterGridItem < UIWidget anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter image-source: /images/ui/item - UIWidget - id: rarity - margin: 1 - anchors.fill: ItemBackground - UIItem + Item id: item anchors.fill: ItemBackground Label diff --git a/modules/game_cyclopedia/tab/character/character.lua b/modules/game_cyclopedia/tab/character/character.lua index 2ff298585f..9f3625ab55 100644 --- a/modules/game_cyclopedia/tab/character/character.lua +++ b/modules/game_cyclopedia/tab/character/character.lua @@ -286,6 +286,8 @@ function Cyclopedia.reloadCharacterItems() local gridItem = g_ui.createWidget("CharacterGridItem", UI.CharacterItems.gridBase.grid) gridItem.item:setItemId(itemId) gridItem.amount:setText(data.amount) + ItemsDatabase.setRarityItem(gridItem.item, gridItem.item:getItem()) + ItemsDatabase.setTier(gridItem.item, item.tier) colorIndex = 3 - colorIndex end end diff --git a/modules/game_cyclopedia/tab/character/character.otui b/modules/game_cyclopedia/tab/character/character.otui index cb0cd82b56..005203da24 100644 --- a/modules/game_cyclopedia/tab/character/character.otui +++ b/modules/game_cyclopedia/tab/character/character.otui @@ -1208,7 +1208,7 @@ UIWidget id: gridBase size: 494 340 anchors.bottom: parent.bottom - anchors.left: parentl.left + anchors.left: parent.left visible: false UIScrollArea id: grid @@ -1297,7 +1297,7 @@ UIWidget height: 55 anchors.top: parent.top anchors.left: parent.left - anchors.right: ListBase.right + anchors.right: parent.right image-source: /images/game/actionbar/2pixel-up-frame-borderimage image-border: 5 CheckBox diff --git a/modules/game_cyclopedia/tab/items/items.lua b/modules/game_cyclopedia/tab/items/items.lua index a0af80ac99..5d4764acbf 100644 --- a/modules/game_cyclopedia/tab/items/items.lua +++ b/modules/game_cyclopedia/tab/items/items.lua @@ -224,8 +224,22 @@ function Cyclopedia.internalCreateItem(data) item:setId(data:getId()) item.Sprite:setItemId(data:getId()) item.Name:setText(marketData.name) - - local price, rarity = ItemsDatabase.getSellValueAndColor(data:getId()) + local function getColorForValue(value) + if value >= 1000000 then + return "yellow" + elseif value >= 100000 then + return "purple" + elseif value >= 10000 then + return "blue" + elseif value >= 1000 then + return "green" + elseif value >= 50 then + return "grey" + end + return "white" + end + local price = data:getMeanPrice() + local rarity = getColorForValue(price) item.Value = price item.Vocation = marketData.restrictVocation @@ -233,8 +247,6 @@ function Cyclopedia.internalCreateItem(data) item.Rarity:setImageSource("/images/ui/rarity_" .. rarity) end - ItemsDatabase.setRarityItem(item.Sprite, item) - function item.onClick(widget) UI.InfoBase.SellBase.List:destroyChildren() UI.InfoBase.BuyBase.List:destroyChildren() @@ -277,7 +289,7 @@ function Cyclopedia.internalCreateItem(data) end end - --[[ local buy, sell = Cyclopedia.formatSaleData(internalData:getNpcSaleData()) + local buy, sell = Cyclopedia.formatSaleData(internalData:getNpcSaleData()) local sellColor = "#484848" for index, value in ipairs(sell) do @@ -318,7 +330,7 @@ function Cyclopedia.internalCreateItem(data) end buyColor = buyColor == "#484848" and "#414141" or "#484848" - end ]] + end UI.selectItem = widget end diff --git a/modules/game_cyclopedia/utils.lua b/modules/game_cyclopedia/utils.lua index a81c37e671..7684d10134 100644 --- a/modules/game_cyclopedia/utils.lua +++ b/modules/game_cyclopedia/utils.lua @@ -1528,7 +1528,7 @@ end function Cyclopedia.formatSaleData(data) local s, sell, b, buy = {}, {}, {}, {} - for i = 0, #data do + for i = 1, #data do local value = data[i] if value then @@ -1569,18 +1569,18 @@ function Cyclopedia.formatSaleData(data) for name, value in pairs(s) do if value.various then table.insert(sell, - string.format("%s gp, %s\nResidence: %s", formatGold(value.price), name, "Various Locations")) + string.format("%s gp, %s\nResidence: %s", Cyclopedia.formatGold(value.price), name, "Various Locations")) else - table.insert(sell, string.format("%s gp, %s\nResidence: %s", formatGold(value.price), name, value.location)) + table.insert(sell, string.format("%s gp, %s\nResidence: %s", Cyclopedia.formatGold(value.price), name, value.location)) end end for name, value in pairs(b) do if value.various then table.insert(buy, - string.format("%s gp, %s\nResidence: %s", formatGold(value.price), name, "Various Locations")) + string.format("%s gp, %s\nResidence: %s", Cyclopedia.formatGold(value.price), name, "Various Locations")) else - table.insert(buy, string.format("%s gp, %s\nResidence: %s", formatGold(value.price), name, value.location)) + table.insert(buy, string.format("%s gp, %s\nResidence: %s", Cyclopedia.formatGold(value.price), name, value.location)) end end diff --git a/modules/game_textmessage/textmessage.lua b/modules/game_textmessage/textmessage.lua index 95174f2392..50279e654f 100644 --- a/modules/game_textmessage/textmessage.lua +++ b/modules/game_textmessage/textmessage.lua @@ -157,8 +157,12 @@ function displayMessage(mode, text) if msgtype.screenTarget then local label = messagesPanel:recursiveGetChildById(msgtype.screenTarget) if msgtype == MessageSettings.loot then - label:setColoredText(ItemsDatabase.setColorLootMessage(text)) -- temp. TODO assets search - else + local coloredText = ItemsDatabase.setColorLootMessage(text) + label:setColoredText(coloredText) + local console = modules.game_console + local consoleBuffer = console.consoleTabBar:getTabPanel(console.getTab("Server Log")):getChildById('consoleBuffer') + consoleBuffer:getLastChild():setColoredText(coloredText) + else label:setText(text) label:setColor(msgtype.color) end diff --git a/modules/gamelib/const.lua b/modules/gamelib/const.lua index 73c15dedbb..5323f505c1 100644 --- a/modules/gamelib/const.lua +++ b/modules/gamelib/const.lua @@ -214,7 +214,8 @@ TextColors = { -- blue1 = '#6e50dc', -- blue2 = '#3264c8', -- blue3 = '#0096c8', - white = '#ffffff' -- '#bebebe' + white = '#ffffff', -- '#bebebe' + grey = '#AAAAAA' } MessageModes = { diff --git a/modules/gamelib/items.lua b/modules/gamelib/items.lua index 1e409d9b1f..47cc12f1cd 100644 --- a/modules/gamelib/items.lua +++ b/modules/gamelib/items.lua @@ -1,4945 +1,27 @@ --- Is temp fix : you would have to see how this reading is done in the assets editor and put it in the OTC --- temp. TODO assets search --- LuaFormatter off - ItemsDatabase = {} -ItemsDatabase.lib = { - ['yellow'] = { - ['gold coin'] = { - clientId = 3031, - sell = 1070000, - }, - ['fiery tear'] = { - clientId = 39040, - sell = 1070000, - }, - ['megalomania\'s essence'] = { - clientId = 33928, - sell = 1900000, - }, - ['megalomania\'s skull'] = { - clientId = 33925, - sell = 1500000, - }, - ['morshabaal\'s extract'] = { - clientId = 37810, - sell = 3250000, - }, - ['figurine of cruelty'] = { - clientId = 34019, - sell = 3100000, - }, - ['figurine of greed'] = { - clientId = 34021, - sell = 2900000, - }, - ['figurine of hatred'] = { - clientId = 34020, - sell = 2700000, - }, - ['figurine of malice'] = { - clientId = 34018, - sell = 2800000, - }, - ['figurine of megalomania'] = { - clientId = 33953, - sell = 5000000, - }, - ['figurine of spite'] = { - clientId = 33952, - sell = 3000000, - }, - }, - ['purple'] = { - ['abomination\'s eye'] = { - clientId = 36792, - sell = 650000, - }, - ['abomination\'s tail'] = { - clientId = 36791, - sell = 700000, - }, - ['abomination\'s tongue'] = { - clientId = 36793, - sell = 950000, - }, - ['alptramun\'s toothbrush'] = { - clientId = 29943, - sell = 270000, - }, - ['brain head\'s giant neuron'] = { - clientId = 32578, - sell = 100000, - }, - ['brainstealer\'s brain'] = { - clientId = 36795, - sell = 300000, - }, - ['brainstealer\'s brainwave'] = { - clientId = 36796, - sell = 440000, - }, - ['brainstealer\'s tissue'] = { - clientId = 36794, - sell = 240000, - }, - ['cheesy membership card'] = { - clientId = 35614, - sell = 120000, - }, - ['cruelty\'s chest'] = { - clientId = 33923, - sell = 720000, - }, - ['cruelty\'s claw'] = { - clientId = 33922, - sell = 640000, - }, - ['curl of hair'] = { - clientId = 36809, - sell = 320000, - }, - ['dark bell'] = { - clientId = 32596, - sell = 310000, - }, - ['greed\'s arm'] = { - clientId = 33924, - sell = 950000, - }, - ['grimace'] = { - clientId = 32593, - sell = 120000, - }, - ['izcandar\'s snow globe'] = { - clientId = 29944, - sell = 180000, - }, - ['izcandar\'s sundial'] = { - clientId = 29945, - sell = 225000, - }, - ['malice\'s horn'] = { - clientId = 33920, - sell = 620000, - }, - ['malice\'s spine'] = { - clientId = 33921, - sell = 850000, - }, - ['malofur\'s lunchbox'] = { - clientId = 30088, - sell = 240000, - }, - ['maxxenius head'] = { - clientId = 29942, - sell = 500000, - }, - ['one of timira\'s many heads'] = { - clientId = 39399, - sell = 215000, - }, - ['pale worm\'s scalp'] = { - clientId = 32598, - sell = 489000, - }, - ['piece of timira\'s sensors'] = { - clientId = 39400, - sell = 150000, - }, - ['plagueroot offshoot'] = { - clientId = 30087, - sell = 280000, - }, - ['ratmiral\'s hat'] = { - clientId = 35613, - sell = 150000, - }, - ['ravenous circlet'] = { - clientId = 32597, - sell = 220000, - }, - ['smoldering eye'] = { - clientId = 39543, - sell = 470000, - }, - ['spite\'s spirit'] = { - clientId = 33926, - sell = 840000, - }, - ['token of love'] = { - clientId = 31594, - sell = 440000, - }, - ['urmahlullus mane'] = { - clientId = 31623, - sell = 490000, - }, - ['urmahlullus paws'] = { - clientId = 31624, - sell = 245000, - }, - ['urmahlullus tail'] = { - clientId = 31622, - sell = 210000, - }, - ['vial of hatred'] = { - clientId = 33927, - sell = 737000, - }, - ['writhing brain'] = { - clientId = 32600, - sell = 370000, - }, - ['writhing heart'] = { - clientId = 32599, - sell = 185000, - }, - ['jagged sickle'] = { - clientId = 32595, - sell = 150000, - }, - ['noble cape'] = { - clientId = 31593, - sell = 425000, - }, - ['noble amulet'] = { - clientId = 31595, - sell = 430000, - }, - ['signet ring'] = { - clientId = 31592, - sell = 480000, - }, - ['beast\'s nightmare-cushion'] = { - clientId = 29946, - sell = 630000, - }, - ['medal of valiance'] = { - clientId = 31591, - sell = 410000, - }, - ['royal almandine'] = { - clientId = 39038, - sell = 460000, - }, - ['watermelon tourmaline'] = { - clientId = 33780, - sell = 230000, - }, - }, - ['blue'] = { - ['amber with a bug'] = { - clientId = 32624, - sell = 41000, - }, - ['amber with a dragonfly'] = { - clientId = 32625, - sell = 56000, - }, - ['amber'] = { - clientId = 32626, - sell = 20000, - }, - ['ancient liche bone'] = { - clientId = 31588, - sell = 28000, - }, - ['bejeweled ship\'s telescope'] = { - clientId = 9616, - sell = 20000, - }, - ['berserker'] = { - clientId = 7403, - sell = 40000, - }, - ['bloody tears'] = { - clientId = 32594, - sell = 70000, - }, - ['bones of zorvorax'] = { - clientId = 24942, - sell = 10000, - }, - ['brain head\'s left hemisphere'] = { - clientId = 32579, - sell = 90000, - }, - ['brain head\'s right hemisphere'] = { - clientId = 32580, - sell = 50000, - }, - ['brooch of embracement'] = { - clientId = 34023, - sell = 14000, - }, - ['chitinous mouth'] = { - clientId = 27626, - sell = 10000, - }, - ['countess sorrow\'s frozen tear'] = { - clientId = 6536, - sell = 50000, - }, - ['crest of the deep seas'] = { - clientId = 21892, - sell = 10000, - }, - ['crunor idol'] = { - clientId = 30055, - sell = 30000, - }, - ['diabolic skull'] = { - clientId = 34025, - sell = 19000, - }, - ['dracola\'s eye'] = { - clientId = 6546, - sell = 50000, - }, - ['flask of warrior\'s sweat'] = { - clientId = 5885, - sell = 10000, - }, - ['giant tentacle'] = { - clientId = 27619, - sell = 10000, - }, - ['goblet of gloom'] = { - clientId = 34022, - sell = 12000, - }, - ['grasshopper legs'] = { - clientId = 14087, - sell = 15000, - }, - ['gruesome fan'] = { - clientId = 34024, - sell = 15000, - }, - ['harpoon of a giant snail'] = { - clientId = 27625, - sell = 15000, - }, - ['horn of kalyassa'] = { - clientId = 24941, - sell = 10000, - }, - ['huge chunk of crude iron'] = { - clientId = 5892, - sell = 15000, - }, - ['huge shell'] = { - clientId = 27621, - sell = 15000, - }, - ['lion figurine'] = { - clientId = 33781, - sell = 10000, - }, - ['magma coat'] = { - clientId = 826, - sell = 11000, - }, - ['moon pin'] = { - clientId = 43736, - sell = 18000, - }, - ['morgaroth\'s heart'] = { - clientId = 5943, - sell = 15000, - }, - ['morshabaal\'s brain'] = { - clientId = 37613, - sell = 15000, - }, - ['mr. punish\'s handcuffs'] = { - clientId = 6537, - sell = 50000, - }, - ['orshabaal\'s brain'] = { - clientId = 5808, - sell = 12000, - }, - ['piece of massacre\'s shell'] = { - clientId = 6540, - sell = 50000, - }, - ['pristine worm head'] = { - clientId = 27618, - sell = 15000, - }, - ['rotten heart'] = { - clientId = 31589, - sell = 74000, - }, - ['scale of gelidrazah'] = { - clientId = 24939, - sell = 10000, - }, - ['sun brooch'] = { - clientId = 43737, - sell = 18000, - }, - ['tentacle of tentugly'] = { - clientId = 35611, - sell = 27000, - }, - ['tentugly\'s eye'] = { - clientId = 35610, - sell = 52000, - }, - ['tentugly\'s jaws'] = { - clientId = 35612, - sell = 80000, - }, - ['the handmaiden\'s protector'] = { - clientId = 6539, - sell = 50000, - }, - ['the imperor\'s trident'] = { - clientId = 6534, - sell = 50000, - }, - ['the plasmother\'s remains'] = { - clientId = 6535, - sell = 50000, - }, - ['tooth of tazhadur'] = { - clientId = 24940, - sell = 10000, - }, - ['unholy book'] = { - clientId = 6103, - sell = 30000, - }, - ['young lich worm'] = { - clientId = 31590, - sell = 25000, - }, - ['abyss hammer'] = { - clientId = 7414, - sell = 20000, - }, - ['alloy legs'] = { - clientId = 21168, - sell = 11000, - }, - ['arbalest'] = { - clientId = 5803, - sell = 42000, - }, - ['arcane staff'] = { - clientId = 3341, - sell = 42000, - }, - ['assassin dagger'] = { - clientId = 7404, - sell = 20000, - }, - ['blade of corruption'] = { - clientId = 11693, - sell = 60000, - }, - ['blessed sceptre'] = { - clientId = 7429, - sell = 40000, - }, - ['bloody edge'] = { - clientId = 7416, - sell = 30000, - }, - ['blue legs'] = { - clientId = 645, - sell = 15000, - }, - ['blue robe'] = { - clientId = 3567, - sell = 10000, - }, - ['bonebreaker'] = { - clientId = 7428, - sell = 10000, - }, - ['boots of haste'] = { - clientId = 3079, - sell = 30000, - }, - ['butcher\'s axe'] = { - clientId = 7412, - sell = 18000, - }, - ['calopteryx cape'] = { - clientId = 14086, - sell = 15000, - }, - ['carapace shield'] = { - clientId = 14088, - sell = 32000, - }, - ['chain bolter'] = { - clientId = 8022, - sell = 40000, - }, - ['claw of \'the noxious spawn\''] = { - clientId = 9392, - sell = 15000, - }, - ['cobra crown'] = { - clientId = 11674, - sell = 50000, - }, - ['composite hornbow'] = { - clientId = 8027, - sell = 25000, - }, - ['cranial basher'] = { - clientId = 7415, - sell = 30000, - }, - ['crown armor'] = { - clientId = 3381, - sell = 12000, - }, - ['crown legs'] = { - clientId = 3382, - sell = 12000, - }, - ['crystal crossbow'] = { - clientId = 16163, - sell = 35000, - }, - ['crystal mace'] = { - clientId = 3333, - sell = 12000, - }, - ['crystal wand'] = { - clientId = 3068, - sell = 10000, - }, - ['crystalline armor'] = { - clientId = 8050, - sell = 16000, - }, - ['crystalline axe'] = { - clientId = 16161, - sell = 10000, - }, - ['deepling axe'] = { - clientId = 13991, - sell = 40000, - }, - ['demon helmet'] = { - clientId = 3387, - sell = 40000, - }, - ['demon shield'] = { - clientId = 3420, - sell = 30000, - }, - ['demonbone amulet'] = { - clientId = 3019, - sell = 32000, - }, - ['demonrage sword'] = { - clientId = 7382, - sell = 36000, - }, - ['depth calcei'] = { - clientId = 13997, - sell = 25000, - }, - ['depth galea'] = { - clientId = 13995, - sell = 35000, - }, - ['depth lorica'] = { - clientId = 13994, - sell = 30000, - }, - ['depth ocrea'] = { - clientId = 13996, - sell = 16000, - }, - ['depth scutum'] = { - clientId = 13998, - sell = 36000, - }, - ['divine plate'] = { - clientId = 8057, - sell = 55000, - }, - ['djinn blade'] = { - clientId = 3339, - sell = 15000, - }, - ['drachaku'] = { - clientId = 10391, - sell = 10000, - }, - ['dragon robe'] = { - clientId = 8039, - sell = 50000, - }, - ['dragon scale mail'] = { - clientId = 3386, - sell = 40000, - }, - ['dragon slayer'] = { - clientId = 7402, - sell = 15000, - }, - ['draken boots'] = { - clientId = 4033, - sell = 40000, - }, - ['drakinata'] = { - clientId = 10388, - sell = 10000, - }, - ['dreaded cleaver'] = { - clientId = 7419, - sell = 15000, - }, - ['dwarven armor'] = { - clientId = 3397, - sell = 30000, - }, - ['dwarven legs'] = { - clientId = 3398, - sell = 40000, - }, - ['elite draken mail'] = { - clientId = 11651, - sell = 50000, - }, - ['execowtioner axe'] = { - clientId = 21176, - sell = 12000, - }, - ['executioner'] = { - clientId = 7453, - sell = 55000, - }, - ['giant sword'] = { - clientId = 3281, - sell = 17000, - }, - ['glacier kilt'] = { - clientId = 823, - sell = 11000, - }, - ['glacier robe'] = { - clientId = 824, - sell = 11000, - }, - ['golden armor'] = { - clientId = 3360, - sell = 20000, - }, - ['golden legs'] = { - clientId = 3364, - sell = 30000, - }, - ['greenwood coat'] = { - clientId = 8041, - sell = 50000, - }, - ['guardian boots'] = { - clientId = 10323, - sell = 35000, - }, - ['guardian halberd'] = { - clientId = 3315, - sell = 11000, - }, - ['hammer of wrath'] = { - clientId = 3332, - sell = 30000, - }, - ['heat core'] = { - clientId = 21167, - sell = 10000, - }, - ['heavy mace'] = { - clientId = 3340, - sell = 50000, - }, - ['heroic axe'] = { - clientId = 7389, - sell = 30000, - }, - ['hive bow'] = { - clientId = 14246, - sell = 28000, - }, - ['hive scythe'] = { - clientId = 14089, - sell = 17000, - }, - ['jade hammer'] = { - clientId = 7422, - sell = 25000, - }, - ['lavos armor'] = { - clientId = 8049, - sell = 16000, - }, - ['lightning legs'] = { - clientId = 822, - sell = 11000, - }, - ['lightning robe'] = { - clientId = 825, - sell = 11000, - }, - ['magic plate armor'] = { - clientId = 3366, - sell = 90000, - }, - ['magma legs'] = { - clientId = 821, - sell = 11000, - }, - ['mastermind shield'] = { - clientId = 3414, - sell = 50000, - }, - ['mercenary sword'] = { - clientId = 7386, - sell = 12000, - }, - ['modified crossbow'] = { - clientId = 8021, - sell = 10000, - }, - ['moohtant cudgel'] = { - clientId = 21173, - sell = 14000, - }, - ['mycological bow'] = { - clientId = 16164, - sell = 35000, - }, - ['mystic blade'] = { - clientId = 7384, - sell = 30000, - }, - ['nightmare blade'] = { - clientId = 7418, - sell = 35000, - }, - ['noble axe'] = { - clientId = 7456, - sell = 10000, - }, - ['onyx flail'] = { - clientId = 7421, - sell = 22000, - }, - ['oriental shoes'] = { - clientId = 21981, - sell = 15000, - }, - ['ornamented axe'] = { - clientId = 7411, - sell = 20000, - }, - ['ornate chestplate'] = { - clientId = 13993, - sell = 60000, - }, - ['ornate crossbow'] = { - clientId = 14247, - sell = 12000, - }, - ['ornate legs'] = { - clientId = 13999, - sell = 40000, - }, - ['ornate mace'] = { - clientId = 14001, - sell = 42000, - }, - ['ornate shield'] = { - clientId = 14000, - sell = 42000, - }, - ['paladin armor'] = { - clientId = 8063, - sell = 15000, - }, - ['pharaoh sword'] = { - clientId = 3334, - sell = 23000, - }, - ['phoenix shield'] = { - clientId = 3439, - sell = 16000, - }, - ['queen\'s sceptre'] = { - clientId = 7410, - sell = 20000, - }, - ['relic sword'] = { - clientId = 7383, - sell = 25000, - }, - ['rift bow'] = { - clientId = 22866, - sell = 45000, - }, - ['rift crossbow'] = { - clientId = 22867, - sell = 45000, - }, - ['rift lance'] = { - clientId = 22727, - sell = 30000, - }, - ['rift shield'] = { - clientId = 22726, - sell = 50000, - }, - ['royal axe'] = { - clientId = 7434, - sell = 40000, - }, - ['royal helmet'] = { - clientId = 3392, - sell = 30000, - }, - ['rubber cap'] = { - clientId = 21165, - sell = 11000, - }, - ['runed sword'] = { - clientId = 7417, - sell = 45000, - }, - ['ruthless axe'] = { - clientId = 6553, - sell = 45000, - }, - ['sai'] = { - clientId = 10389, - sell = 16500, - }, - ['shadow sceptre'] = { - clientId = 7451, - sell = 10000, - }, - ['silkweaver bow'] = { - clientId = 8029, - sell = 12000, - }, - ['skull helmet'] = { - clientId = 5741, - sell = 40000, - }, - ['skullcracker armor'] = { - clientId = 8061, - sell = 18000, - }, - ['spellbook of lost souls'] = { - clientId = 8075, - sell = 19000, - }, - ['spellbook of mind control'] = { - clientId = 8074, - sell = 13000, - }, - ['spellweaver\'s robe'] = { - clientId = 10438, - sell = 12000, - }, - ['steel boots'] = { - clientId = 3554, - sell = 30000, - }, - ['swamplair armor'] = { - clientId = 8052, - sell = 16000, - }, - ['tempest shield'] = { - clientId = 3442, - sell = 35000, - }, - ['terra legs'] = { - clientId = 812, - sell = 11000, - }, - ['terra mantle'] = { - clientId = 811, - sell = 11000, - }, - ['thaian sword'] = { - clientId = 7391, - sell = 16000, - }, - ['the avenger'] = { - clientId = 6527, - sell = 42000, - }, - ['the ironworker'] = { - clientId = 8025, - sell = 50000, - }, - ['the justice seeker'] = { - clientId = 7390, - sell = 40000, - }, - ['tiara'] = { - clientId = 35578, - sell = 11000, - }, - ['twiceslicer'] = { - clientId = 11657, - sell = 28000, - }, - ['vampire shield'] = { - clientId = 3434, - sell = 15000, - }, - ['vile axe'] = { - clientId = 7388, - sell = 30000, - }, - ['war axe'] = { - clientId = 3342, - sell = 12000, - }, - ['warrior\'s axe'] = { - clientId = 14040, - sell = 11000, - }, - ['windborn colossus armor'] = { - clientId = 8055, - sell = 50000, - }, - ['wooden spellbook'] = { - clientId = 25699, - sell = 12000, - }, - ['zaoan armor'] = { - clientId = 10384, - sell = 14000, - }, - ['zaoan helmet'] = { - clientId = 10385, - sell = 45000, - }, - ['zaoan legs'] = { - clientId = 10387, - sell = 14000, - }, - ['zaoan robe'] = { - clientId = 10439, - sell = 12000, - }, - ['zaoan sword'] = { - clientId = 10390, - sell = 30000, - }, - ['amulet of loss'] = { - clientId = 3057, - sell = 45000, - }, - ['ornate locket'] = { - clientId = 30056, - sell = 18000, - }, - ['ring of the sky'] = { - clientId = 3006, - sell = 30000, - }, - ['angel figurine'] = { - clientId = 32589, - sell = 36000, - }, - ['bar of gold'] = { - clientId = 14112, - sell = 10000, - }, - ['blood goblet'] = { - clientId = 8531, - sell = 10000, - }, - ['ceremonial ankh'] = { - clientId = 6561, - sell = 20000, - }, - ['diamond'] = { - clientId = 32770, - sell = 15000, - }, - ['dragon figurine'] = { - clientId = 30053, - sell = 45000, - }, - ['eldritch crystal'] = { - clientId = 36835, - sell = 48000, - }, - ['frozen starlight'] = { - clientId = 3249, - sell = 20000, - }, - ['giant amethyst'] = { - clientId = 32622, - sell = 60000, - }, - ['giant emerald'] = { - clientId = 30060, - sell = 90000, - }, - ['giant ruby'] = { - clientId = 30059, - sell = 70000, - }, - ['giant sapphire'] = { - clientId = 30061, - sell = 50000, - }, - ['giant topaz'] = { - clientId = 32623, - sell = 80000, - }, - ['golden fafnar trophy'] = { - clientId = 9626, - sell = 10000, - }, - ['golden mask'] = { - clientId = 31324, - sell = 38000, - }, - ['golden sun coin'] = { - clientId = 43734, - sell = 11000, - }, - ['golden tiger coin'] = { - clientId = 43735, - sell = 11000, - }, - ['greater guardian gem'] = { - clientId = 44604, - sell = 10000, - }, - ['greater marksman gem'] = { - clientId = 44607, - sell = 10000, - }, - ['greater mystic gem'] = { - clientId = 44613, - sell = 10000, - }, - ['greater sage gem'] = { - clientId = 44610, - sell = 10000, - }, - ['hexagonal ruby'] = { - clientId = 30180, - sell = 30000, - }, - ['moonstone'] = { - clientId = 32771, - sell = 13000, - }, - ['sea horse figurine'] = { - clientId = 31323, - sell = 42000, - }, - ['silver foxmouse coin'] = { - clientId = 43733, - sell = 11000, - }, - ['silver hand mirror'] = { - clientId = 32772, - sell = 10000, - }, - ['silver moon coin'] = { - clientId = 43732, - sell = 11000, - }, - ['skull coin'] = { - clientId = 32583, - sell = 12000, - }, - ['unicorn figurine'] = { - clientId = 30054, - sell = 50000, - }, - ['violet gem'] = { - clientId = 3036, - sell = 10000, - }, - ['watermelon tourmaline (slice)'] = { - clientId = 33779, - sell = 30000, - }, - ['white gem'] = { - clientId = 32769, - sell = 12000, - }, - ['egg of the many'] = { - clientId = 9606, - sell = 15000, - }, - ['enchanted chicken wing'] = { - clientId = 5891, - sell = 20000, - }, - ['piece of royal steel'] = { - clientId = 5887, - sell = 10000, - }, - ['spirit container'] = { - clientId = 5884, - sell = 40000, - }, - ['baby seal doll'] = { - clientId = 7183, - sell = 20000, - }, - ['behemoth trophy'] = { - clientId = 7396, - sell = 20000, - }, - ['demon trophy'] = { - clientId = 7393, - sell = 40000, - }, - ['dragon lord trophy'] = { - clientId = 7399, - sell = 10000, - }, - ['draken trophy'] = { - clientId = 10398, - sell = 15000, - }, - ['morbid tapestry'] = { - clientId = 34170, - sell = 30000, - }, - ['panda teddy'] = { - clientId = 5080, - sell = 30000, - }, - ['sea serpent trophy'] = { - clientId = 9613, - sell = 10000, - }, - ['werebear trophy'] = { - clientId = 22103, - sell = 11000, - }, - ['wereboar trophy'] = { - clientId = 22102, - sell = 10000, - }, - ['werecrocodile trophy'] = { - clientId = 43916, - sell = 15000, - }, - ['werehyaena trophy'] = { - clientId = 34219, - sell = 12000, - }, - ['werepanther trophy'] = { - clientId = 43917, - sell = 14000, - }, - ['weretiger trophy'] = { - clientId = 43915, - sell = 14000, - }, - }, - ['green'] = { - ['apron'] = { - clientId = 33933, - sell = 1300, - }, - ['beetle necklace'] = { - clientId = 10457, - sell = 1500, - }, - ['black skull'] = { - clientId = 9056, - sell = 4000, - }, - ['blemished spawn tail'] = { - clientId = 36780, - sell = 1000, - }, - ['broken key ring'] = { - clientId = 11652, - sell = 8000, - }, - ['broken macuahuitl'] = { - clientId = 40530, - sell = 1000, - }, - ['broken ring of ending'] = { - clientId = 12737, - sell = 4000, - }, - ['broken visor'] = { - clientId = 20184, - sell = 1900, - }, - ['brutetamer\'s staff'] = { - clientId = 7379, - sell = 1500, - }, - ['buckle'] = { - clientId = 17829, - sell = 7000, - }, - ['capricious heart'] = { - clientId = 34138, - sell = 2100, - }, - ['capricious robe'] = { - clientId = 34145, - sell = 1200, - }, - ['cat\'s paw'] = { - clientId = 5479, - sell = 2000, - }, - ['cave chimera head'] = { - clientId = 36787, - sell = 1200, - }, - ['crawler\'s essence'] = { - clientId = 33982, - sell = 3700, - }, - ['cursed bone'] = { - clientId = 32774, - sell = 6000, - }, - ['damaged worm head'] = { - clientId = 27620, - sell = 8000, - }, - ['demon horn'] = { - clientId = 5954, - sell = 1000, - }, - ['demonic finger'] = { - clientId = 12541, - sell = 1000, - }, - ['distorted heart'] = { - clientId = 34142, - sell = 2100, - }, - ['distorted robe'] = { - clientId = 34149, - sell = 1200, - }, - ['emerald tortoise shell'] = { - clientId = 39379, - sell = 2150, - }, - ['enigmatic voodoo skull'] = { - clientId = 5669, - sell = 4000, - }, - ['eternal flames'] = { - clientId = 946, - sell = 5000, - }, - ['flower dress'] = { - clientId = 9015, - sell = 1000, - }, - ['goo shell'] = { - clientId = 19372, - sell = 4000, - }, - ['gore horn'] = { - clientId = 39377, - sell = 2900, - }, - ['gorerilla mane'] = { - clientId = 39392, - sell = 2750, - }, - ['gorerilla tail'] = { - clientId = 39393, - sell = 2650, - }, - ['hand'] = { - clientId = 33936, - sell = 1450, - }, - ['hazardous heart'] = { - clientId = 34140, - sell = 5000, - }, - ['hazardous robe'] = { - clientId = 34147, - sell = 3000, - }, - ['head'] = { - clientId = 33937, - sell = 3200, - }, - ['headpecker beak'] = { - clientId = 39387, - sell = 2998, - }, - ['headpecker feather'] = { - clientId = 39388, - sell = 1300, - }, - ['huge spiky snail shell'] = { - clientId = 27627, - sell = 8000, - }, - ['infernal heart'] = { - clientId = 34139, - sell = 2100, - }, - ['infernal robe'] = { - clientId = 34146, - sell = 1200, - }, - ['ivory comb'] = { - clientId = 32773, - sell = 8000, - }, - ['jaws'] = { - clientId = 34014, - sell = 3900, - }, - ['lavaworm jaws'] = { - clientId = 36771, - sell = 1100, - }, - ['longing eyes'] = { - clientId = 27624, - sell = 8000, - }, - ['luminous orb'] = { - clientId = 11454, - sell = 1000, - }, - ['mantosaurus jaw'] = { - clientId = 39386, - sell = 2998, - }, - ['mould heart'] = { - clientId = 34141, - sell = 2100, - }, - ['mould robe'] = { - clientId = 34148, - sell = 1200, - }, - ['mysterious voodoo skull'] = { - clientId = 5668, - sell = 4000, - }, - ['neutral matter'] = { - clientId = 954, - sell = 5000, - }, - ['nighthunter wing'] = { - clientId = 39381, - sell = 2000, - }, - ['orc trophy'] = { - clientId = 7395, - sell = 1000, - }, - ['pair of hellflayer horns'] = { - clientId = 22729, - sell = 1300, - }, - ['pair of iron fists'] = { - clientId = 17828, - sell = 4000, - }, - ['patch of fine cloth'] = { - clientId = 28821, - sell = 1350, - }, - ['pharaoh banner'] = { - clientId = 12483, - sell = 1000, - }, - ['porcelain mask'] = { - clientId = 25088, - sell = 2000, - }, - ['prehemoth claw'] = { - clientId = 39383, - sell = 2300, - }, - ['prehemoth horns'] = { - clientId = 39382, - sell = 3000, - }, - ['quill'] = { - clientId = 28567, - sell = 1100, - }, - ['ripptor claw'] = { - clientId = 39389, - sell = 2000, - }, - ['ripptor scales'] = { - clientId = 39391, - sell = 1200, - }, - ['roots'] = { - clientId = 33938, - sell = 1200, - }, - ['sabretooth fur'] = { - clientId = 39378, - sell = 2500, - }, - ['shamanic mask'] = { - clientId = 22192, - sell = 2000, - }, - ['sight of surrender\'s eye'] = { - clientId = 20183, - sell = 3000, - }, - ['silken bookmark'] = { - clientId = 28566, - sell = 1300, - }, - ['single human eye'] = { - clientId = 25701, - sell = 1000, - }, - ['slimy leg'] = { - clientId = 27623, - sell = 4500, - }, - ['some grimeleech wings'] = { - clientId = 22730, - sell = 1200, - }, - ['stalking seeds'] = { - clientId = 39384, - sell = 1800, - }, - ['sulphider shell'] = { - clientId = 39375, - sell = 2200, - }, - ['sulphur powder'] = { - clientId = 39376, - sell = 1900, - }, - ['summer dress'] = { - clientId = 8046, - sell = 1500, - }, - ['telescope eye'] = { - clientId = 33934, - sell = 1600, - }, - ['tentacle piece'] = { - clientId = 11666, - sell = 5000, - }, - ['undertaker fangs'] = { - clientId = 39380, - sell = 2700, - }, - ['vexclaw talon'] = { - clientId = 22728, - sell = 1100, - }, - ['vibrant heart'] = { - clientId = 34143, - sell = 2100, - }, - ['vibrant robe'] = { - clientId = 34144, - sell = 1200, - }, - ['violet glass plate'] = { - clientId = 29347, - sell = 2150, - }, - ['war horn'] = { - clientId = 2958, - sell = 8000, - }, - ['white silk flower'] = { - clientId = 34008, - sell = 9000, - }, - ['albino plate'] = { - clientId = 19358, - sell = 1500, - }, - ['amber staff'] = { - clientId = 7426, - sell = 8000, - }, - ['angelic axe'] = { - clientId = 7436, - sell = 5000, - }, - ['badger boots'] = { - clientId = 22086, - sell = 7500, - }, - ['batwing hat'] = { - clientId = 9103, - sell = 8000, - }, - ['beastslayer axe'] = { - clientId = 3344, - sell = 1500, - }, - ['blacksteel sword'] = { - clientId = 7406, - sell = 6000, - }, - ['bonelord helmet'] = { - clientId = 3408, - sell = 7500, - }, - ['bonelord shield'] = { - clientId = 3418, - sell = 1200, - }, - ['bright sword'] = { - clientId = 3295, - sell = 6000, - }, - ['butterfly ring'] = { - clientId = 25698, - sell = 2000, - }, - ['castle shield'] = { - clientId = 3435, - sell = 5000, - }, - ['chaos mace'] = { - clientId = 7427, - sell = 9000, - }, - ['cowtana'] = { - clientId = 21177, - sell = 2500, - }, - ['crocodile boots'] = { - clientId = 3556, - sell = 1000, - }, - ['crown helmet'] = { - clientId = 3385, - sell = 2500, - }, - ['crown shield'] = { - clientId = 3419, - sell = 8000, - }, - ['crusader helmet'] = { - clientId = 3391, - sell = 6000, - }, - ['crystalline sword'] = { - clientId = 16160, - sell = 2000, - }, - ['daramian waraxe'] = { - clientId = 3328, - sell = 1000, - }, - ['death ring'] = { - clientId = 6299, - sell = 1000, - }, - ['deepling squelcher'] = { - clientId = 14250, - sell = 7000, - }, - ['deepling staff'] = { - clientId = 13987, - sell = 4000, - }, - ['devil helmet'] = { - clientId = 3356, - sell = 1000, - }, - ['diamond sceptre'] = { - clientId = 7387, - sell = 3000, - }, - ['dragon hammer'] = { - clientId = 3322, - sell = 2000, - }, - ['dragon lance'] = { - clientId = 3302, - sell = 9000, - }, - ['dragon shield'] = { - clientId = 3416, - sell = 4000, - }, - ['dragonbone staff'] = { - clientId = 7430, - sell = 3000, - }, - ['dream blossom staff'] = { - clientId = 25700, - sell = 5000, - }, - ['dwarven axe'] = { - clientId = 3323, - sell = 1500, - }, - ['elvish bow'] = { - clientId = 7438, - sell = 2000, - }, - ['epee'] = { - clientId = 3326, - sell = 8000, - }, - ['fire axe'] = { - clientId = 3320, - sell = 8000, - }, - ['fire sword'] = { - clientId = 3280, - sell = 4000, - }, - ['focus cape'] = { - clientId = 8043, - sell = 6000, - }, - ['fur armor'] = { - clientId = 22085, - sell = 5000, - }, - ['fur boots'] = { - clientId = 7457, - sell = 2000, - }, - ['furry club'] = { - clientId = 7432, - sell = 1000, - }, - ['glacial rod'] = { - clientId = 16118, - sell = 6500, - }, - ['glacier amulet'] = { - clientId = 815, - sell = 1500, - }, - ['glacier mask'] = { - clientId = 829, - sell = 2500, - }, - ['glacier shoes'] = { - clientId = 819, - sell = 2500, - }, - ['glooth axe'] = { - clientId = 21180, - sell = 1500, - }, - ['glooth blade'] = { - clientId = 21179, - sell = 1500, - }, - ['glooth cap'] = { - clientId = 21164, - sell = 7000, - }, - ['glooth club'] = { - clientId = 21178, - sell = 1500, - }, - ['glooth whip'] = { - clientId = 21172, - sell = 2500, - }, - ['glorious axe'] = { - clientId = 7454, - sell = 3000, - }, - ['griffin shield'] = { - clientId = 3433, - sell = 3000, - }, - ['guardian axe'] = { - clientId = 14043, - sell = 9000, - }, - ['guardian shield'] = { - clientId = 3415, - sell = 2000, - }, - ['hailstorm rod'] = { - clientId = 3067, - sell = 3000, - }, - ['haunted blade'] = { - clientId = 7407, - sell = 8000, - }, - ['headchopper'] = { - clientId = 7380, - sell = 6000, - }, - ['heavy trident'] = { - clientId = 12683, - sell = 2000, - }, - ['helmet of the lost'] = { - clientId = 17852, - sell = 2000, - }, - ['hibiscus dress'] = { - clientId = 8045, - sell = 3000, - }, - ['ice rapier'] = { - clientId = 3284, - sell = 1000, - }, - ['jade hat'] = { - clientId = 10451, - sell = 9000, - }, - ['knight armor'] = { - clientId = 3370, - sell = 5000, - }, - ['knight axe'] = { - clientId = 3318, - sell = 2000, - }, - ['knight legs'] = { - clientId = 3371, - sell = 5000, - }, - ['leopard armor'] = { - clientId = 3404, - sell = 1000, - }, - ['lightning boots'] = { - clientId = 820, - sell = 2500, - }, - ['lightning headband'] = { - clientId = 828, - sell = 2500, - }, - ['lightning pendant'] = { - clientId = 816, - sell = 1500, - }, - ['lunar staff'] = { - clientId = 7424, - sell = 5000, - }, - ['magma boots'] = { - clientId = 818, - sell = 2500, - }, - ['magma monocle'] = { - clientId = 827, - sell = 2500, - }, - ['mammoth fur cape'] = { - clientId = 7463, - sell = 6000, - }, - ['medusa shield'] = { - clientId = 3436, - sell = 9000, - }, - ['mercurial wing'] = { - clientId = 39395, - sell = 2500, - }, - ['metal bat'] = { - clientId = 21171, - sell = 9000, - }, - ['metal spats'] = { - clientId = 21169, - sell = 2000, - }, - ['mino lance'] = { - clientId = 21174, - sell = 7000, - }, - ['mino shield'] = { - clientId = 21175, - sell = 3000, - }, - ['mooh\'tah plate'] = { - clientId = 21166, - sell = 6000, - }, - ['muck rod'] = { - clientId = 16117, - sell = 6000, - }, - ['naginata'] = { - clientId = 3314, - sell = 2000, - }, - ['necrotic rod'] = { - clientId = 3069, - sell = 1000, - }, - ['norse shield'] = { - clientId = 7460, - sell = 1500, - }, - ['northwind rod'] = { - clientId = 8083, - sell = 1500, - }, - ['ogre choppa'] = { - clientId = 22172, - sell = 1500, - }, - ['ogre klubba'] = { - clientId = 22171, - sell = 2500, - }, - ['ogre scepta'] = { - clientId = 22183, - sell = 3600, - }, - ['orcish maul'] = { - clientId = 7392, - sell = 6000, - }, - ['ornamented shield'] = { - clientId = 3424, - sell = 1500, - }, - ['patched boots'] = { - clientId = 3550, - sell = 2000, - }, - ['platinum amulet'] = { - clientId = 3055, - sell = 2500, - }, - ['rod'] = { - clientId = 33929, - sell = 2200, - }, - ['sapphire hammer'] = { - clientId = 7437, - sell = 7000, - }, - ['scarab shield'] = { - clientId = 3440, - sell = 2000, - }, - ['skull staff'] = { - clientId = 3324, - sell = 6000, - }, - ['spellbook of enlightenment'] = { - clientId = 8072, - sell = 4000, - }, - ['spellbook of warding'] = { - clientId = 8073, - sell = 8000, - }, - ['spike sword'] = { - clientId = 3271, - sell = 1000, - }, - ['spiked squelcher'] = { - clientId = 7452, - sell = 5000, - }, - ['springsprout rod'] = { - clientId = 8084, - sell = 3600, - }, - ['terra boots'] = { - clientId = 813, - sell = 2500, - }, - ['terra hood'] = { - clientId = 830, - sell = 2500, - }, - ['terra rod'] = { - clientId = 3065, - sell = 2000, - }, - ['titan axe'] = { - clientId = 7413, - sell = 4000, - }, - ['tower shield'] = { - clientId = 3428, - sell = 8000, - }, - ['underworld rod'] = { - clientId = 8082, - sell = 4400, - }, - ['wand of cosmic energy'] = { - clientId = 3073, - sell = 2000, - }, - ['wand of decay'] = { - clientId = 3072, - sell = 1000, - }, - ['wand of defiance'] = { - clientId = 16096, - sell = 6500, - }, - ['wand of draconia'] = { - clientId = 8093, - sell = 1500, - }, - ['wand of everblazing'] = { - clientId = 16115, - sell = 6000, - }, - ['wand of inferno'] = { - clientId = 3071, - sell = 3000, - }, - ['wand of starstorm'] = { - clientId = 8092, - sell = 3600, - }, - ['wand of voodoo'] = { - clientId = 8094, - sell = 4400, - }, - ['war hammer'] = { - clientId = 3279, - sell = 1200, - }, - ['warrior helmet'] = { - clientId = 3369, - sell = 5000, - }, - ['warrior\'s shield'] = { - clientId = 14042, - sell = 9000, - }, - ['wereboar loincloth'] = { - clientId = 22087, - sell = 1500, - }, - ['witch hat'] = { - clientId = 9653, - sell = 5000, - }, - ['wood cape'] = { - clientId = 3575, - sell = 5000, - }, - ['wyvern fang'] = { - clientId = 7408, - sell = 1500, - }, - ['zaoan shoes'] = { - clientId = 10386, - sell = 5000, - }, - ['collar of blue plasma'] = { - clientId = 23542, - sell = 6000, - }, - ['collar of green plasma'] = { - clientId = 23543, - sell = 6000, - }, - ['collar of red plasma'] = { - clientId = 23544, - sell = 6000, - }, - ['gearwheel chain'] = { - clientId = 21170, - sell = 5000, - }, - ['glooth amulet'] = { - clientId = 21183, - sell = 2000, - }, - ['leviathan\'s amulet'] = { - clientId = 9303, - sell = 3000, - }, - ['magma amulet'] = { - clientId = 817, - sell = 1500, - }, - ['onyx pendant'] = { - clientId = 22195, - sell = 3500, - }, - ['ruby necklace'] = { - clientId = 3016, - sell = 2000, - }, - ['sacred tree amulet'] = { - clientId = 9302, - sell = 3000, - }, - ['shockwave amulet'] = { - clientId = 9304, - sell = 3000, - }, - ['terra amulet'] = { - clientId = 814, - sell = 1500, - }, - ['wailing widow\'s necklace'] = { - clientId = 10412, - sell = 3000, - }, - ['werewolf amulet'] = { - clientId = 22060, - sell = 3000, - }, - ['ring of blue plasma'] = { - clientId = 23529, - sell = 8000, - }, - ['ring of green plasma'] = { - clientId = 23531, - sell = 8000, - }, - ['ring of red plasma'] = { - clientId = 23533, - sell = 8000, - }, - ['blue crystal shard'] = { - clientId = 16119, - sell = 1500, - }, - ['blue gem'] = { - clientId = 3041, - sell = 5000, - }, - ['brown giant shimmering pearl'] = { - clientId = 282, - sell = 3000, - }, - ['crown'] = { - clientId = 33935, - sell = 2700, - }, - ['cry-stal'] = { - clientId = 39394, - sell = 3200, - }, - ['crystal of balance'] = { - clientId = 9028, - sell = 1000, - }, - ['crystal of focus'] = { - clientId = 9027, - sell = 2000, - }, - ['crystal of power'] = { - clientId = 9067, - sell = 3000, - }, - ['death toll'] = { - clientId = 32703, - sell = 1000, - }, - ['flawless ice crystal'] = { - clientId = 942, - sell = 5000, - }, - ['gemmed figurine'] = { - clientId = 24392, - sell = 3500, - }, - ['gold ingot'] = { - clientId = 9058, - sell = 5000, - }, - ['gold ring'] = { - clientId = 3063, - sell = 8000, - }, - ['golden amulet'] = { - clientId = 3013, - sell = 2000, - }, - ['golden cheese wedge'] = { - clientId = 35581, - sell = 6000, - }, - ['golden dustbin'] = { - clientId = 35579, - sell = 7000, - }, - ['golden figurine'] = { - clientId = 5799, - sell = 3000, - }, - ['golden sickle'] = { - clientId = 3306, - sell = 1000, - }, - ['golden skull'] = { - clientId = 35580, - sell = 9000, - }, - ['green crystal shard'] = { - clientId = 16121, - sell = 1500, - }, - ['green gem'] = { - clientId = 3038, - sell = 5000, - }, - ['green giant shimmering pearl'] = { - clientId = 281, - sell = 3000, - }, - ['guardian gem'] = { - clientId = 44603, - sell = 5000, - }, - ['lesser guardian gem'] = { - clientId = 44602, - sell = 1000, - }, - ['lesser marksman gem'] = { - clientId = 44605, - sell = 1000, - }, - ['lesser mystic gem'] = { - clientId = 44611, - sell = 1000, - }, - ['lesser sage gem'] = { - clientId = 44608, - sell = 1000, - }, - ['marksman gem'] = { - clientId = 44606, - sell = 5000, - }, - ['mystic gem'] = { - clientId = 44612, - sell = 5000, - }, - ['purple tome'] = { - clientId = 2848, - sell = 2000, - }, - ['red gem'] = { - clientId = 3039, - sell = 1000, - }, - ['red tome'] = { - clientId = 2852, - sell = 2000, - }, - ['sage gem'] = { - clientId = 44609, - sell = 5000, - }, - ['silver rune emblem explosion'] = { - clientId = 11607, - sell = 5000, - }, - ['silver rune emblem heavy magic missile'] = { - clientId = 11605, - sell = 5000, - }, - ['silver rune emblem sudden death'] = { - clientId = 11609, - sell = 5000, - }, - ['silver rune emblem ultimate healing'] = { - clientId = 11603, - sell = 5000, - }, - ['violet crystal shard'] = { - clientId = 16120, - sell = 1500, - }, - ['yellow gem'] = { - clientId = 3037, - sell = 1000, - }, - ['behemoth claw'] = { - clientId = 5930, - sell = 2000, - }, - ['demonic essence'] = { - clientId = 6499, - sell = 1000, - }, - ['dragon claw'] = { - clientId = 5919, - sell = 8000, - }, - ['iced soil'] = { - clientId = 944, - sell = 2000, - }, - ['energy soil'] = { - clientId = 945, - sell = 2000, - }, - ['magic sulphur'] = { - clientId = 5904, - sell = 8000, - }, - ['mandrake'] = { - clientId = 5014, - sell = 5000, - }, - ['mother soil'] = { - clientId = 947, - sell = 5000, - }, - ['natural soil'] = { - clientId = 940, - sell = 2000, - }, - ['necklace of the deep'] = { - clientId = 13990, - sell = 3000, - }, - ['nose ring'] = { - clientId = 5804, - sell = 2000, - }, - ['piece of draconian steel'] = { - clientId = 5889, - sell = 3000, - }, - ['shard'] = { - clientId = 7290, - sell = 2000, - }, - ['sniper gloves'] = { - clientId = 5875, - sell = 2000, - }, - ['soul stone'] = { - clientId = 5809, - sell = 6000, - }, - ['spool of yarn'] = { - clientId = 5886, - sell = 1000, - }, - ['bat decoration'] = { - clientId = 6491, - sell = 2000, - }, - ['bonebeast trophy'] = { - clientId = 10244, - sell = 6000, - }, - ['deer trophy'] = { - clientId = 7397, - sell = 3000, - }, - ['disgusting trophy'] = { - clientId = 10421, - sell = 3000, - }, - ['dracoyle statue'] = { - clientId = 9034, - sell = 5000, - }, - ['lion trophy'] = { - clientId = 7400, - sell = 3000, - }, - ['lizard trophy'] = { - clientId = 10419, - sell = 8000, - }, - ['marlin trophy'] = { - clientId = 902, - sell = 5000, - }, - ['model ship'] = { - clientId = 2994, - sell = 1000, - }, - ['pet pig'] = { - clientId = 16165, - sell = 1500, - }, - ['silver fafnar trophy'] = { - clientId = 9627, - sell = 1000, - }, - ['skeleton decoration'] = { - clientId = 6525, - sell = 3000, - }, - ['souleater trophy'] = { - clientId = 11679, - sell = 7500, - }, - ['statue of abyssador'] = { - clientId = 16232, - sell = 4000, - }, - ['statue of deathstrike'] = { - clientId = 16236, - sell = 3000, - }, - ['statue of devovorga'] = { - clientId = 4065, - sell = 1500, - }, - ['statue of gnomevil'] = { - clientId = 16240, - sell = 2000, - }, - ['stuffed dragon'] = { - clientId = 5791, - sell = 6000, - }, - ['trophy of jaul'] = { - clientId = 14006, - sell = 4000, - }, - ['trophy of obujos'] = { - clientId = 14002, - sell = 3000, - }, - ['trophy of tanjis'] = { - clientId = 14004, - sell = 2000, - }, - ['werebadger trophy'] = { - clientId = 22101, - sell = 9000, - }, - ['werefox trophy'] = { - clientId = 27706, - sell = 9000, - }, - ['wolf trophy'] = { - clientId = 7394, - sell = 3000, - }, - }, - ['grey'] = { - ['afflicted strider head'] = { - clientId = 36789, - sell = 900, - }, - ['afflicted strider worms'] = { - clientId = 36790, - sell = 500, - }, - ['ancient belt buckle'] = { - clientId = 24384, - sell = 260, - }, - ['antlers'] = { - clientId = 10297, - sell = 50, - }, - ['banana sash'] = { - clientId = 11511, - sell = 55, - }, - ['basalt fetish'] = { - clientId = 17856, - sell = 210, - }, - ['bashmu fang'] = { - clientId = 36820, - sell = 600, - }, - ['bashmu feather'] = { - clientId = 36823, - sell = 350, - }, - ['bashmu tongue'] = { - clientId = 36821, - sell = 400, - }, - ['bed of nails'] = { - clientId = 25743, - sell = 500, - }, - ['beer tap'] = { - clientId = 32114, - sell = 50, - }, - ['beetle carapace'] = { - clientId = 24381, - sell = 200, - }, - ['black hood'] = { - clientId = 9645, - sell = 190, - }, - ['black wool'] = { - clientId = 11448, - sell = 300, - }, - ['blazing bone'] = { - clientId = 16131, - sell = 610, - }, - ['blemished spawn abdomen'] = { - clientId = 36779, - sell = 550, - }, - ['blemished spawn head'] = { - clientId = 36778, - sell = 800, - }, - ['blood preservation'] = { - clientId = 11449, - sell = 320, - }, - ['blood tincture in a vial'] = { - clientId = 18928, - sell = 360, - }, - ['bloody dwarven beard'] = { - clientId = 17827, - sell = 110, - }, - ['bloody pincers'] = { - clientId = 9633, - sell = 100, - }, - ['blue glass plate'] = { - clientId = 29345, - sell = 60, - }, - ['blue goanna scale'] = { - clientId = 31559, - sell = 230, - }, - ['boar man hoof'] = { - clientId = 40584, - sell = 600, - }, - ['boggy dreads'] = { - clientId = 9667, - sell = 200, - }, - ['bone fetish'] = { - clientId = 17831, - sell = 150, - }, - ['bone shoulderplate'] = { - clientId = 10404, - sell = 150, - }, - ['bone toothpick'] = { - clientId = 24380, - sell = 150, - }, - ['bonecarving knife'] = { - clientId = 17830, - sell = 190, - }, - ['bony tail'] = { - clientId = 10277, - sell = 210, - }, - ['book of necromantic rituals'] = { - clientId = 10320, - sell = 180, - }, - ['book of prayers'] = { - clientId = 9646, - sell = 120, - }, - ['book page'] = { - clientId = 28569, - sell = 640, - }, - ['bowl of terror sweat'] = { - clientId = 20204, - sell = 500, - }, - ['bright bell'] = { - clientId = 30324, - sell = 220, - }, - ['brimstone fangs'] = { - clientId = 11702, - sell = 380, - }, - ['brimstone shell'] = { - clientId = 11703, - sell = 210, - }, - ['broken bell'] = { - clientId = 30185, - sell = 150, - }, - ['broken draken mail'] = { - clientId = 11660, - sell = 340, - }, - ['broken gladiator shield'] = { - clientId = 9656, - sell = 190, - }, - ['broken halberd'] = { - clientId = 10418, - sell = 100, - }, - ['broken iks faulds'] = { - clientId = 40531, - sell = 530, - }, - ['broken iks headpiece'] = { - clientId = 40532, - sell = 560, - }, - ['broken iks sandals'] = { - clientId = 40534, - sell = 440, - }, - ['broken longbow'] = { - clientId = 34161, - sell = 130, - }, - ['broken slicer'] = { - clientId = 11661, - sell = 120, - }, - ['broken throwing axe'] = { - clientId = 17851, - sell = 230, - }, - ['bunch of ripe rice'] = { - clientId = 10328, - sell = 75, - }, - ['bundle of cursed straw'] = { - clientId = 9688, - sell = 800, - }, - ['carniphila seeds'] = { - clientId = 10300, - sell = 50, - }, - ['carnisylvan bark'] = { - clientId = 36806, - sell = 230, - }, - ['carnisylvan finger'] = { - clientId = 36805, - sell = 250, - }, - ['carnivostrich feathers'] = { - clientId = 40586, - sell = 550, - }, - ['cave chimera leg'] = { - clientId = 36788, - sell = 650, - }, - ['cave devourer eyes'] = { - clientId = 27599, - sell = 550, - }, - ['cave devourer legs'] = { - clientId = 27601, - sell = 350, - }, - ['cave devourer maw'] = { - clientId = 27600, - sell = 600, - }, - ['cavebear skull'] = { - clientId = 12316, - sell = 550, - }, - ['chasm spawn abdomen'] = { - clientId = 27603, - sell = 240, - }, - ['chasm spawn head'] = { - clientId = 27602, - sell = 850, - }, - ['chasm spawn tail'] = { - clientId = 27604, - sell = 120, - }, - ['cheese cutter'] = { - clientId = 17817, - sell = 50, - }, - ['cheesy figurine'] = { - clientId = 17818, - sell = 150, - }, - ['cliff strider claw'] = { - clientId = 16134, - sell = 800, - }, - ['closed trap'] = { - clientId = 3481, - sell = 75, - }, - ['cobra crest'] = { - clientId = 31678, - sell = 650, - }, - ['colourful feather'] = { - clientId = 11514, - sell = 110, - }, - ['colourful feathers'] = { - clientId = 25089, - sell = 400, - }, - ['colourful snail shell'] = { - clientId = 25696, - sell = 250, - }, - ['compound eye'] = { - clientId = 14083, - sell = 150, - }, - ['condensed energy'] = { - clientId = 23501, - sell = 260, - }, - ['coral branch'] = { - clientId = 39406, - sell = 360, - }, - ['coral brooch'] = { - clientId = 24391, - sell = 750, - }, - ['corrupt naga scales'] = { - clientId = 39415, - sell = 570, - }, - ['corrupted flag'] = { - clientId = 10409, - sell = 700, - }, - ['cow bell'] = { - clientId = 32012, - sell = 120, - }, - ['cowbell'] = { - clientId = 21204, - sell = 210, - }, - ['crab man claw'] = { - clientId = 40582, - sell = 550, - }, - ['crawler head plating'] = { - clientId = 14079, - sell = 210, - }, - ['crystal bone'] = { - clientId = 23521, - sell = 250, - }, - ['cultish mask'] = { - clientId = 9638, - sell = 280, - }, - ['cultish robe'] = { - clientId = 9639, - sell = 150, - }, - ['cultish symbol'] = { - clientId = 11455, - sell = 500, - }, - ['curious matter'] = { - clientId = 23511, - sell = 430, - }, - ['cursed shoulder spikes'] = { - clientId = 10410, - sell = 320, - }, - ['cyclops toe'] = { - clientId = 9657, - sell = 55, - }, - ['daedal chisel'] = { - clientId = 40522, - sell = 480, - }, - ['damaged armor plates'] = { - clientId = 28822, - sell = 280, - }, - ['dandelion seeds'] = { - clientId = 25695, - sell = 200, - }, - ['dangerous proto matter'] = { - clientId = 23515, - sell = 300, - }, - ['dark bell'] = { - clientId = 30325, - sell = 250, - }, - ['dead weight'] = { - clientId = 20202, - sell = 450, - }, - ['deepling breaktime snack'] = { - clientId = 14011, - sell = 90, - }, - ['deepling claw'] = { - clientId = 14044, - sell = 430, - }, - ['deepling guard belt buckle'] = { - clientId = 14010, - sell = 230, - }, - ['deepling ridge'] = { - clientId = 14041, - sell = 360, - }, - ['deepling scales'] = { - clientId = 14017, - sell = 80, - }, - ['deepling warts'] = { - clientId = 14012, - sell = 180, - }, - ['deeptags'] = { - clientId = 14013, - sell = 290, - }, - ['deepworm jaws'] = { - clientId = 27594, - sell = 500, - }, - ['deepworm spike roots'] = { - clientId = 27593, - sell = 650, - }, - ['deepworm spikes'] = { - clientId = 27592, - sell = 800, - }, - ['demonic skeletal hand'] = { - clientId = 9647, - sell = 80, - }, - ['diremaw brainpan'] = { - clientId = 27597, - sell = 350, - }, - ['diremaw legs'] = { - clientId = 27598, - sell = 270, - }, - ['dirty turban'] = { - clientId = 11456, - sell = 120, - }, - ['dragon blood'] = { - clientId = 24937, - sell = 700, - }, - ['dragon priest\'s wandtip'] = { - clientId = 10444, - sell = 175, - }, - ['dragon tongue'] = { - clientId = 24938, - sell = 550, - }, - ['dragon\'s tail'] = { - clientId = 11457, - sell = 100, - }, - ['draken sulphur'] = { - clientId = 11658, - sell = 550, - }, - ['draken wristbands'] = { - clientId = 11659, - sell = 430, - }, - ['draptor scales'] = { - clientId = 12309, - sell = 800, - }, - ['dream essence egg'] = { - clientId = 30005, - sell = 205, - }, - ['dung ball'] = { - clientId = 14225, - sell = 130, - }, - ['elder bonelord tentacle'] = { - clientId = 10276, - sell = 150, - }, - ['elven astral observer'] = { - clientId = 11465, - sell = 90, - }, - ['elven hoof'] = { - clientId = 18994, - sell = 115, - }, - ['elven scouting glass'] = { - clientId = 11464, - sell = 50, - }, - ['empty honey glass'] = { - clientId = 31331, - sell = 270, - }, - ['energy ball'] = { - clientId = 23523, - sell = 300, - }, - ['energy vein'] = { - clientId = 23508, - sell = 270, - }, - ['ensouled essence'] = { - clientId = 32698, - sell = 820, - }, - ['essence of a bad dream'] = { - clientId = 10306, - sell = 360, - }, - ['execowtioner mask'] = { - clientId = 21201, - sell = 240, - }, - ['ethno coat'] = { - clientId = 8064, - sell = 200, - }, - ['eye of a deepling'] = { - clientId = 12730, - sell = 150, - }, - ['eye of a weeper'] = { - clientId = 16132, - sell = 650, - }, - ['eye of corruption'] = { - clientId = 11671, - sell = 390, - }, - ['eyeless devourer legs'] = { - clientId = 36776, - sell = 650, - }, - ['eyeless devourer maw'] = { - clientId = 36775, - sell = 420, - }, - ['eyeless devourer tongue'] = { - clientId = 36777, - sell = 900, - }, - ['fafnar symbol'] = { - clientId = 31443, - sell = 950, - }, - ['fairy wings'] = { - clientId = 25694, - sell = 200, - }, - ['falcon crest'] = { - clientId = 28823, - sell = 650, - }, - ['fiery heart'] = { - clientId = 9636, - sell = 375, - }, - ['fig leaf'] = { - clientId = 25742, - sell = 200, - }, - ['flotsam'] = { - clientId = 39407, - sell = 330, - }, - ['flower wreath'] = { - clientId = 9013, - sell = 500, - }, - ['fox paw'] = { - clientId = 27462, - sell = 100, - }, - ['frazzle skin'] = { - clientId = 20199, - sell = 400, - }, - ['frazzle tongue'] = { - clientId = 20198, - sell = 700, - }, - ['frost giant pelt'] = { - clientId = 9658, - sell = 160, - }, - ['frosty heart'] = { - clientId = 9661, - sell = 280, - }, - ['gauze bandage'] = { - clientId = 9649, - sell = 90, - }, - ['gear crystal'] = { - clientId = 9655, - sell = 200, - }, - ['gear wheel'] = { - clientId = 8775, - sell = 500, - }, - ['fur shred'] = { - clientId = 34164, - sell = 200, - }, - ['geomancer\'s robe'] = { - clientId = 11458, - sell = 80, - }, - ['geomancer\'s staff'] = { - clientId = 11463, - sell = 120, - }, - ['ghastly dragon head'] = { - clientId = 10449, - sell = 700, - }, - ['ghostly tissue'] = { - clientId = 9690, - sell = 90, - }, - ['ghoul snack'] = { - clientId = 11467, - sell = 60, - }, - ['giant crab pincer'] = { - clientId = 12317, - sell = 950, - }, - ['giant eye'] = { - clientId = 10280, - sell = 380, - }, - ['girtablilu warrior carapace'] = { - clientId = 36971, - sell = 520, - }, - ['gland'] = { - clientId = 8143, - sell = 500, - }, - ['glistening bone'] = { - clientId = 23522, - sell = 250, - }, - ['glob of glooth'] = { - clientId = 21182, - sell = 125, - }, - ['gloom wolf fur'] = { - clientId = 22007, - sell = 70, - }, - ['glooth injection tube'] = { - clientId = 21103, - sell = 350, - }, - ['goanna claw'] = { - clientId = 31561, - sell = 260, - }, - ['goanna meat'] = { - clientId = 31560, - sell = 190, - }, - ['goat grass'] = { - clientId = 3674, - sell = 50, - }, - ['goosebump leather'] = { - clientId = 20205, - sell = 650, - }, - ['grant of arms'] = { - clientId = 28824, - sell = 950, - }, - ['grappling hook'] = { - clientId = 35588, - sell = 150, - }, - ['green bandage'] = { - clientId = 25697, - sell = 180, - }, - ['green glass plate'] = { - clientId = 29346, - sell = 180, - }, - ['guidebook'] = { - clientId = 25745, - sell = 200, - }, - ['hair of a banshee'] = { - clientId = 11446, - sell = 350, - }, - ['half-digested piece of meat'] = { - clientId = 10283, - sell = 55, - }, - ['half-eaten brain'] = { - clientId = 9659, - sell = 85, - }, - ['harpy feathers'] = { - clientId = 40585, - sell = 730, - }, - ['haunted piece of wood'] = { - clientId = 9683, - sell = 115, - }, - ['heaven blossom'] = { - clientId = 5921, - sell = 50, - }, - ['heavy machete'] = { - clientId = 3330, - sell = 90, - }, - ['hellhound slobber'] = { - clientId = 9637, - sell = 500, - }, - ['hellspawn tail'] = { - clientId = 10304, - sell = 475, - }, - ['hemp rope'] = { - clientId = 20206, - sell = 350, - }, - ['hideous chunk'] = { - clientId = 16140, - sell = 510, - }, - ['hieroglyph banner'] = { - clientId = 12482, - sell = 500, - }, - ['high guard flag'] = { - clientId = 10415, - sell = 550, - }, - ['high guard shoulderplates'] = { - clientId = 10416, - sell = 130, - }, - ['hollow stampor hoof'] = { - clientId = 12314, - sell = 400, - }, - ['holy ash'] = { - clientId = 17850, - sell = 160, - }, - ['horn'] = { - clientId = 19359, - sell = 300, - }, - ['humongous chunk'] = { - clientId = 16139, - sell = 540, - }, - ['hunter\'s quiver'] = { - clientId = 11469, - sell = 80, - }, - ['hydra egg'] = { - clientId = 4839, - sell = 500, - }, - ['hydra head'] = { - clientId = 10282, - sell = 600, - }, - ['hydrophytes'] = { - clientId = 39410, - sell = 220, - }, - ['ice flower'] = { - clientId = 30058, - sell = 370, - }, - ['incantation notes'] = { - clientId = 18929, - sell = 90, - }, - ['inkwell'] = { - clientId = 28568, - sell = 720, - }, - ['instable proto matter'] = { - clientId = 23516, - sell = 300, - }, - ['ivory carving'] = { - clientId = 33945, - sell = 300, - }, - ['jewelled belt'] = { - clientId = 11470, - sell = 180, - }, - ['jungle moa claw'] = { - clientId = 39404, - sell = 160, - }, - ['jungle moa egg'] = { - clientId = 39405, - sell = 250, - }, - ['jungle moa feather'] = { - clientId = 39403, - sell = 140, - }, - ['katex\' blood'] = { - clientId = 34100, - sell = 210, - }, - ['key to the drowned library'] = { - clientId = 14009, - sell = 330, - }, - ['kollos shell'] = { - clientId = 14077, - sell = 420, - }, - ['kongra\'s shoulderpad'] = { - clientId = 11471, - sell = 100, - }, - ['lamassu hoof'] = { - clientId = 31441, - sell = 330, - }, - ['lamassu horn'] = { - clientId = 31442, - sell = 240, - }, - ['lancer beetle shell'] = { - clientId = 10455, - sell = 80, - }, - ['lancet'] = { - clientId = 18925, - sell = 90, - }, - ['lava fungus head'] = { - clientId = 36785, - sell = 900, - }, - ['lava fungus ring'] = { - clientId = 36786, - sell = 390, - }, - ['lavaworm spike roots'] = { - clientId = 36769, - sell = 600, - }, - ['lavaworm spikes'] = { - clientId = 36770, - sell = 750, - }, - ['legionnaire flags'] = { - clientId = 10417, - sell = 500, - }, - ['liodile fang'] = { - clientId = 40583, - sell = 480, - }, - ['lion cloak patch'] = { - clientId = 34162, - sell = 190, - }, - ['lion crest'] = { - clientId = 34160, - sell = 270, - }, - ['lion seal'] = { - clientId = 34163, - sell = 210, - }, - ['lion\'s mane'] = { - clientId = 9691, - sell = 60, - }, - ['little bowl of myrrh'] = { - clientId = 25702, - sell = 500, - }, - ['lizard essence'] = { - clientId = 11680, - sell = 300, - }, - ['lizard heart'] = { - clientId = 31340, - sell = 530, - }, - ['lost basher\'s spike'] = { - clientId = 17826, - sell = 280, - }, - ['lost bracers'] = { - clientId = 17853, - sell = 140, - }, - ['lost husher\'s staff'] = { - clientId = 17848, - sell = 250, - }, - ['lost soul'] = { - clientId = 32227, - sell = 120, - }, - ['luminescent crystal pickaxe'] = { - clientId = 32711, - sell = 50, - }, - ['lump of earth'] = { - clientId = 10305, - sell = 130, - }, - ['mad froth'] = { - clientId = 17854, - sell = 80, - }, - ['magma clump'] = { - clientId = 16130, - sell = 570, - }, - ['makara fin'] = { - clientId = 39401, - sell = 350, - }, - ['makara tongue'] = { - clientId = 39402, - sell = 320, - }, - ['mantassin tail'] = { - clientId = 11489, - sell = 280, - }, - ['manticore ear'] = { - clientId = 31440, - sell = 310, - }, - ['manticore tail'] = { - clientId = 31439, - sell = 220, - }, - ['marsh stalker beak'] = { - clientId = 17461, - sell = 65, - }, - ['marsh stalker feather'] = { - clientId = 17462, - sell = 50, - }, - ['maxilla'] = { - clientId = 12315, - sell = 250, - }, - ['metal spike'] = { - clientId = 10298, - sell = 320, - }, - ['metal toe'] = { - clientId = 21198, - sell = 430, - }, - ['milk churn'] = { - clientId = 32011, - sell = 100, - }, - ['minotaur horn'] = { - clientId = 11472, - sell = 75, - }, - ['miraculum'] = { - clientId = 11474, - sell = 60, - }, - ['mooh\'tah shell'] = { - clientId = 21202, - sell = 110, - }, - ['moohtant horn'] = { - clientId = 21200, - sell = 140, - }, - ['mouldy powder'] = { - clientId = 35596, - sell = 200, - }, - ['mucus plug'] = { - clientId = 16102, - sell = 500, - }, - ['mutated bat ear'] = { - clientId = 9662, - sell = 420, - }, - ['mutated flesh'] = { - clientId = 10308, - sell = 50, - }, - ['mutated rat tail'] = { - clientId = 9668, - sell = 150, - }, - ['mysterious fetish'] = { - clientId = 3078, - sell = 50, - }, - ['mystical hourglass'] = { - clientId = 9660, - sell = 700, - }, - ['naga archer scales'] = { - clientId = 39413, - sell = 340, - }, - ['naga armring'] = { - clientId = 39411, - sell = 390, - }, - ['naga earring'] = { - clientId = 39412, - sell = 380, - }, - ['naga warrior scales'] = { - clientId = 39414, - sell = 340, - }, - ['necromantic robe'] = { - clientId = 11475, - sell = 250, - }, - ['necromantic rust'] = { - clientId = 21196, - sell = 390, - }, - ['nettle blossom'] = { - clientId = 10314, - sell = 75, - }, - ['odd organ'] = { - clientId = 23510, - sell = 410, - }, - ['ogre ear stud'] = { - clientId = 22188, - sell = 180, - }, - ['ogre nose ring'] = { - clientId = 22189, - sell = 210, - }, - ['old girtablilu carapace'] = { - clientId = 36972, - sell = 570, - }, - ['old parchment'] = { - clientId = 4831, - sell = 500, - }, - ['orc tooth'] = { - clientId = 10196, - sell = 150, - }, - ['orc tusk'] = { - clientId = 7786, - sell = 700, - }, - ['orcish gear'] = { - clientId = 11477, - sell = 85, - }, - ['pair of old bracers'] = { - clientId = 32705, - sell = 500, - }, - ['panpipes'] = { - clientId = 2953, - sell = 150, - }, - ['panther head'] = { - clientId = 12039, - sell = 750, - }, - ['panther paw'] = { - clientId = 12040, - sell = 300, - }, - ['parder fur'] = { - clientId = 39418, - sell = 150, - }, - ['parder tooth'] = { - clientId = 39417, - sell = 150, - }, - ['peacock feather fan'] = { - clientId = 21975, - sell = 350, - }, - ['percht horns'] = { - clientId = 30186, - sell = 200, - }, - ['petrified scream'] = { - clientId = 10420, - sell = 250, - }, - ['phantasmal hair'] = { - clientId = 32704, - sell = 500, - }, - ['piece of dead brain'] = { - clientId = 9663, - sell = 420, - }, - ['piece of hellfire armor'] = { - clientId = 9664, - sell = 550, - }, - ['piece of warrior armor'] = { - clientId = 11482, - sell = 50, - }, - ['pieces of magic chalk'] = { - clientId = 18930, - sell = 210, - }, - ['pirat\'s tail'] = { - clientId = 35573, - sell = 180, - }, - ['plasmatic lightning'] = { - clientId = 23520, - sell = 270, - }, - ['poison gland'] = { - clientId = 29348, - sell = 210, - }, - ['poisoned fang'] = { - clientId = 21195, - sell = 130, - }, - ['poisonous slime'] = { - clientId = 9640, - sell = 50, - }, - ['pool of chitinous glue'] = { - clientId = 20207, - sell = 480, - }, - ['protective charm'] = { - clientId = 11444, - sell = 60, - }, - ['pulverized ore'] = { - clientId = 16133, - sell = 400, - }, - ['purified soul'] = { - clientId = 32228, - sell = 260, - }, - ['purple robe'] = { - clientId = 11473, - sell = 110, - }, - ['quara bone'] = { - clientId = 11491, - sell = 500, - }, - ['quara eye'] = { - clientId = 11488, - sell = 350, - }, - ['quara pincers'] = { - clientId = 11490, - sell = 410, - }, - ['quara tentacle'] = { - clientId = 11487, - sell = 140, - }, - ['rabbit\'s foot'] = { - clientId = 12172, - sell = 50, - }, - ['rare earth'] = { - clientId = 27301, - sell = 80, - }, - ['red goanna scale'] = { - clientId = 31558, - sell = 270, - }, - ['red lantern'] = { - clientId = 10289, - sell = 250, - }, - ['rhindeer antlers'] = { - clientId = 40587, - sell = 680, - }, - ['rhino hide'] = { - clientId = 24388, - sell = 175, - }, - ['rhino horn carving'] = { - clientId = 24386, - sell = 300, - }, - ['rhino horn'] = { - clientId = 24389, - sell = 265, - }, - ['ritual tooth'] = { - clientId = 40528, - sell = 135, - }, - ['rogue naga scales'] = { - clientId = 39416, - sell = 570, - }, - ['rope belt'] = { - clientId = 11492, - sell = 66, - }, - ['rorc egg'] = { - clientId = 18996, - sell = 120, - }, - ['rorc feather'] = { - clientId = 18993, - sell = 70, - }, - ['rotten feather'] = { - clientId = 40527, - sell = 120, - }, - ['sabretooth'] = { - clientId = 10311, - sell = 400, - }, - ['safety pin'] = { - clientId = 11493, - sell = 120, - }, - ['sample of monster blood'] = { - clientId = 27874, - sell = 250, - }, - ['scale of corruption'] = { - clientId = 11673, - sell = 680, - }, - ['scorpion charm'] = { - clientId = 36822, - sell = 620, - }, - ['scroll of heroic deeds'] = { - clientId = 11510, - sell = 230, - }, - ['scythe leg'] = { - clientId = 10312, - sell = 450, - }, - ['scarab pincers'] = { - clientId = 9631, - sell = 280, - }, - ['sea serpent scale'] = { - clientId = 9666, - sell = 520, - }, - ['seacrest hair'] = { - clientId = 21801, - sell = 260, - }, - ['seacrest scale'] = { - clientId = 21800, - sell = 150, - }, - ['seeds'] = { - clientId = 647, - sell = 150, - }, - ['shamanic talisman'] = { - clientId = 22184, - sell = 200, - }, - ['shark fins'] = { - clientId = 35574, - sell = 250, - }, - ['shimmering beetles'] = { - clientId = 25693, - sell = 150, - }, - ['silencer claws'] = { - clientId = 20200, - sell = 390, - }, - ['silencer resonating chamber'] = { - clientId = 20201, - sell = 600, - }, - ['skull belt'] = { - clientId = 11480, - sell = 80, - }, - ['skull fetish'] = { - clientId = 22191, - sell = 250, - }, - ['skull shatterer'] = { - clientId = 17849, - sell = 170, - }, - ['skunk tail'] = { - clientId = 10274, - sell = 50, - }, - ['slime heart'] = { - clientId = 21194, - sell = 160, - }, - ['slime mould'] = { - clientId = 12601, - sell = 175, - }, - ['slimy leaf tentacle'] = { - clientId = 21197, - sell = 320, - }, - ['small energy ball'] = { - clientId = 23524, - sell = 250, - }, - ['small flask of eyedrops'] = { - clientId = 11512, - sell = 95, - }, - ['small notebook'] = { - clientId = 11450, - sell = 480, - }, - ['small oil lamp'] = { - clientId = 2933, - sell = 150, - }, - ['small pitchfork'] = { - clientId = 11513, - sell = 70, - }, - ['small tropical fish'] = { - clientId = 39408, - sell = 380, - }, - ['snake skin'] = { - clientId = 9694, - sell = 400, - }, - ['solid rage'] = { - clientId = 23517, - sell = 310, - }, - ['spark sphere'] = { - clientId = 23518, - sell = 350, - }, - ['sparkion claw'] = { - clientId = 23502, - sell = 290, - }, - ['sparkion legs'] = { - clientId = 23504, - sell = 310, - }, - ['sparkion stings'] = { - clientId = 23505, - sell = 280, - }, - ['sparkion tail'] = { - clientId = 23503, - sell = 300, - }, - ['spellsinger\'s seal'] = { - clientId = 14008, - sell = 280, - }, - ['sphinx feather'] = { - clientId = 31437, - sell = 470, - }, - ['sphinx tiara'] = { - clientId = 31438, - sell = 360, - }, - ['spidris mandible'] = { - clientId = 14082, - sell = 450, - }, - ['spiked iron ball'] = { - clientId = 10408, - sell = 100, - }, - ['spiky club'] = { - clientId = 17859, - sell = 300, - }, - ['spitter nose'] = { - clientId = 14078, - sell = 340, - }, - ['spooky blue eye'] = { - clientId = 9642, - sell = 95, - }, - ['srezz\' eye'] = { - clientId = 34103, - sell = 300, - }, - ['stampor horn'] = { - clientId = 12312, - sell = 280, - }, - ['stampor talons'] = { - clientId = 12313, - sell = 150, - }, - ['stone nose'] = { - clientId = 16137, - sell = 590, - }, - ['stone wing'] = { - clientId = 10278, - sell = 120, - }, - ['stonerefiner\'s skull'] = { - clientId = 27606, - sell = 100, - }, - ['strand of medusa hair'] = { - clientId = 10309, - sell = 600, - }, - ['strange proto matter'] = { - clientId = 23513, - sell = 300, - }, - ['strange symbol'] = { - clientId = 3058, - sell = 200, - }, - ['streaked devourer eyes'] = { - clientId = 36772, - sell = 500, - }, - ['streaked devourer legs'] = { - clientId = 36774, - sell = 600, - }, - ['streaked devourer maw'] = { - clientId = 36773, - sell = 400, - }, - ['striped fur'] = { - clientId = 10293, - sell = 50, - }, - ['sulphurous stone'] = { - clientId = 10315, - sell = 100, - }, - ['swarmer antenna'] = { - clientId = 14076, - sell = 130, - }, - ['tail of corruption'] = { - clientId = 11672, - sell = 240, - }, - ['tarantula egg'] = { - clientId = 10281, - sell = 80, - }, - ['tarnished rhino figurine'] = { - clientId = 24387, - sell = 320, - }, - ['tattered piece of robe'] = { - clientId = 9684, - sell = 120, - }, - ['terramite eggs'] = { - clientId = 10453, - sell = 50, - }, - ['terramite legs'] = { - clientId = 10454, - sell = 60, - }, - ['terramite shell'] = { - clientId = 10452, - sell = 170, - }, - ['terrorbird beak'] = { - clientId = 10273, - sell = 95, - }, - ['thick fur'] = { - clientId = 10307, - sell = 150, - }, - ['thorn'] = { - clientId = 9643, - sell = 100, - }, - ['tiger eye'] = { - clientId = 24961, - sell = 350, - }, - ['tooth file'] = { - clientId = 18924, - sell = 60, - }, - ['torn shirt'] = { - clientId = 25744, - sell = 250, - }, - ['trapped bad dream monster'] = { - clientId = 20203, - sell = 900, - }, - ['tremendous tyrant head'] = { - clientId = 36783, - sell = 930, - }, - ['tremendous tyrant shell'] = { - clientId = 36784, - sell = 740, - }, - ['tribal mask'] = { - clientId = 3403, - sell = 250, - }, - ['trollroot'] = { - clientId = 11515, - sell = 50, - }, - ['tunnel tyrant head'] = { - clientId = 27595, - sell = 500, - }, - ['tunnel tyrant shell'] = { - clientId = 27596, - sell = 700, - }, - ['tusk'] = { - clientId = 3044, - sell = 100, - }, - ['two-headed turtle heads'] = { - clientId = 39409, - sell = 460, - }, - ['undead heart'] = { - clientId = 10450, - sell = 200, - }, - ['unholy bone'] = { - clientId = 10316, - sell = 480, - }, - ['utua\'s poison'] = { - clientId = 34101, - sell = 230, - }, - ['vampire teeth'] = { - clientId = 9685, - sell = 275, - }, - ['vampire\'s cape chain'] = { - clientId = 18927, - sell = 150, - }, - ['varnished diremaw brainpan'] = { - clientId = 36781, - sell = 750, - }, - ['varnished diremaw legs'] = { - clientId = 36782, - sell = 670, - }, - ['vein of ore'] = { - clientId = 16135, - sell = 330, - }, - ['venison'] = { - clientId = 18995, - sell = 55, - }, - ['volatile proto matter'] = { - clientId = 23514, - sell = 300, - }, - ['warmaster\'s wristguards'] = { - clientId = 10405, - sell = 200, - }, - ['waspoid claw'] = { - clientId = 14080, - sell = 320, - }, - ['waspoid wing'] = { - clientId = 14081, - sell = 190, - }, - ['weaver\'s wandtip'] = { - clientId = 10397, - sell = 250, - }, - ['werebadger claws'] = { - clientId = 22051, - sell = 160, - }, - ['werebadger skull'] = { - clientId = 22055, - sell = 185, - }, - ['werebear fur'] = { - clientId = 22057, - sell = 185, - }, - ['werebear skull'] = { - clientId = 22056, - sell = 195, - }, - ['wereboar hooves'] = { - clientId = 22053, - sell = 175, - }, - ['wereboar tusk'] = { - clientId = 22054, - sell = 165, - }, - ['werecrocodile tongue'] = { - clientId = 43729, - sell = 570, - }, - ['werefox tail'] = { - clientId = 27463, - sell = 200, - }, - ['werehyaena nose'] = { - clientId = 33943, - sell = 220, - }, - ['werehyaena talisman'] = { - clientId = 33944, - sell = 350, - }, - ['werepanther claw'] = { - clientId = 43731, - sell = 280, - }, - ['weretiger tooth'] = { - clientId = 43730, - sell = 490, - }, - ['werewolf fangs'] = { - clientId = 22052, - sell = 180, - }, - ['werewolf fur'] = { - clientId = 10317, - sell = 380, - }, - ['white deer antlers'] = { - clientId = 12544, - sell = 400, - }, - ['white deer skin'] = { - clientId = 12545, - sell = 245, - }, - ['widow\'s mandibles'] = { - clientId = 10411, - sell = 110, - }, - ['wild flowers'] = { - clientId = 25691, - sell = 120, - }, - ['wimp tooth chain'] = { - clientId = 17847, - sell = 120, - }, - ['winged tail'] = { - clientId = 10313, - sell = 800, - }, - ['witch broom'] = { - clientId = 9652, - sell = 60, - }, - ['withered pauldrons'] = { - clientId = 27607, - sell = 850, - }, - ['withered scalp'] = { - clientId = 27608, - sell = 900, - }, - ['wyrm scale'] = { - clientId = 9665, - sell = 400, - }, - ['wyvern talisman'] = { - clientId = 9644, - sell = 265, - }, - ['yielocks'] = { - clientId = 12805, - sell = 600, - }, - ['yielowax'] = { - clientId = 12742, - sell = 600, - }, - ['yirkas\' egg'] = { - clientId = 34102, - sell = 280, - }, - ['zaogun flag'] = { - clientId = 10413, - sell = 600, - }, - ['zaogun\'s shoulderplates'] = { - clientId = 10414, - sell = 150, - }, - ['ancient shield'] = { - clientId = 3432, - sell = 900, - }, - ['bandana'] = { - clientId = 5917, - sell = 150, - }, - ['battle axe'] = { - clientId = 3266, - sell = 80, - }, - ['battle hammer'] = { - clientId = 3305, - sell = 120, - }, - ['battle shield'] = { - clientId = 3413, - sell = 95, - }, - ['belted cape'] = { - clientId = 8044, - sell = 500, - }, - ['black shield'] = { - clientId = 3429, - sell = 800, - }, - ['bone shield'] = { - clientId = 3441, - sell = 80, - }, - ['brass armor'] = { - clientId = 3359, - sell = 150, - }, - ['broadsword'] = { - clientId = 3301, - sell = 500, - }, - ['carlin sword'] = { - clientId = 3283, - sell = 118, - }, - ['chain armor'] = { - clientId = 3358, - sell = 70, - }, - ['coconut shoes'] = { - clientId = 9017, - sell = 500, - }, - ['copper shield'] = { - clientId = 3430, - sell = 50, - }, - ['crowbar'] = { - clientId = 3304, - sell = 50, - }, - ['crystal ring'] = { - clientId = 3007, - sell = 250, - }, - ['crystal sword'] = { - clientId = 7449, - sell = 600, - }, - ['crystalline spikes'] = { - clientId = 16138, - sell = 440, - }, - ['daramian mace'] = { - clientId = 3327, - sell = 110, - }, - ['dark armor'] = { - clientId = 3383, - sell = 400, - }, - ['dark helmet'] = { - clientId = 3384, - sell = 250, - }, - ['dark shield'] = { - clientId = 3421, - sell = 400, - }, - ['double axe'] = { - clientId = 3275, - sell = 260, - }, - ['dwarven shield'] = { - clientId = 3425, - sell = 100, - }, - ['halberd'] = { - clientId = 3269, - sell = 400, - }, - ['iron helmet'] = { - clientId = 3353, - sell = 150, - }, - ['krimhorn helmet'] = { - clientId = 7461, - sell = 200, - }, - ['leaf legs'] = { - clientId = 9014, - sell = 500, - }, - ['leaf star'] = { - clientId = 25735, - sell = 50, - }, - ['life preserver'] = { - clientId = 17813, - sell = 300, - }, - ['light shovel'] = { - clientId = 5710, - sell = 300, - }, - ['longsword'] = { - clientId = 3285, - sell = 51, - }, - ['mammoth fur shorts'] = { - clientId = 7464, - sell = 850, - }, - ['mammoth whopper'] = { - clientId = 7381, - sell = 300, - }, - ['meat hammer'] = { - clientId = 32093, - sell = 60, - }, - ['metal jaw'] = { - clientId = 21193, - sell = 260, - }, - ['moonlight rod'] = { - clientId = 3070, - sell = 200, - }, - ['morning star'] = { - clientId = 3282, - sell = 100, - }, - ['mystic turban'] = { - clientId = 3574, - sell = 150, - }, - ['noble armor'] = { - clientId = 3380, - sell = 900, - }, - ['noble turban'] = { - clientId = 11486, - sell = 430, - }, - ['obsidian lance'] = { - clientId = 3313, - sell = 500, - }, - ['orcish axe'] = { - clientId = 3316, - sell = 350, - }, - ['plate armor'] = { - clientId = 3357, - sell = 400, - }, - ['plate legs'] = { - clientId = 3557, - sell = 115, - }, - ['poison dagger'] = { - clientId = 3299, - sell = 50, - }, - ['ragnir helmet'] = { - clientId = 7462, - sell = 400, - }, - ['ratana'] = { - clientId = 17812, - sell = 500, - }, - ['ripper lance'] = { - clientId = 3346, - sell = 500, - }, - ['scale armor'] = { - clientId = 3377, - sell = 75, - }, - ['scimitar'] = { - clientId = 3307, - sell = 150, - }, - ['serpent sword'] = { - clientId = 3297, - sell = 900, - }, - ['silver dagger'] = { - clientId = 3290, - sell = 500, - }, - ['snakebite rod'] = { - clientId = 3066, - sell = 100, - }, - ['spellwand'] = { - clientId = 651, - sell = 299, - }, - ['spike shield'] = { - clientId = 17810, - sell = 250, - }, - ['spirit cloak'] = { - clientId = 8042, - sell = 350, - }, - ['steel helmet'] = { - clientId = 3351, - sell = 293, - }, - ['steel shield'] = { - clientId = 3409, - sell = 80, - }, - ['strange helmet'] = { - clientId = 3373, - sell = 500, - }, - ['taurus mace'] = { - clientId = 7425, - sell = 500, - }, - ['tortoise shield'] = { - clientId = 6131, - sell = 150, - }, - ['twin hooks'] = { - clientId = 10392, - sell = 500, - }, - ['two handed sword'] = { - clientId = 3265, - sell = 450, - }, - ['viking helmet'] = { - clientId = 3367, - sell = 66, - }, - ['viking shield'] = { - clientId = 3431, - sell = 85, - }, - ['wand of dragonbreath'] = { - clientId = 3075, - sell = 200, - }, - ['wand of vortex'] = { - clientId = 3074, - sell = 100, - }, - ['zaoan halberd'] = { - clientId = 10406, - sell = 500, - }, - ['ancient amulet'] = { - clientId = 3025, - sell = 200, - }, - ['crystal necklace'] = { - clientId = 3008, - sell = 400, - }, - ['garlic necklace'] = { - clientId = 3083, - sell = 50, - }, - ['scarab amulet'] = { - clientId = 3018, - sell = 200, - }, - ['star amulet'] = { - clientId = 3014, - sell = 500, - }, - ['wolf tooth chain'] = { - clientId = 3012, - sell = 100, - }, - ['axe ring'] = { - clientId = 3092, - sell = 100, - }, - ['club ring'] = { - clientId = 3093, - sell = 100, - }, - ['dwarven ring'] = { - clientId = 3097, - sell = 100, - }, - ['energy ring'] = { - clientId = 3051, - sell = 100, - }, - ['life ring'] = { - clientId = 3052, - sell = 50, - }, - ['power ring'] = { - clientId = 3050, - sell = 50, - }, - ['ring of healing'] = { - clientId = 3098, - sell = 100, - }, - ['stealth ring'] = { - clientId = 3049, - sell = 200, - }, - ['sword ring'] = { - clientId = 3091, - sell = 100, - }, - ['time ring'] = { - clientId = 3053, - sell = 100, - }, - ['wedding ring'] = { - clientId = 3004, - sell = 100, - }, - ['ancient coin'] = { - clientId = 24390, - sell = 350, - }, - ['ancient stone'] = { - clientId = 9632, - sell = 200, - }, - ['ankh'] = { - clientId = 3077, - sell = 100, - }, - ['basalt figurine'] = { - clientId = 17857, - sell = 160, - }, - ['battle stone'] = { - clientId = 11447, - sell = 290, - }, - ['black pearl'] = { - clientId = 3027, - sell = 280, - }, - ['blue crystal splinter'] = { - clientId = 16124, - sell = 400, - }, - ['broken iks cuirass'] = { - clientId = 40533, - sell = 640, - }, - ['brown crystal splinter'] = { - clientId = 16123, - sell = 400, - }, - ['cracked alabaster vase'] = { - clientId = 24385, - sell = 180, - }, - ['crystal ball'] = { - clientId = 3076, - sell = 190, - }, - ['crystallized anger'] = { - clientId = 23507, - sell = 400, - }, - ['cyan crystal fragment'] = { - clientId = 16125, - sell = 800, - }, - ['emerald bangle'] = { - clientId = 3010, - sell = 800, - }, - ['explorer brooch'] = { - clientId = 4871, - sell = 50, - }, - ['flintstone'] = { - clientId = 12806, - sell = 800, - }, - ['frozen lightning'] = { - clientId = 23519, - sell = 270, - }, - ['giant pacifier'] = { - clientId = 21199, - sell = 170, - }, - ['glowing rune'] = { - clientId = 28570, - sell = 350, - }, - ['gold nugget'] = { - clientId = 3040, - sell = 850, - }, - ['gold-brocaded cloth'] = { - clientId = 40529, - sell = 175, - }, - ['golden brush'] = { - clientId = 25689, - sell = 250, - }, - ['golden lotus brooch'] = { - clientId = 21974, - sell = 270, - }, - ['golden mug'] = { - clientId = 2903, - sell = 250, - }, - ['green crystal fragment'] = { - clientId = 16127, - sell = 800, - }, - ['green crystal splinter'] = { - clientId = 16122, - sell = 400, - }, - ['life crystal'] = { - clientId = 3061, - sell = 85, - }, - ['mind stone'] = { - clientId = 3062, - sell = 100, - }, - ['onyx chip'] = { - clientId = 22193, - sell = 500, - }, - ['opal'] = { - clientId = 22194, - sell = 500, - }, - ['orb'] = { - clientId = 3060, - sell = 750, - }, - ['pirate coin'] = { - clientId = 35572, - sell = 110, - }, - ['plasma pearls'] = { - clientId = 23506, - sell = 250, - }, - ['prismatic quartz'] = { - clientId = 24962, - sell = 450, - }, - ['rainbow quartz'] = { - clientId = 25737, - sell = 800, - }, - ['red crystal fragment'] = { - clientId = 16126, - sell = 800, - }, - ['scarab coin'] = { - clientId = 3042, - sell = 100, - }, - ['seacrest pearl'] = { - clientId = 21747, - sell = 400, - }, - ['shiny stone'] = { - clientId = 10310, - sell = 500, - }, - ['silver brooch'] = { - clientId = 3017, - sell = 150, - }, - ['small amethyst'] = { - clientId = 3033, - sell = 200, - }, - ['small diamond'] = { - clientId = 3028, - sell = 300, - }, - ['small emerald'] = { - clientId = 3032, - sell = 250, - }, - ['small enchanted amethyst'] = { - clientId = 678, - sell = 200, - }, - ['small enchanted emerald'] = { - clientId = 677, - sell = 250, - }, - ['small enchanted ruby'] = { - clientId = 676, - sell = 250, - }, - ['small enchanted sapphire'] = { - clientId = 675, - sell = 250, - }, - ['small ruby'] = { - clientId = 3030, - sell = 250, - }, - ['small sapphire'] = { - clientId = 3029, - sell = 250, - }, - ['small topaz'] = { - clientId = 9057, - sell = 200, - }, - ['small treasure chest'] = { - clientId = 35571, - sell = 500, - }, - ['spectral gold nugget'] = { - clientId = 32724, - sell = 500, - }, - ['spectral silver nugget'] = { - clientId = 32725, - sell = 250, - }, - ['spectral stone'] = { - clientId = 4840, - sell = 50, - }, - ['talon'] = { - clientId = 3034, - sell = 320, - }, - ['war crystal'] = { - clientId = 9654, - sell = 460, - }, - ['white pearl'] = { - clientId = 3026, - sell = 160, - }, - ['ape fur'] = { - clientId = 5883, - sell = 120, - }, - ['bat wing'] = { - clientId = 5894, - sell = 50, - }, - ['bear paw'] = { - clientId = 5896, - sell = 100, - }, - ['blue piece of cloth'] = { - clientId = 5912, - sell = 200, - }, - ['bonelord eye'] = { - clientId = 5898, - sell = 80, - }, - ['brown piece of cloth'] = { - clientId = 5913, - sell = 100, - }, - ['cluster of solace'] = { - clientId = 20062, - sell = 500, - }, - ['demon dust'] = { - clientId = 5906, - sell = 300, - }, - ['first verse of the hymn'] = { - clientId = 6087, - sell = 100, - }, - ['fish fin'] = { - clientId = 5895, - sell = 150, - }, - ['fourth verse of the hymn'] = { - clientId = 6090, - sell = 800, - }, - ['green dragon leather'] = { - clientId = 5877, - sell = 100, - }, - ['green dragon scale'] = { - clientId = 5920, - sell = 100, - }, - ['green piece of cloth'] = { - clientId = 5910, - sell = 200, - }, - ['hardened bone'] = { - clientId = 5925, - sell = 70, - }, - ['holy orchid'] = { - clientId = 5922, - sell = 90, - }, - ['iron ore'] = { - clientId = 5880, - sell = 500, - }, - ['lizard leather'] = { - clientId = 5876, - sell = 150, - }, - ['lizard scale'] = { - clientId = 5881, - sell = 120, - }, - ['mammoth tusk'] = { - clientId = 10321, - sell = 100, - }, - ['minotaur leather'] = { - clientId = 5878, - sell = 80, - }, - ['perfect behemoth fang'] = { - clientId = 5893, - sell = 250, - }, - ['piece of hell steel'] = { - clientId = 5888, - sell = 500, - }, - ['pirate voodoo doll'] = { - clientId = 5810, - sell = 500, - }, - ['red dragon leather'] = { - clientId = 5948, - sell = 200, - }, - ['red dragon scale'] = { - clientId = 5882, - sell = 200, - }, - ['red piece of cloth'] = { - clientId = 5911, - sell = 300, - }, - ['second verse of the hymn'] = { - clientId = 6088, - sell = 250, - }, - ['spider silk'] = { - clientId = 5879, - sell = 100, - }, - ['third verse of the hymn'] = { - clientId = 6089, - sell = 400, - }, - ['turtle shell'] = { - clientId = 5899, - sell = 90, - }, - ['vampire dust'] = { - clientId = 5905, - sell = 100, - }, - ['voodoo doll'] = { - clientId = 3002, - sell = 400, - }, - ['white piece of cloth'] = { - clientId = 5909, - sell = 100, - }, - ['wolf paw'] = { - clientId = 5897, - sell = 70, - }, - ['yellow piece of cloth'] = { - clientId = 5914, - sell = 150, - }, - ['blood herb'] = { - clientId = 3734, - sell = 500, - }, - ['blue rose'] = { - clientId = 3659, - sell = 250, - }, - ['crystal pedestal'] = { - clientId = 9063, - sell = 500, - }, - ['cyclops trophy'] = { - clientId = 7398, - sell = 500, - }, - ['doll'] = { - clientId = 2991, - sell = 200, - }, - ['minotaur trophy'] = { - clientId = 7401, - sell = 500, - }, - ['berserk potion'] = { - clientId = 7439, - sell = 500, - }, - ['bullseye potion'] = { - clientId = 7443, - sell = 500, - }, - ['mastermind potion'] = { - clientId = 7440, - sell = 500, - }, - ['dark mushroom'] = { - clientId = 3728, - sell = 100, - }, - ['ectoplasmic sushi'] = { - clientId = 11681, - sell = 300, - }, - ['fire mushroom'] = { - clientId = 3731, - sell = 200, - }, - ['green mushroom'] = { - clientId = 3732, - sell = 100, - }, - ['orange mushroom'] = { - clientId = 3726, - sell = 150, - }, - }, -} - ItemsDatabase.rarityColors = { - yellow = TextColors.yellow, - purple = TextColors.purple, - blue = TextColors.blue, - green = TextColors.green, - grey = TextColors.white, + ["yellow"] = TextColors.yellow, + ["purple"] = TextColors.purple, + ["blue"] = TextColors.blue, + ["green"] = TextColors.green, + ["grey"] = TextColors.grey, } ---[[ python -import re - -file_path = r'D:/kzn/github/canary2/data/scripts/lib/shops.lua' - -with open(file_path, 'r') as file: - lua_content = file.read() - -pattern = re.compile(r'\{ itemName = "([^"]+)", clientId = (\d+), sell = (\d+) \}') - -matches = pattern.findall(lua_content) - -items_database = { - 'yellow': {}, - 'purple': {}, - 'blue': {}, - 'green': {}, - 'grey': {} -} - -def categorize_sell(value): - if value >= 1000000: - return 'yellow' - elif value >= 100000: - return 'purple' - elif value >= 10000: - return 'blue' - elif value >= 1000: - return 'green' - elif value >= 50: - return 'grey' - return None - -for match in matches: - item_name, client_id, sell = match - client_id = int(client_id) - sell = int(sell) - category = categorize_sell(sell) - if category: - escaped_item_name = item_name.replace("'", "\\'") - items_database[category][escaped_item_name] = {'clientId': client_id, 'sell': sell} - -lua_output = ["ItemsDatabase.lib = {"] -for category, items in items_database.items(): - lua_output.append(f" ['{category}'] = {{") - for item_name, details in items.items(): - lua_output.append(f" ['{item_name}'] = {{") - lua_output.append(f" clientId = {details['clientId']},") - lua_output.append(f" sell = {details['sell']},") - lua_output.append(f" }},") - lua_output.append(" },") -lua_output.append("}") - -lua_output_str = "\n".join(lua_output) -print(lua_output_str) ]] - --- LuaFormatter on - -function ItemsDatabase.getRarityByClientId(clientID) - for profile, data in pairs(ItemsDatabase.lib) do - for k, itemDatabase in pairs(data) do - if itemDatabase.clientId == tonumber(clientID) then - return profile - end - end +local function getColorForValue(value) + if value >= 1000000 then + return "yellow" + elseif value >= 100000 then + return "purple" + elseif value >= 10000 then + return "blue" + elseif value >= 1000 then + return "green" + elseif value >= 50 then + return "grey" + else + return "white" end - return nil end function ItemsDatabase.setRarityItem(widget, item, style) @@ -4952,18 +34,13 @@ function ItemsDatabase.setRarityItem(widget, item, style) end if item then - local itemId = item:getId() - - local itemRarity = ItemsDatabase.getRarityByClientId(itemId) + local price = type(item) == "number" and item or (item and item:getMeanPrice()) or 0 + local itemRarity = getColorForValue(price) local imagePath = '/images/ui/item' - if itemRarity and itemRarity:lower() ~= "normal" then - imagePath = '/images/ui/rarity_' .. itemRarity:lower() + if itemRarity and itemRarity ~= "white" then -- necessary in setColorLootMessage + imagePath = '/images/ui/rarity_' .. itemRarity end widget:setImageSource(imagePath) - - else - --[[ widget:getParent():setItem(nil) - widget:getParent():setImageSource('/images/ui/item') ]] end if style then @@ -4976,31 +53,17 @@ function ItemsDatabase.getColorForRarity(rarity) end function ItemsDatabase.setColorLootMessage(text) - -- temp. TODO assets search local function coloringLootName(match) local id, itemName = match:match("(%d+)|(.+)") - - local itemInfo = ItemsDatabase.getRarityByClientId(tonumber(id)) + local itemInfo = g_things.getThingType(tonumber(id), ThingCategoryItem):getMeanPrice() if itemInfo then - local color = ItemsDatabase.getColorForRarity(itemInfo) + local color = ItemsDatabase.getColorForRarity(getColorForValue(itemInfo)) return "{" .. itemName .. ", " .. color .. "}" else return itemName end - - end - return (text:gsub("{(.-)}", coloringLootName)) -end - -function ItemsDatabase.getSellValueAndColor(clientID) - for profile, data in pairs(ItemsDatabase.lib) do - for k, itemDatabase in pairs(data) do - if itemDatabase.clientId == tonumber(clientID) then - return itemDatabase.sell, profile - end - end end - return 0, "" + return text:gsub("{(.-)}", coloringLootName) end function ItemsDatabase.setTier(widget, item) diff --git a/src/client/luafunctions.cpp b/src/client/luafunctions.cpp index dc484ee700..abe843ad15 100644 --- a/src/client/luafunctions.cpp +++ b/src/client/luafunctions.cpp @@ -459,6 +459,8 @@ void Client::registerLuaFunctions() g_lua.bindClassMemberFunction("getPosition", &Thing::getPosition); g_lua.bindClassMemberFunction("getStackPos", &Thing::getStackPos); g_lua.bindClassMemberFunction("getMarketData", &Thing::getMarketData); + g_lua.bindClassMemberFunction("getNpcSaleData", &Thing::getNpcSaleData); + g_lua.bindClassMemberFunction("getMeanPrice", &Thing::getMeanPrice); g_lua.bindClassMemberFunction("getStackPriority", &Thing::getStackPriority); g_lua.bindClassMemberFunction("getParentContainer", &Thing::getParentContainer); g_lua.bindClassMemberFunction("isItem", &Thing::isItem); @@ -677,6 +679,8 @@ void Client::registerLuaFunctions() g_lua.bindClassMemberFunction("isCloth", &ThingType::isCloth); g_lua.bindClassMemberFunction("isMarketable", &ThingType::isMarketable); g_lua.bindClassMemberFunction("getMarketData", &ThingType::getMarketData); + g_lua.bindClassMemberFunction("getNpcSaleData", &ThingType::getNpcSaleData); + g_lua.bindClassMemberFunction("getMeanPrice", &ThingType::getMeanPrice); g_lua.bindClassMemberFunction("isUsable", &ThingType::isUsable); g_lua.bindClassMemberFunction("isWrapable", &ThingType::isWrapable); g_lua.bindClassMemberFunction("isUnwrapable", &ThingType::isUnwrapable); @@ -715,6 +719,8 @@ void Client::registerLuaFunctions() g_lua.bindClassMemberFunction("isMarketable", &Item::isMarketable); g_lua.bindClassMemberFunction("isFluidContainer", &Item::isFluidContainer); g_lua.bindClassMemberFunction("getMarketData", &Item::getMarketData); + g_lua.bindClassMemberFunction("getNpcSaleData", &Item::getNpcSaleData); + g_lua.bindClassMemberFunction("getMeanPrice", &Item::getMeanPrice); g_lua.bindClassMemberFunction("getClothSlot", &Item::getClothSlot); g_lua.bindClassMemberFunction("hasWearOut", &ThingType::hasWearOut); g_lua.bindClassMemberFunction("hasClockExpire", &ThingType::hasClockExpire); diff --git a/src/client/luavaluecasts_client.cpp b/src/client/luavaluecasts_client.cpp index 8dcb3c29e7..dda6fb325a 100644 --- a/src/client/luavaluecasts_client.cpp +++ b/src/client/luavaluecasts_client.cpp @@ -119,6 +119,55 @@ bool luavalue_cast(int index, Position& pos) return true; } +int push_luavalue(const std::vector& data) { + g_lua.createTable(data.size(), 0); + for (size_t i = 0; i < data.size(); ++i) { + g_lua.createTable(0, 6); + g_lua.pushString(data[i].name); + g_lua.setField("name"); + g_lua.pushString(data[i].location); + g_lua.setField("location"); + g_lua.pushInteger(data[i].salePrice); + g_lua.setField("salePrice"); + g_lua.pushInteger(data[i].buyPrice); + g_lua.setField("buyPrice"); + g_lua.pushInteger(data[i].currencyObjectTypeId); + g_lua.setField("currencyObjectTypeId"); + g_lua.pushString(data[i].currencyQuestFlagDisplayName); + g_lua.setField("currencyQuestFlagDisplayName"); + g_lua.rawSeti(i + 1); + } + return 1; +} + +bool luavalue_cast(int index, std::vector& data) +{ + if (!g_lua.isTable(index)) + return false; + + g_lua.pushNil(); + while (g_lua.next(index < 0 ? index - 1 : index)) { + NPCData npcData; + if (g_lua.isTable(-1)) { + g_lua.getField("name", -1); + npcData.name = g_lua.popString(); + g_lua.getField("location", -1); + npcData.location = g_lua.popString(); + g_lua.getField("salePrice", -1); + npcData.salePrice = g_lua.popInteger(); + g_lua.getField("buyPrice", -1); + npcData.buyPrice = g_lua.popInteger(); + g_lua.getField("currencyObjectTypeId", -1); + npcData.currencyObjectTypeId = g_lua.popInteger(); + g_lua.getField("currencyQuestFlagDisplayName", -1); + npcData.currencyQuestFlagDisplayName = g_lua.popString(); + data.push_back(npcData); + } + g_lua.pop(); + } + return true; +} + int push_luavalue(const MarketData& data) { g_lua.createTable(0, 6); diff --git a/src/client/luavaluecasts_client.h b/src/client/luavaluecasts_client.h index 993069e57f..31ef9f188e 100644 --- a/src/client/luavaluecasts_client.h +++ b/src/client/luavaluecasts_client.h @@ -37,6 +37,10 @@ bool luavalue_cast(int index, Position& pos); int push_luavalue(const MarketData& data); bool luavalue_cast(int index, MarketData& data); +// NPC +int push_luavalue(const std::vector& data); +bool luavalue_cast(int index, std::vector& data); + // light int push_luavalue(const Light& light); bool luavalue_cast(int index, Light& light); diff --git a/src/client/thing.h b/src/client/thing.h index 2c581c73fb..e25723c558 100644 --- a/src/client/thing.h +++ b/src/client/thing.h @@ -78,11 +78,13 @@ class Thing : public AttachableObject virtual bool hasLight() const { return getThingType()->hasLight(); } const MarketData& getMarketData() { return getThingType()->getMarketData(); } + const std::vector& getNpcSaleData() { return getThingType()->getNpcSaleData(); } + int getMeanPrice() { return getThingType()->getMeanPrice(); } const Size& getSize() const { return getThingType()->getSize(); } int getWidth() const { return getThingType()->getWidth(); } int getHeight() const { return getThingType()->getHeight(); } - int getRealSize()const { return getThingType()->getRealSize(); } + int getRealSize() const { return getThingType()->getRealSize(); } int getLayers() const { return getThingType()->getLayers(); } int getNumPatternX()const { return getThingType()->getNumPatternX(); } int getNumPatternY()const { return getThingType()->getNumPatternY(); } diff --git a/src/client/thingtype.cpp b/src/client/thingtype.cpp index 64746743ef..c0759b5c13 100644 --- a/src/client/thingtype.cpp +++ b/src/client/thingtype.cpp @@ -226,6 +226,20 @@ void ThingType::unserializeAppearance(uint16_t clientId, ThingCategory category, } // npcsaledata + if (flags.npcsaledata_size() > 0) { + for (int i = 0; i < flags.npcsaledata_size(); ++i) { + NPCData data; + data.name = flags.npcsaledata(i).name(); + data.location = flags.npcsaledata(i).location(); + data.salePrice = flags.npcsaledata(i).sale_price(); + data.buyPrice = flags.npcsaledata(i).buy_price(); + data.currencyObjectTypeId = flags.npcsaledata(i).currency_object_type_id(); + data.currencyQuestFlagDisplayName = flags.npcsaledata(i).currency_quest_flag_display_name(); + m_npcData.push_back(data); + } + m_flags |= ThingFlagAttrNPC; + } + // charged to expire // corpse // player_corpse diff --git a/src/client/thingtype.h b/src/client/thingtype.h index 78c4d4d240..f5b5242451 100644 --- a/src/client/thingtype.h +++ b/src/client/thingtype.h @@ -162,7 +162,8 @@ enum ThingFlagAttr :uint64_t ThingFlagAttrPodium = static_cast(1) << 42, ThingFlagAttrTopEffect = static_cast(1) << 43, ThingFlagAttrDefaultAction = static_cast(1) << 44, - ThingFlagAttrDecoKit = static_cast(1) << 45 + ThingFlagAttrDecoKit = static_cast(1) << 45, + ThingFlagAttrNPC = static_cast(1) << 46 }; enum STACK_PRIORITY : uint8_t @@ -272,6 +273,16 @@ struct MarketData uint16_t tradeAs; }; +struct NPCData +{ + std::string name; + std::string location; + uint32_t salePrice; + uint32_t buyPrice; + uint32_t currencyObjectTypeId; + std::string currencyQuestFlagDisplayName; +}; + struct MarketOffer { uint32_t timestamp = 0; @@ -329,6 +340,34 @@ class ThingType : public LuaObject const Point& getDisplacement() { return m_displacement; } const Light& getLight() { return m_light; } const MarketData& getMarketData() { return m_market; } + const std::vector& getNpcSaleData() { return m_npcData; } + int getMeanPrice() { + static constexpr std::array, 3> forcedPrices = { { + {3043, 10000}, + {3031, 50}, + {3035, 50 } + + } }; + + const uint32_t itemId = getId(); + + const auto it = std::find_if(forcedPrices.begin(), forcedPrices.end(), + [itemId](const auto& pair) { return pair.first == itemId; }); + + if (it != forcedPrices.end()) { + return it->second; + } + + const auto npcCount = m_npcData.size(); + if (npcCount == 0) { + return 0; + } + + const int totalBuyPrice = std::accumulate(m_npcData.begin(), m_npcData.end(), 0, + [](int sum, const auto& npc) { return sum + npc.buyPrice; }); + + return totalBuyPrice / static_cast(npcCount); + } int getDisplacementX() { return getDisplacement().x; } int getDisplacementY() { return getDisplacement().y; } @@ -480,6 +519,8 @@ class ThingType : public LuaObject uint64_t m_flags{ 0 }; MarketData m_market; + std::vector m_npcData; + Light m_light; float m_opacity{ 1.f }; From f563cdab5b68b5f0d706c83e3a282616161101c7 Mon Sep 17 00:00:00 2001 From: kokekanon <114332266+kokekanon@users.noreply.github.com> Date: Tue, 29 Oct 2024 17:17:10 -0300 Subject: [PATCH 8/8] fix: protobuf ITEM_CATEGORY (#950) --- modules/game_cyclopedia/tab/items/items.lua | 5 ----- src/protobuf/appearances.proto | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/game_cyclopedia/tab/items/items.lua b/modules/game_cyclopedia/tab/items/items.lua index 5d4764acbf..66903c842a 100644 --- a/modules/game_cyclopedia/tab/items/items.lua +++ b/modules/game_cyclopedia/tab/items/items.lua @@ -175,11 +175,6 @@ function Cyclopedia.applyFilters() end function Cyclopedia.internalCreateItem(data) - -- temp fix 13.40 - if data:getId() > 47381 and data:getId() < 80909 then - return - end - local player = g_game.getLocalPlayer() local vocation = player:getVocation() local level = player:getLevel() diff --git a/src/protobuf/appearances.proto b/src/protobuf/appearances.proto index d9e1bbd9e5..80499a1dc4 100644 --- a/src/protobuf/appearances.proto +++ b/src/protobuf/appearances.proto @@ -41,6 +41,12 @@ enum ITEM_CATEGORY { ITEM_CATEGORY_PREMIUM_SCROLLS = 22; ITEM_CATEGORY_TIBIA_COINS = 23; ITEM_CATEGORY_CREATURE_PRODUCTS = 24; + ITEM_CATEGORY_QUIVER = 25; + ITEM_CATEGORY_TWOHANDWEAPON = 26; + ITEM_CATEGORY_HELMETS = 27; + ITEM_CATEGORY_BACKPACK = 28; + ITEM_CATEGORY_ONEHANDWEAPON = 29; + ITEM_CATEGORY_ARROW = 30; } enum PLAYER_PROFESSION {