Rebrand to marohook: rename project, injector and client classes, DLL to marohook.dll, configs to %ProgramFiles%\marohook, auto-save on unload, add config rename/delete

This commit is contained in:
2026-08-05 19:31:57 +02:00
parent 0f3282112a
commit 3b23e53514
783 changed files with 1911 additions and 1845 deletions
Binary file not shown.
+484
View File
@@ -0,0 +1,484 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>17.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{0011461c-0e5f-401c-ac58-23719d1ef845}</ProjectGuid>
<RootNamespace>MaroHook</RootNamespace>
<TargetName>marohook</TargetName>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<IncludePath>$(MSBuildProjectDirectory)\MaroHook\;$(MSBuildProjectDirectory)\MaroHook\Common\Include\;$(IncludePath)</IncludePath>
<GenerateManifest>false</GenerateManifest>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;MAROHOOK_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;MAROHOOK_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;MAROHOOK_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;MAROHOOK_EXPORTS;_WINDOWS;_USRDLL;RELEASE_BUILD;STB_IMAGE_STATIC;STB_IMAGE_IMPLEMENTATION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<LanguageStandard>stdcpplatest</LanguageStandard>
<LanguageStandard_C>stdc17</LanguageStandard_C>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="MaroHook\MaroHookClient\CMaroHookClient.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\CMaroHookGUI.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\Features\CInventoryChanger\CInventoryChanger.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\Features\CInventoryChanger\CInventoryItemsManager.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\Features\CVisual\CVisual.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\Features\CChams\CChams.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\Features\CMisc\CMisc.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\Fonts\CFont.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\Fonts\CFontManager.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\GUI\CMaroHookMenu.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\Render\CRender.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\Render\CRenderStackSystem.cpp" />
<ClCompile Include="MaroHook\MaroHookClient\Settings\CSettingsJson.cpp" />
<ClCompile Include="MaroHook\Common\CrashLog.cpp" />
<ClCompile Include="MaroHook\Common\DevLog.cpp" />
<ClCompile Include="MaroHook\Common\Helpers\ModuleLoaderHelper.cpp" />
<ClCompile Include="MaroHook\Common\Helpers\StringHelper.cpp" />
<ClCompile Include="MaroHook\Common\Include\ImGui\imgui.cpp" />
<ClCompile Include="MaroHook\Common\Include\ImGui\imgui_draw.cpp" />
<ClCompile Include="MaroHook\Common\Include\ImGui\imgui_impl_dx11.cpp" />
<ClCompile Include="MaroHook\Common\Include\ImGui\imgui_impl_win32.cpp" />
<ClCompile Include="MaroHook\Common\Include\ImGui\imgui_tables.cpp" />
<ClCompile Include="MaroHook\Common\Include\ImGui\imgui_widgets.cpp" />
<ClCompile Include="MaroHook\Common\Include\ImGui\Misc\freetype\imgui_freetype.cpp" />
<ClCompile Include="MaroHook\Common\MemoryEngine.cpp" />
<ClCompile Include="MaroHook\CS2\CBasePattern.cpp" />
<ClCompile Include="MaroHook\CS2\CHook_Loader.cpp" />
<ClCompile Include="MaroHook\CS2\CSDK_Loader.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_AntiTamper.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_CreateMove.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_CreateSwapChain.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_DrawGlow.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_OnDrawObject.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_EquipItemInLoadout.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_FireEventClientSide.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_FrameStageNotify.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_GetMatricesForView.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_IsLoadoutAllowed.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_IsRelativeMouseMode.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_MouseInputEnabled.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_OnAddEntity.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_OnClientOutput.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_OnRemoveEntity.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_ParseMessage.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_Present.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_ResizeBuffers.cpp" />
<ClCompile Include="MaroHook\CS2\Hook\Hook_SOCacheSubscribed.cpp" />
<ClCompile Include="MaroHook\CS2\Protobuf\base_gcmessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\clientmessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\connectionless_netmessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\cstrike15_gcmessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\cstrike15_usermessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\cs_gameevents.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\cs_prediction_events.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\cs_usercmd.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\c_peer2peer_netmessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\demo.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\econ_gcmessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\engine_gcmessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\enums_clientserver.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\fatdemo.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\gameevents.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\gcsdk_gcmessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\gcsystemmsgs.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\netmessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\networkbasetypes.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\networksystem_protomessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\network_connection.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\prediction_events.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\source2_steam_stats.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steamdatagram_messages_auth.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steamdatagram_messages_sdr.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steammessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steammessages_cloud.steamworkssdk.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steammessages_gamenetworkingui.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steammessages_helprequest.steamworkssdk.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steammessages_oauth.steamworkssdk.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steammessages_player.steamworkssdk.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steammessages_publishedfile.steamworkssdk.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steammessages_unified_base.steamworkssdk.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steamnetworkingsockets_messages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steamnetworkingsockets_messages_certs.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\steamnetworkingsockets_messages_udp.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\te.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\uifontfile_format.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\usercmd.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\usermessages.pb.cc" />
<ClCompile Include="MaroHook\CS2\Protobuf\valveextensions.pb.cc" />
<ClCompile Include="MaroHook\CS2\SDK\CFunctionList.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\CSchemaOffset.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Cstrike15\CCSInventoryManager.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Cstrike15\CCSPlayerInventory.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Econ\CEconItem.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Econ\CEconItemDefinition.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Econ\CEconItemSchema.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Econ\CEconItemSystem.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\GCSDK\CGCClientSharedObjectCache.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\GCSDK\CGCClientSharedObjectTypeCache.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Interface\IGameEvent.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Interface\Interface.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Math\Math.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Math\Matrix.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Math\QAngle.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Math\Vector3.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Math\Vector4.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\SDK.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\SDL3\SDL3_Functions.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\TIER0\TIER0_Functions.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Types\CEntityData.cpp" />
<ClCompile Include="MaroHook\CS2\SDK\Types\CHandle.cpp" />
<ClCompile Include="MaroHook\DllLauncher.cpp" />
<ClCompile Include="MaroHook\DllMain.cpp" />
<ClCompile Include="MaroHook\GameClient\CEntityCache\CEntityCache.cpp" />
<ClCompile Include="MaroHook\GameClient\CL_Bones.cpp" />
<ClCompile Include="MaroHook\GameClient\CL_Bypass.cpp" />
<ClCompile Include="MaroHook\GameClient\CL_ItemDefinition.cpp" />
<ClCompile Include="MaroHook\GameClient\CL_Players.cpp" />
<ClCompile Include="MaroHook\GameClient\CL_Trace.cpp" />
<ClCompile Include="MaroHook\GameClient\CL_VisibleCheck.cpp" />
<ClCompile Include="MaroHook\GameClient\CL_Weapons.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="MaroHook\MaroHookClient\CMaroHookClient.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\CMaroHookGUI.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\Features\CInventoryChanger\CInventoryChanger.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\Features\CInventoryChanger\CInventoryItemsManager.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\Features\CVisual\CVisual.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\Features\CMisc\CMisc.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\Fonts\CFont.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\Fonts\CFontManager.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\GUI\CMaroHookMenu.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\Render\CRender.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\Render\CRenderStackSystem.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\Settings\CSettingsJson.hpp" />
<ClInclude Include="MaroHook\MaroHookClient\Settings\Settings.hpp" />
<ClInclude Include="MaroHook\Common\Base64.h" />
<ClInclude Include="MaroHook\Common\Common.hpp" />
<ClInclude Include="MaroHook\Common\CrashLog.hpp" />
<ClInclude Include="MaroHook\Common\DevLog.hpp" />
<ClInclude Include="MaroHook\Common\Helpers\ModuleLoaderHelper.hpp" />
<ClInclude Include="MaroHook\Common\Helpers\StringHelper.hpp" />
<ClInclude Include="MaroHook\Common\Include\Config.hpp" />
<ClInclude Include="MaroHook\Common\Include\Fnv1a\Hash_Fnv1a_Constexpr.hpp" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1ColorRGBA.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1DWriteRenderTarget.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1Factory.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1FontWrapper.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1GlyphAtlas.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1GlyphProvider.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1GlyphRenderStates.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1GlyphSheet.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1GlyphVertexDrawer.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1Object.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1StateSaver.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1TextGeometry.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\CFW1TextRenderer.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\FW1CompileSettings.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\FW1FontWrapper.h" />
<ClInclude Include="MaroHook\Common\Include\FW1FontWrapper\FW1Precompiled.h" />
<ClInclude Include="MaroHook\Common\Include\ImGui\imconfig.h" />
<ClInclude Include="MaroHook\Common\Include\ImGui\imgui.h" />
<ClInclude Include="MaroHook\Common\Include\ImGui\imgui_impl_dx11.h" />
<ClInclude Include="MaroHook\Common\Include\ImGui\imgui_impl_win32.h" />
<ClInclude Include="MaroHook\Common\Include\ImGui\imgui_internal.h" />
<ClInclude Include="MaroHook\Common\Include\ImGui\imstb_rectpack.h" />
<ClInclude Include="MaroHook\Common\Include\ImGui\imstb_textedit.h" />
<ClInclude Include="MaroHook\Common\Include\ImGui\imstb_truetype.h" />
<ClInclude Include="MaroHook\Common\Include\ImGui\Misc\freetype\imgui_freetype.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\allocators.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\cursorstreamwrapper.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\document.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\encodedstream.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\encodings.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\error\en.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\error\error.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\filereadstream.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\filewritestream.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\fwd.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\biginteger.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\clzll.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\diyfp.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\dtoa.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\ieee754.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\itoa.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\meta.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\pow10.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\regex.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\stack.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\strfunc.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\strtod.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\internal\swap.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\istreamwrapper.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\memorybuffer.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\memorystream.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\msinttypes\inttypes.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\msinttypes\stdint.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\ostreamwrapper.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\pointer.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\prettywriter.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\rapidjson.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\reader.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\schema.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\stream.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\stringbuffer.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\uri.h" />
<ClInclude Include="MaroHook\Common\Include\rapidjson\writer.h" />
<ClInclude Include="MaroHook\Common\Include\stb\stb_image.h" />
<ClInclude Include="MaroHook\Common\Include\VMProtect\VMProtectSDK.h" />
<ClInclude Include="MaroHook\Common\Include\XorStr\XorStr.hpp" />
<ClInclude Include="MaroHook\Common\MemoryEngine.hpp" />
<ClInclude Include="MaroHook\CS2\CBasePattern.hpp" />
<ClInclude Include="MaroHook\CS2\CHook_Loader.hpp" />
<ClInclude Include="MaroHook\CS2\CSDK_Loader.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_AntiTamper.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_CreateMove.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_CreateSwapChain.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_DrawGlow.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_EquipItemInLoadout.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_FireEventClientSide.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_FrameStageNotify.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_GetMatricesForView.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_IsLoadoutAllowed.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_IsRelativeMouseMode.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_MouseInputEnabled.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_OnAddEntity.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_OnClientOutput.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_OnRemoveEntity.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_ParseMessage.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_Present.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_ResizeBuffers.hpp" />
<ClInclude Include="MaroHook\CS2\Hook\Hook_SOCacheSubscribed.hpp" />
<ClInclude Include="MaroHook\CS2\Protobuf\base_gcmessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\clientmessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\connectionless_netmessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\cstrike15_gcmessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\cstrike15_usermessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\cs_gameevents.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\cs_prediction_events.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\cs_usercmd.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\c_peer2peer_netmessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\demo.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\econ_gcmessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\engine_gcmessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\enums_clientserver.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\fatdemo.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\gameevents.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\gcsdk_gcmessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\gcsystemmsgs.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\netmessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\networkbasetypes.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\networksystem_protomessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\network_connection.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\prediction_events.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\source2_steam_stats.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steamdatagram_messages_auth.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steamdatagram_messages_sdr.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steammessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steammessages_cloud.steamworkssdk.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steammessages_gamenetworkingui.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steammessages_helprequest.steamworkssdk.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steammessages_oauth.steamworkssdk.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steammessages_player.steamworkssdk.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steammessages_publishedfile.steamworkssdk.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steammessages_unified_base.steamworkssdk.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steamnetworkingsockets_messages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steamnetworkingsockets_messages_certs.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\steamnetworkingsockets_messages_udp.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\te.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\uifontfile_format.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\usercmd.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\usermessages.pb.h" />
<ClInclude Include="MaroHook\CS2\Protobuf\valveextensions.pb.h" />
<ClInclude Include="MaroHook\CS2\SDK\AppFramework\IAppSystem.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\CFunctionList.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\CSchemaOffset.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Cstrike15\CCSInventoryManager.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Cstrike15\CCSPlayerInventory.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Econ\CEconItem.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Econ\CEconItemDefinition.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Econ\CEconItemSchema.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Econ\CEconItemSystem.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\FunctionListSDK.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\GCSDK\CGCClientSharedObjectCache.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\GCSDK\CGCClientSharedObjectTypeCache.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\GCSDK\GCSDKTypes\EconItemConstants.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\GCSDK\GCSDKTypes\ESOCacheEvent.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\GCSDK\GCSDKTypes\SOID_t.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\CGameEntitySystem.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\CInputSystem.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\CLocalize.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\CMaterialSystem2.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\CShemaSystemSDK.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\CSoundOpSystem.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\CSource2Client.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\IBaseFileSystem.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\IEngineCvar.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\IEngineToClient.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\IGameEvent.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Interface\Interface.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Math\Math.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Math\Matrix.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Math\QAngle.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Math\Rect_t.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Math\Vector2.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Math\Vector3.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Math\Vector4.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Network\CNetworkMessages.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\SDK.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\SDL3\SDL3_Functions.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\TIER0\TIER0_Functions.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CBaseTypes.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CEntityData.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CHandle.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\Color.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CStrongHandle.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CUtlFixedMemory.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CUtlMap.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CUtlMemory.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CUtlString.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CUtlStringToken.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CUtlSymbol.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CUtlSymbolLarge.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\CUtlVector.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Types\TIer0Memory.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Update\CCSGOInput.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Update\CGlobalVarsBase.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Update\CUserCmd.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Update\GameTrace.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Update\Offsets.hpp" />
<ClInclude Include="MaroHook\CS2\SDK\Update\VMT_Index.hpp" />
<ClInclude Include="MaroHook\DllLauncher.hpp" />
<ClInclude Include="MaroHook\DllMain.hpp" />
<ClInclude Include="MaroHook\GameClient\CEntityCache\CEntityCache.hpp" />
<ClInclude Include="MaroHook\GameClient\CL_Bones.hpp" />
<ClInclude Include="MaroHook\GameClient\CL_Bypass.hpp" />
<ClInclude Include="MaroHook\GameClient\CL_ItemDefinition.hpp" />
<ClInclude Include="MaroHook\GameClient\CL_Players.hpp" />
<ClInclude Include="MaroHook\GameClient\CL_Trace.hpp" />
<ClInclude Include="MaroHook\GameClient\CL_VisibleCheck.hpp" />
<ClInclude Include="MaroHook\GameClient\CL_Weapons.hpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
File diff suppressed because it is too large Load Diff
+58
View File
@@ -0,0 +1,58 @@
#include "CBasePattern.hpp"
#include <Common/MemoryEngine.hpp>
CBasePattern::CBasePattern( const char* szPatternName , const char* szPattern , const char* szDll , uint32_t Offset , eBasePatternSearchType Type )
{
PatternName = szPatternName;
Pattern = szPattern;
Dll = szDll;
dwOffset = Offset;
m_Type = Type;
}
auto CBasePattern::Search( bool SkipError ) -> bool
{
if ( m_Type != eBasePatternSearchType::SEARCH_TYPE_PROC )
{
pFunction = FindPattern( Dll , Pattern , dwOffset );
if ( !pFunction )
{
if ( !SkipError )
DEV_LOG( "[error] CBasePattern: %s\n" , PatternName );
return false;
}
}
if ( m_Type == eBasePatternSearchType::SEARCH_TYPE_PTR )
pFunction = reinterpret_cast<PVOID>( *reinterpret_cast<intptr_t*>( pFunction ) );
else if ( m_Type == eBasePatternSearchType::SEARCH_TYPE_CALL )
pFunction = GetCallAddress( reinterpret_cast<intptr_t>( pFunction ) );
else if ( m_Type == eBasePatternSearchType::SEARCH_TYPE_PTR2 )
pFunction = GetPtrAddress<PVOID>( (intptr_t)pFunction );
else if ( m_Type == eBasePatternSearchType::SEARCH_TYPE_PROC )
pFunction = GetProcAddress( GetModuleHandleA( Dll ) , Pattern );
#if LOG_SDK_PATTERN == 1
DEV_LOG( "[+] CBasePattern: %s -> %p\n" , PatternName , pFunction );
#endif
return true;
}
auto CBasePattern::GetPatternName() -> const char*
{
return PatternName;
}
auto CBasePattern::GetDllName() -> const char*
{
return Dll;
}
auto CBasePattern::GetFunction() -> PVOID
{
return pFunction;
}
+52
View File
@@ -0,0 +1,52 @@
#pragma once
#include <Common/Common.hpp>
enum eBasePatternSearchType : int32_t
{
SEARCH_TYPE_NONE ,
SEARCH_TYPE_PTR ,
SEARCH_TYPE_CALL ,
SEARCH_TYPE_PTR2 ,
SEARCH_TYPE_PROC
};
class IBasePattern
{
public:
virtual bool Search( bool SkipError ) = 0;
virtual PVOID GetFunction() = 0;
virtual const char* GetPatternName() = 0;
virtual const char* GetDllName() = 0;
};
class CBasePattern final : public IBasePattern
{
public:
CBasePattern( const char* szPatternName , const char* szPattern , const char* szDll , uint32_t Offset = 0 , eBasePatternSearchType Type = eBasePatternSearchType::SEARCH_TYPE_NONE );
public:
virtual bool Search( bool SkipError = false ) override;
virtual PVOID GetFunction() override;
virtual const char* GetPatternName() override;
virtual const char* GetDllName() override;
private:
// !!! std::string_view crash on vmprotect !!!
const char* PatternName = nullptr;
const char* Pattern = nullptr;
const char* Dll = nullptr;
private:
PVOID pFunction = nullptr;
uint32_t dwOffset = 0;
eBasePatternSearchType m_Type = eBasePatternSearchType::SEARCH_TYPE_NONE;
};
#define DECLARATE_CS2_FUNCTION(Ret,Name,Decl,InterfaceSearch,DeclFn,ParamCall)\
Ret Name Decl\
{\
using Fn = Ret ( __fastcall* ) DeclFn;\
Fn Original = reinterpret_cast<Fn>( ##InterfaceSearch##_Search::##Name##Fn.GetFunction() );\
return Original##ParamCall##;\
}
+131
View File
@@ -0,0 +1,131 @@
#include "CHook_Loader.hpp"
#include <Common/MemoryEngine.hpp>
#include <MinHook/MinHook.h>
#include <CS2/SDK/SDK.hpp>
#include <CS2/Hook/Hook_SOCacheSubscribed.hpp>
#include <CS2/Hook/Hook_Present.hpp>
#include <CS2/Hook/Hook_ResizeBuffers.hpp>
#include <CS2/Hook/Hook_CreateSwapChain.hpp>
#include <CS2/Hook/Hook_MouseInputEnabled.hpp>
#include <CS2/Hook/Hook_FireEventClientSide.hpp>
#include <CS2/Hook/Hook_OnAddEntity.hpp>
#include <CS2/Hook/Hook_OnRemoveEntity.hpp>
#include <CS2/Hook/Hook_FrameStageNotify.hpp>
#include <CS2/Hook/Hook_GetMatricesForView.hpp>
#include <CS2/Hook/Hook_CreateMove.hpp>
#include <CS2/Hook/Hook_OnClientOutput.hpp>
#include <CS2/Hook/Hook_ParseMessage.hpp>
#include <CS2/Hook/Hook_IsRelativeMouseMode.hpp>
#include <CS2/Hook/Hook_AntiTamper.hpp>
#include <CS2/Hook/Hook_IsLoadoutAllowed.hpp>
#include <CS2/Hook/Hook_EquipItemInLoadout.hpp>
#include <CS2/Hook/Hook_DrawGlow.hpp>
#include <CS2/Hook/Hook_OnDrawObject.hpp>
static CHook_Loader g_CHook_Loader{};
auto CHook_Loader::InitalizeMH() -> bool
{
return MH_Initialize() == MH_OK;
}
auto CHook_Loader::InstallFirstHook() -> bool
{
m_Hooks =
{
#if DISABLE_INVENTORY == 0
{ { XorStr( "Hook::SOCacheSubscribed" ) , XorStr( "4C 8B DC 55 56 41 56 49 8D 6B" ) , CLIENT_DLL } , &Hook_SOCacheSubscribed , reinterpret_cast<LPVOID*>( &SOCacheSubscribed_o ) },
#endif
};
return InstallHooks();
}
auto CHook_Loader::InstallSecondHook() -> bool
{
m_Hooks =
{
/*
sub_180095150 -> PresentOverlay
sub_18008ED80(*(_QWORD *)(v4 + 64), sub_180095150, &qword_180162258, 1, "DXGISwapChain_Present");
*/
{ { XorStr( "Hook::PresentOverlay" ) , XorStr( "48 89 5C 24 ? 48 89 6C 24 ? 56 57 41 54 41 56 41 57 48 83 EC 20 41 8B F0" ) , GAMEOVERLAYRENDER64_DLL } , &Hook_Present , reinterpret_cast<LPVOID*>( &Present_o ) },
/*
sub_180095520 -> ResizeBuffers
sub_18008ED80(*(_QWORD *)(v4 + 104), sub_180095520, &qword_180162260, 1, "DXGISwapChain_ResizeBuffers");
*/
{ { XorStr( "Hook::ResizeBuffers" ) , XorStr( "40 53 55 56 57 41 54 41 56 41 57 48 83 EC ? 44 8B E2" ) , GAMEOVERLAYRENDER64_DLL } , &Hook_ResizeBuffers , reinterpret_cast<LPVOID*>( &ResizeBuffers_o ) },
/*
sub_1800AA7B0("IWrapDXGIFactory::CreateSwapChain called\n");
*/
{ { XorStr( "Hook::CreateSwapChain" ) , XorStr( "40 53 55 56 57 48 83 EC ? 48 8B F9 49 8B F1 48 8D 0D ? ? ? ? 49 8B D8 48 8B EA E8 ? ? ? ? 48 8D 0D ? ? ? ? E8 ? ? ? ? 48 8D 0D ? ? ? ? E8 ? ? ? ? 48 8D 0D ? ? ? ? E8 ? ? ? ? 48 8B 05 ? ? ? ? 4C 8B CE 4C 8B C3 48 8B D5 48 8B CF FF D0 8B D8 85 C0 78 ? 48 85 F6 74 ? 48 83 3E ? 74 ? 48 8B D5 48 8B CE E8 ? ? ? ? 8B C3 48 83 C4 ? 5F 5E 5D 5B C3 CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC 48 83 EC" ) , GAMEOVERLAYRENDER64_DLL } , &Hook_CreateSwapChain , reinterpret_cast<LPVOID*>( &CreateSwapChain_o ) } ,
{ { XorStr( "Hook::MouseInputEnabled" ) , XorStr( "40 53 48 83 EC 20 80 B9 ? ? ? ? ? 48 8B D9 75 78" ) , CLIENT_DLL } , &Hook_MouseInputEnabled , reinterpret_cast<LPVOID*>( &MouseInputEnabled_o ) },
{ { XorStr( "Hook::FireEventClientSide" ) , XorStr( "40 53 41 54 41 56 48 83 EC ? 4C 8B F2" ) , CLIENT_DLL } , &Hook_FireEventClientSide , reinterpret_cast<LPVOID*>( &FireEventClientSide_o ) },
{ { XorStr( "Hook::OnAddEntity" ) , XorStr( "48 89 74 24 10 57 48 83 EC 20 41 B9 FF 7F 00 00 41 8B C0 41 23 C1 48 8B F2 41 83 F8 FF 48 8B F9 44 0F 45 C8 41 81 F9 00 40 00 00 73 0D" ) , CLIENT_DLL } , &Hook_OnAddEntity , reinterpret_cast<LPVOID*>( &OnAddEntity_o ) },
{ { XorStr( "Hook::OnRemoveEntity" ) , XorStr( "48 89 74 24 10 57 48 83 EC 20 41 B9 FF 7F 00 00 41 8B C0 41 23 C1 48 8B F2 41 83 F8 FF 48 8B F9 44 0F 45 C8 41 81 F9 00 40 00 00 73 08" ) , CLIENT_DLL } , &Hook_OnRemoveEntity , reinterpret_cast<LPVOID*>( &OnRemoveEntity_o ) },
{ { XorStr( "Hook::FrameStageNotify" ) , XorStr( "48 89 5C 24 ? 48 89 6C 24 ? 57 48 83 EC ? 48 8B F9 33 ED" ) , CLIENT_DLL } , &Hook_FrameStageNotify , reinterpret_cast<LPVOID*>( &FrameStageNotify_o ) },
{ { XorStr( "Hook::GetMatricesForView" ) , XorStr( "48 8B C4 48 89 68 ? 48 89 70 ? 57 48 81 EC ? ? ? ? 0F 29 70 ? 49 8B F1" ) , CLIENT_DLL } , &Hook_GetMatricesForView , reinterpret_cast<LPVOID*>( &GetMatricesForView_o ) },
{ { XorStr( "Hook::CreateMove" ) , XorStr( "85 D2 0F 85 ? ? ? ? 48 8B C4 44 88 40 18" ) , CLIENT_DLL } , &Hook_CreateMove , reinterpret_cast<LPVOID*>( &CreateMove_o ) },
{ { XorStr( "Hook::SerializePartialToArray" ) , XorStr( "48 89 5C 24 ? 55 56 57 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 84 24 ? ? ? ? 49 63 F0" ) , CLIENT_DLL } , &Hook_MessageLite_SerializePartialToArray , reinterpret_cast<LPVOID*>( &MessageLite_SerializePartialToArray_o ) },
{ { XorStr( "Hook::OnClientOutput" ) , XorStr( "4C 8B DC 49 89 5B ? 49 89 6B ? 49 89 73 ? 57 41 56 41 57 48 83 EC ? 49 C7" ) , ENGINE2_DLL } , &Hook_OnClientOutput , reinterpret_cast<LPVOID*>( &OnClientOutput_o ) },
{ { XorStr( "Hook::CDemoRecorder" ) , XorStr( "40 56 57 41 57 48 83 EC ? 4C 8B F9" ) , ENGINE2_DLL } , &Hook_CDemoRecorder , reinterpret_cast<LPVOID*>( &CDemoRecorder_o ) },
{ { XorStr( "Hook::IsRelativeMouseMode" ) , XorStr( "48 89 6C 24 ? 48 89 74 24 ? 48 89 7C 24 ? 41 56 48 83 EC ? 0F B6 F2" ) , INPUTSYSTEM_DLL } , &Hook_IsRelativeMouseMode , reinterpret_cast<LPVOID*>( &IsRelativeMouseMode_o ) },
{ { XorStr( "Hook::AntiTamper" ) , XorStr( "40 53 41 57 48 83 EC ? 48 89 74 24 ? 48 8B F1" ) , CLIENT_DLL } , &Hook_AntiTamper , reinterpret_cast<LPVOID*>( &AntiTamper_o ) },
{ { XorStr("Hook::IsLoadoutAllowed") , XorStr("48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 57 48 83 EC ? 48 8B E9 48 8B 0D ? ? ? ? ? ? ? FF 50") , CLIENT_DLL } ,&Hook_IsLoadoutAllowed , reinterpret_cast<LPVOID*>(&IsLoadoutAllowed_o) , true , true } ,
{ { XorStr( "Hook::EquipItemInLoadout" ) , XorStr( "48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 89 54 24 ? 57 41 54 41 55 41 56 41 57 48 83 EC ? 0F B7 FA" ) , CLIENT_DLL } ,& Hook_EquipItemInLoadout , reinterpret_cast<LPVOID*>( &EquipItemInLoadout_o ) },
{ { XorStr( "Hook::DrawGlow" ) , XorStr( "40 53 48 83 EC 20 48 8B 54" ) , CLIENT_DLL } , &Hook_DrawGlow , reinterpret_cast<LPVOID*>( &DrawGlow_o ) },
{ { XorStr( "Hook::OnDrawObject" ) , XorStr( "48 8B C4 4C 89 40 ? 48 89 50 ? 55 53 41 57" ) , SCENESYSTEM_DLL } , &Hook_OnDrawObject , reinterpret_cast<LPVOID*>( &OnDrawObject_o ) , true , true },
};
return InstallHooks();
}
auto CHook_Loader::InstallHooks() -> bool
{
for ( auto& Hook : m_Hooks )
{
while ( !GetModuleHandleA( Hook.m_Pattern.GetDllName() ) )
Sleep( 1 );
if ( !Hook.m_Pattern.Search( Hook.m_bSkipError ) )
{
if ( !Hook.m_bSkipError )
DEV_LOG( "[error] Hook #1 -> '%s'\n" , Hook.m_Pattern.GetPatternName() );
if ( !Hook.m_bSkipIfNotFound )
return false;
else
continue;
}
auto Status = MH_CreateHook( Hook.m_Pattern.GetFunction() , Hook.m_pDetour , Hook.m_pOriginal );
if ( Status != MH_OK )
{
DEV_LOG( "[error] Hook #2 [%i] -> '%s'\n" , Status , Hook.m_Pattern.GetPatternName() );
return false;
}
}
MH_EnableHook( MH_ALL_HOOKS );
m_Hooks.clear();
return true;
}
auto CHook_Loader::DestroyHooks() -> void
{
MH_DisableHook( MH_ALL_HOOKS );
MH_RemoveHook( MH_ALL_HOOKS );
MH_Uninitialize();
}
auto GetHook_Loader() -> CHook_Loader*
{
return &g_CHook_Loader;
}
+36
View File
@@ -0,0 +1,36 @@
#pragma once
#include <Common/Common.hpp>
#include <vector>
#include <CS2/CBasePattern.hpp>
struct HookData_t
{
CBasePattern m_Pattern;
LPVOID m_pDetour = nullptr;
LPVOID* m_pOriginal = nullptr;
bool m_bSkipIfNotFound = false;
bool m_bSkipError = false;
};
class CHook_Loader final
{
public:
auto InitalizeMH() -> bool;
public:
auto InstallFirstHook() -> bool;
auto InstallSecondHook() -> bool;
private:
auto InstallHooks() -> bool;
public:
auto DestroyHooks() -> void;
private:
std::vector<HookData_t> m_Hooks = {};
};
auto GetHook_Loader() -> CHook_Loader*;
+100
View File
@@ -0,0 +1,100 @@
#include "CSDK_Loader.hpp"
#include <CS2/SDK/SDK.hpp>
#include <CS2/SDK/Interface/IEngineToClient.hpp>
#include <CS2/SDK/Interface/CGameEntitySystem.hpp>
#include <CS2/SDK/Interface/CShemaSystemSDK.hpp>
#include <CS2/SDK/Interface/CSource2Client.hpp>
#include <CS2/SDK/CSchemaOffset.hpp>
#include <CS2/SDK/Types/CEntityData.hpp>
#include <CS2/SDK/Econ/CEconItemSystem.hpp>
#include <CS2/SDK/Econ/CEconItemSchema.hpp>
#include <CS2/SDK/Cstrike15/CCSInventoryManager.hpp>
#include <CS2/SDK/Cstrike15/CCSPlayerInventory.hpp>
#include <CS2/SDK/SDL3/SDL3_Functions.hpp>
#include <CS2/SDK/TIER0/TIER0_Functions.hpp>
#include <Common/Helpers/ModuleLoaderHelper.hpp>
#define RETURN_FALSE_IF_INTERFACE_ERROR(Interface)\
if ( !Interface )\
{\
DEV_LOG( "[error] Interface::%s\n" , #Interface );\
return false;\
}
static CSDK_Loader g_SDK_Loader{};
auto CSDK_Loader::LoadSDK() -> bool
{
// Wait for module load:
if ( !IsModuleLoad( NAVSYSTEM_DLL ) )
return false;
// Log SDK:
#if LOG_SDK == 1
DEV_LOG( "[+] CSDK_Loader::LoadSDK:\n\n" );
#endif
// Interfaces:
auto pEngineToClient = SDK::Interfaces::EngineToClient();
auto pGameEntitySystem = SDK::Interfaces::GameEntitySystem();
auto pSchemaSystem = SDK::Interfaces::SchemaSystem();
auto pSource2Client = SDK::Interfaces::Source2Client();
auto pLocalize = SDK::Interfaces::Localize();
auto pBaseFileSystem = SDK::Interfaces::BaseFileSystem();
// Return if error #1
RETURN_FALSE_IF_INTERFACE_ERROR( pEngineToClient );
RETURN_FALSE_IF_INTERFACE_ERROR( pGameEntitySystem );
RETURN_FALSE_IF_INTERFACE_ERROR( pSchemaSystem );
RETURN_FALSE_IF_INTERFACE_ERROR( pSource2Client );
RETURN_FALSE_IF_INTERFACE_ERROR( pLocalize );
RETURN_FALSE_IF_INTERFACE_ERROR( pBaseFileSystem );
// Log:
#if LOG_SDK == 1
DEV_LOG( "\n" );
#endif
// Log:
#if LOG_SDK == 1
DEV_LOG( "[+] pEngineToClient: %p\n" , pEngineToClient );
DEV_LOG( "[+] pGameEntitySystem: %p\n" , pGameEntitySystem );
DEV_LOG( "[+] pSchemaSystem: %p\n" , pSchemaSystem );
DEV_LOG( "[+] pSource2Client: %p\n" , pSource2Client );
DEV_LOG( "[+] pLocalize: %p\n" , pLocalize );
DEV_LOG( "[+] pBaseFileSystem: %p\n" , pBaseFileSystem );
#endif
#if LOG_SDK == 1
DEV_LOG( "\n" );
DEV_LOG( "CCSInventoryManager::Get: %p\n" , CCSInventoryManager::Get() );
DEV_LOG( "CCSPlayerInventory::Get: %p\n" , CCSPlayerInventory::Get() );
DEV_LOG( "CSource2Client::GetEconItemSchema: %p\n" , pSource2Client->GetEconItemSystem()->GetEconItemSchema() );
DEV_LOG( "GetSortedItemDefinitionMap: %p\n" , &pSource2Client->GetEconItemSystem()->GetEconItemSchema()->GetSortedItemDefinitionMap() );
DEV_LOG( "GetPaintKits: %p\n" , &pSource2Client->GetEconItemSystem()->GetEconItemSchema()->GetPaintKits() );
DEV_LOG( "GetMusicKitDefinitions: %p\n" , &pSource2Client->GetEconItemSystem()->GetEconItemSchema()->GetMusicKitDefinitions() );
DEV_LOG( "\n" );
#endif
if ( !GetSDL3Functions()->OnInit() )
return false;
if ( !GetTIER0Functions()->OnInit() )
return false;
GetSchemaOffset()->Init();
return true;
}
auto GetSDK_Loader() -> CSDK_Loader*
{
return &g_SDK_Loader;
}
+11
View File
@@ -0,0 +1,11 @@
#pragma once
#include <Common/Common.hpp>
class CSDK_Loader final
{
public:
auto LoadSDK() -> bool;
};
auto GetSDK_Loader() -> CSDK_Loader*;
@@ -0,0 +1,6 @@
#include "Hook_AntiTamper.hpp"
auto Hook_AntiTamper( void* Src , int a2 , __int64 a3 , int a4 ) -> bool
{
return false;
}
@@ -0,0 +1,8 @@
#pragma once
#include <Common/Common.hpp>
auto Hook_AntiTamper( void* Src , int a2 , __int64 a3 , int a4 ) -> bool;
using AntiTamper_t = decltype( &Hook_AntiTamper );
inline AntiTamper_t AntiTamper_o = nullptr;
@@ -0,0 +1,48 @@
#include "Hook_CreateMove.hpp"
#include <CS2/SDK/SDK.hpp>
#include <CS2/SDK/Interface/IEngineToClient.hpp>
#include <CS2/SDK/Update/CCSGOInput.hpp>
#include <MaroHookClient/CMaroHookClient.hpp>
#include <GameClient/CL_Players.hpp>
#include <GameClient/CL_Bypass.hpp>
auto Hook_CreateMove( CCSGOInput* pCCSGOInput , uint32_t split_screen_index , char a3 ) -> bool
{
auto Result = false;
if ( auto* pLocalPlayerController = GetCL_Players()->GetLocalPlayerController(); pLocalPlayerController )
{
Result = CreateMove_o( pCCSGOInput , split_screen_index , a3 );
const auto pUserCmd = pCCSGOInput->GetUserCmd( pLocalPlayerController );
if ( !pUserCmd )
return Result;
if ( SDK::Interfaces::EngineToClient()->IsInGame() && GetCL_Players()->GetLocalPlayerPawn() )
{
GetCL_Bypass()->PreClientCreateMove( pUserCmd );
GetMaroHookClient()->OnCreateMove( pCCSGOInput , pUserCmd );
GetCL_Bypass()->PostClientCreateMove( pCCSGOInput , pUserCmd );
}
}
return Result;
}
auto Hook_MessageLite_SerializePartialToArray( google::protobuf::Message* pMsg , void* out_buffer , int size ) -> bool
{
#if DISABLE_PROTOBUF == 0
const google::protobuf::Descriptor* descriptor = pMsg->GetDescriptor();
const std::string message_name = descriptor->name();
if ( message_name == XorStr( "CBaseUserCmdPB" ) )
{
GetCL_Bypass()->OnCBaseUserCmdPB( reinterpret_cast<CBaseUserCmdPB*>( pMsg ) );
}
#endif
return MessageLite_SerializePartialToArray_o( pMsg , out_buffer , size );
}
@@ -0,0 +1,17 @@
#pragma once
#include <Common/Common.hpp>
#include <CS2/SDK/Network/CNetworkMessages.hpp>
class CCSGOInput;
auto Hook_CreateMove( CCSGOInput* pInput , uint32_t split_screen_index , char a3 ) -> bool;
using CreateMove_t = decltype( &Hook_CreateMove );
inline CreateMove_t CreateMove_o = nullptr;
auto Hook_MessageLite_SerializePartialToArray( google::protobuf::Message* pMsg , void* out_buffer , int size ) -> bool;
using MessageLite_SerializePartialToArray_t = decltype( &Hook_MessageLite_SerializePartialToArray );
inline MessageLite_SerializePartialToArray_t MessageLite_SerializePartialToArray_o = nullptr;
@@ -0,0 +1,10 @@
#include "Hook_CreateSwapChain.hpp"
#include <MaroHookClient/CMaroHookGUI.hpp>
auto WINAPI Hook_CreateSwapChain( IDXGIFactory* pFactory , IUnknown* pDevice , DXGI_SWAP_CHAIN_DESC* pDesc , IDXGISwapChain** ppSwapChain )->HRESULT
{
GetMaroHookGUI()->ClearRenderTargetView();
return CreateSwapChain_o( pFactory , pDevice , pDesc , ppSwapChain );
}
@@ -0,0 +1,9 @@
#pragma once
#include <Common/Common.hpp>
#include <d3d11.h>
auto WINAPI Hook_CreateSwapChain( IDXGIFactory* pFactory , IUnknown* pDevice , DXGI_SWAP_CHAIN_DESC* pDesc , IDXGISwapChain** ppSwapChain )->HRESULT;
using CreateSwapChain_t = decltype( &Hook_CreateSwapChain );
inline CreateSwapChain_t CreateSwapChain_o = nullptr;
@@ -0,0 +1,19 @@
#include "Hook_DrawGlow.hpp"
#include <intrin.h>
#include <CS2/SDK/SDK.hpp>
#include <CS2/SDK/Interface/IEngineToClient.hpp>
#include <MaroHookClient/Settings/Settings.hpp>
#include <MaroHookClient/Features/CVisual/CVisual.hpp>
auto Hook_DrawGlow( CGlowProperty* pCGlowProperty ) -> void*
{
auto pResult = DrawGlow_o( pCGlowProperty );
if ( !Settings::SafeMode::Active && SDK::Interfaces::EngineToClient()->IsInGame() )
GetVisual()->OnDrawGlow( pCGlowProperty );
return pResult;
}
@@ -0,0 +1,10 @@
#pragma once
#include <Common/Common.hpp>
class CGlowProperty;
auto Hook_DrawGlow( CGlowProperty* pCGlowProperty ) -> void*;
using DrawGlow_t = decltype( &Hook_DrawGlow );
inline DrawGlow_t DrawGlow_o = nullptr;
@@ -0,0 +1,10 @@
#include "Hook_EquipItemInLoadout.hpp"
#include <MaroHookClient/Features/CInventoryChanger/CInventoryChanger.hpp>
auto Hook_EquipItemInLoadout( CCSInventoryManager* pManager , int iTeam , int iSlot , uint64_t iItemID ) -> void
{
GetInventoryChanger()->OnEquipItemInLoadout( iTeam , iSlot , iItemID );
EquipItemInLoadout_o( pManager , iTeam , iSlot , iItemID );
}
@@ -0,0 +1,8 @@
#pragma once
#include <CS2/SDK/Cstrike15/CCSInventoryManager.hpp>
using EquipItemInLoadout_t = void( __fastcall* )( CCSInventoryManager* , int , int , uint64_t );
inline EquipItemInLoadout_t EquipItemInLoadout_o = nullptr;
auto Hook_EquipItemInLoadout( CCSInventoryManager* pManager , int iTeam , int iSlot , uint64_t iItemID ) -> void;
@@ -0,0 +1,10 @@
#include "Hook_FireEventClientSide.hpp"
#include <MaroHookClient/CMaroHookClient.hpp>
auto Hook_FireEventClientSide( IGameEventManager2* pGameEventManager2 , IGameEvent* pGameEvent ) -> bool
{
GetMaroHookClient()->OnFireEventClientSide( pGameEvent );
return FireEventClientSide_o( pGameEventManager2 , pGameEvent );
}
@@ -0,0 +1,11 @@
#pragma once
#include <common/Common.hpp>
class IGameEventManager2;
class IGameEvent;
auto Hook_FireEventClientSide( IGameEventManager2* pGameEventManager2 , IGameEvent* pGameEvent ) -> bool;
using FireEventClientSide_t = decltype( &Hook_FireEventClientSide );
inline FireEventClientSide_t FireEventClientSide_o = nullptr;
@@ -0,0 +1,10 @@
#include "Hook_FrameStageNotify.hpp"
#include <MaroHookClient/CMaroHookClient.hpp>
auto Hook_FrameStageNotify( CSource2Client* pCSource2Client , int FrameStage ) -> void
{
GetMaroHookClient()->OnFrameStageNotify( FrameStage );
return FrameStageNotify_o( pCSource2Client , FrameStage );
}
@@ -0,0 +1,10 @@
#pragma once
#include <Common/Common.hpp>
class CSource2Client;
auto Hook_FrameStageNotify( CSource2Client* pCSource2Client , int FrameStage ) -> void;
using FrameStageNotify_t = decltype( &Hook_FrameStageNotify );
inline FrameStageNotify_t FrameStageNotify_o = nullptr;
@@ -0,0 +1,16 @@
#include "Hook_GetMatricesForView.hpp"
#include <CS2/SDK/Math/Math.hpp>
#include <MaroHookClient/Features/CVisual/CVisual.hpp>
auto Hook_GetMatricesForView( void* rcx , void* view ,
VMatrix* pWorldToView ,
VMatrix* pViewToProjection ,
VMatrix* pWorldToProjection ,
VMatrix* pWorldToPixels ) -> void
{
GetMatricesForView_o( rcx , view , pWorldToView , pViewToProjection , pWorldToProjection , pWorldToPixels );
GetVisual()->CalculateBoundingBoxes();
}
@@ -0,0 +1,14 @@
#pragma once
#include <Common/Common.hpp>
class VMatrix;
auto Hook_GetMatricesForView( void* rcx , void* view ,
VMatrix* pWorldToView ,
VMatrix* pViewToProjection ,
VMatrix* pWorldToProjection ,
VMatrix* pWorldToPixels ) -> void;
using GetMatricesForView_t = decltype( &Hook_GetMatricesForView );
inline GetMatricesForView_t GetMatricesForView_o = nullptr;
@@ -0,0 +1,6 @@
#include "Hook_IsLoadoutAllowed.hpp"
auto Hook_IsLoadoutAllowed() -> bool
{
return true;
}
@@ -0,0 +1,8 @@
#pragma once
#include <common/Common.hpp>
auto Hook_IsLoadoutAllowed() -> bool;
using IsLoadoutAllowed_t = decltype(&Hook_IsLoadoutAllowed);
inline IsLoadoutAllowed_t IsLoadoutAllowed_o = nullptr;
@@ -0,0 +1,13 @@
#include "Hook_IsRelativeMouseMode.hpp"
#include <MaroHookClient/CMaroHookGUI.hpp>
auto Hook_IsRelativeMouseMode( CInputSystem* pInputSystem , bool Active ) -> void
{
GetMaroHookGUI()->m_bMainActive = Active;
if ( GetMaroHookGUI()->IsVisible() )
return IsRelativeMouseMode_o( pInputSystem , false );
return IsRelativeMouseMode_o( pInputSystem , Active );
}
@@ -0,0 +1,10 @@
#pragma once
#include <Common/Common.hpp>
class CInputSystem;
auto Hook_IsRelativeMouseMode( CInputSystem* pInputSystem , bool Active ) -> void;
using IsRelativeMouseMode_t = decltype( &Hook_IsRelativeMouseMode );
inline IsRelativeMouseMode_t IsRelativeMouseMode_o = nullptr;
@@ -0,0 +1,11 @@
#include "Hook_MouseInputEnabled.hpp"
#include <MaroHookClient/CMaroHookGUI.hpp>
auto Hook_MouseInputEnabled( void* RCX ) -> bool
{
if ( GetMaroHookGUI()->IsVisible() )
return false;
return MouseInputEnabled_o( RCX );
}
@@ -0,0 +1,8 @@
#pragma once
#include <Common/Common.hpp>
auto Hook_MouseInputEnabled( void* RCX ) -> bool;
using MouseInputEnabled_t = decltype( &Hook_MouseInputEnabled );
inline MouseInputEnabled_t MouseInputEnabled_o = nullptr;
@@ -0,0 +1,10 @@
#include "Hook_OnAddEntity.hpp"
#include <MaroHookClient/CMaroHookClient.hpp>
auto Hook_OnAddEntity( CGameEntitySystem* pCGameEntitySystem , CEntityInstance* pInst , CHandle handle ) -> void
{
GetMaroHookClient()->OnAddEntity( pInst , handle );
return OnAddEntity_o( pCGameEntitySystem , pInst , handle );
}
@@ -0,0 +1,13 @@
#pragma once
#include <Common/Common.hpp>
#include <CS2/SDK/Types/CHandle.hpp>
class CGameEntitySystem;
class CEntityInstance;
auto Hook_OnAddEntity( CGameEntitySystem* pCGameEntitySystem , CEntityInstance* pInst , CHandle handle ) -> void;
using OnAddEntity_t = decltype( &Hook_OnAddEntity );
inline OnAddEntity_t OnAddEntity_o = nullptr;
@@ -0,0 +1,12 @@
#include "Hook_OnClientOutput.hpp"
#include <MaroHookClient/CMaroHookClient.hpp>
#include <MaroHookClient/Render/CRenderStackSystem.hpp>
auto Hook_OnClientOutput( void* a1 , void* a2 , void* a3 , void* a4 ) -> void
{
GetMaroHookClient()->OnClientOutput();
GetRenderStackSystem()->OnClientOutput();
return OnClientOutput_o( a1 , a2 , a3 , a4 );
}
@@ -0,0 +1,8 @@
#pragma once
#include <Common/Common.hpp>
auto Hook_OnClientOutput( void* a1 , void* a2 , void* a3 , void* a4 ) -> void;
using OnClientOutput_t = decltype( &Hook_OnClientOutput );
inline OnClientOutput_t OnClientOutput_o = nullptr;
@@ -0,0 +1,12 @@
#include "Hook_OnDrawObject.hpp"
#include <MaroHookClient/Settings/Settings.hpp>
#include <MaroHookClient/Features/CChams/CChams.hpp>
auto Hook_OnDrawObject( void* pAnimatableSceneObjectDesc , void* pDx11 , void* pMeshData , int nDataCount , void* pSceneView , void* pSceneLayer , void* pUnk , void* pUnk2 ) -> void
{
if ( !Settings::SafeMode::Active && GetChams()->OnDrawObject( pAnimatableSceneObjectDesc , pDx11 , pMeshData , nDataCount , pSceneView , pSceneLayer , pUnk , pUnk2 ) )
return;
OnDrawObject_o( pAnimatableSceneObjectDesc , pDx11 , pMeshData , nDataCount , pSceneView , pSceneLayer , pUnk , pUnk2 );
}
@@ -0,0 +1,8 @@
#pragma once
#include <Common/Common.hpp>
auto Hook_OnDrawObject( void* pAnimatableSceneObjectDesc , void* pDx11 , void* pMeshData , int nDataCount , void* pSceneView , void* pSceneLayer , void* pUnk , void* pUnk2 ) -> void;
using OnDrawObject_t = decltype( &Hook_OnDrawObject );
inline OnDrawObject_t OnDrawObject_o = nullptr;
@@ -0,0 +1,10 @@
#include "Hook_OnRemoveEntity.hpp"
#include <MaroHookClient/CMaroHookClient.hpp>
auto Hook_OnRemoveEntity( CGameEntitySystem* pCGameEntitySystem , CEntityInstance* pInst , CHandle handle ) -> void
{
GetMaroHookClient()->OnRemoveEntity( pInst , handle );
return OnRemoveEntity_o( pCGameEntitySystem , pInst , handle );
}
@@ -0,0 +1,13 @@
#pragma once
#include <Common/Common.hpp>
#include <CS2/SDK/Types/CHandle.hpp>
class CGameEntitySystem;
class CEntityInstance;
auto Hook_OnRemoveEntity( CGameEntitySystem* pCGameEntitySystem , CEntityInstance* pInst , CHandle handle ) -> void;
using OnRemoveEntity_t = decltype( &Hook_OnRemoveEntity );
inline OnRemoveEntity_t OnRemoveEntity_o = nullptr;
@@ -0,0 +1,39 @@
#include "Hook_ParseMessage.hpp"
#include <CS2/SDK/SDK.hpp>
#include <CS2/SDK/Interface/CSoundOpSystem.hpp>
#include <CS2/SDK/Network/CNetworkMessages.hpp>
#include <CS2/SDK/Math/Vector3.hpp>
#include <CS2/SDK/Update/Offsets.hpp>
#include <CS2/Protobuf/gameevents.pb.h>
auto Hook_CDemoRecorder( CDemoRecorder* pDemoRecorder , CNetworkSerializerPB* pSerializer , CNetMessagePB* pNetMessage ) -> bool
{
if ( pSerializer->messageID == GE_SosStartSoundEvent )
{
CMsgSosStartSoundEvent* pMessage = reinterpret_cast<CMsgSosStartSoundEvent*>( (PBYTE)pNetMessage + g_ProtobufMsgOffset );
if ( pMessage )
{
std::string SoundName = "null";
Vector3 SoundPos;
auto SourceEntityIndex = 0;
if ( pMessage->has_source_entity_index() )
SourceEntityIndex = pMessage->source_entity_index();
if ( pMessage->has_packed_params() && pMessage->packed_params().size() >= 19 && pMessage->packed_params().data() )
SoundPos = *(Vector3*)( pMessage->packed_params().data() + 7 );
const char* szSoundEventName = SDK::Interfaces::SoundOpSystem()->GetCSoundEventManager()->GetSoundEventName( pMessage->soundevent_hash() );
if ( szSoundEventName )
SoundName = szSoundEventName;
DEV_LOG( "StartSoundEvent: %i , %s\n" , SourceEntityIndex , SoundName.c_str() );
}
}
return CDemoRecorder_o( pDemoRecorder , pSerializer , pNetMessage );
}
@@ -0,0 +1,12 @@
#pragma once
#include <Common/Common.hpp>
class CDemoRecorder;
class CNetworkSerializerPB;
class CNetMessagePB;
auto Hook_CDemoRecorder( CDemoRecorder* pDemoRecorder , CNetworkSerializerPB* pSerializer , CNetMessagePB* pNetMessage ) -> bool;
using CDemoRecorder_t = decltype( &Hook_CDemoRecorder );
inline CDemoRecorder_t CDemoRecorder_o = nullptr;
@@ -0,0 +1,10 @@
#include "Hook_Present.hpp"
#include <MaroHookClient/CMaroHookGUI.hpp>
auto Hook_Present( IDXGISwapChain* pSwapChain , UINT SyncInterval , UINT Flags ) -> HRESULT
{
GetMaroHookGUI()->OnPresent( pSwapChain );
return Present_o( pSwapChain , SyncInterval , Flags );
}
@@ -0,0 +1,9 @@
#pragma once
#include <Common/Common.hpp>
#include <d3d11.h>
auto Hook_Present( IDXGISwapChain* pSwapChain , UINT SyncInterval , UINT Flags ) -> HRESULT;
using Present_t = decltype( &Hook_Present );
inline Present_t Present_o = nullptr;
@@ -0,0 +1,10 @@
#include "Hook_ResizeBuffers.hpp"
#include <MaroHookClient/CMaroHookGUI.hpp>
auto Hook_ResizeBuffers( IDXGISwapChain* pSwapChain , UINT BufferCount , UINT Width , UINT Height , DXGI_FORMAT NewFormat , UINT SwapChainFlags ) -> HRESULT
{
GetMaroHookGUI()->OnResizeBuffers( pSwapChain );
return ResizeBuffers_o( pSwapChain , BufferCount , Width , Height , NewFormat , SwapChainFlags );
}
@@ -0,0 +1,9 @@
#pragma once
#include <Common/Common.hpp>
#include <d3d11.h>
auto Hook_ResizeBuffers( IDXGISwapChain* pSwapChain , UINT BufferCount , UINT Width , UINT Height , DXGI_FORMAT NewFormat , UINT SwapChainFlags ) -> HRESULT;
using ResizeBuffers_t = decltype( &Hook_ResizeBuffers );
inline ResizeBuffers_t ResizeBuffers_o = nullptr;
@@ -0,0 +1,16 @@
#include "Hook_SOCacheSubscribed.hpp"
#include <CS2/SDK/Cstrike15/CCSPlayerInventory.hpp>
#include <MaroHookClient/Features/CInventoryChanger/CInventoryItemsManager.hpp>
auto Hook_SOCacheSubscribed( CCSPlayerInventory* pCSPlayerInventory , GCSDK::SOID_t owner , int64_t unk ) -> void*
{
auto pResult = SOCacheSubscribed_o( pCSPlayerInventory , owner , unk );
if ( pCSPlayerInventory->GetOwner().m_type == owner.m_type && pCSPlayerInventory->GetOwner().m_id == owner.m_id )
{
GetInventoryItemsManager()->OnAddAllItems();
}
return pResult;
}
@@ -0,0 +1,12 @@
#pragma once
#include <Common/Common.hpp>
#include <CS2/SDK/GCSDK/GCSDKTypes/SOID_t.hpp>
class CCSPlayerInventory;
auto Hook_SOCacheSubscribed( CCSPlayerInventory* pCSPlayerInventory , GCSDK::SOID_t owner , int64_t unk ) -> void*;
using SOCacheSubscribed_t = decltype( &Hook_SOCacheSubscribed );
inline SOCacheSubscribed_t SOCacheSubscribed_o = nullptr;
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,772 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cs_prediction_events.proto
#include "cs_prediction_events.pb.h"
#include <algorithm>
#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>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
PROTOBUF_CONSTEXPR CCSPredictionEvent_DamageTag::CCSPredictionEvent_DamageTag(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_._has_bits_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_.flinch_mod_small_)*/0
, /*decltype(_impl_.flinch_mod_large_)*/0
, /*decltype(_impl_.friendly_fire_damage_reduction_ratio_)*/0} {}
struct CCSPredictionEvent_DamageTagDefaultTypeInternal {
PROTOBUF_CONSTEXPR CCSPredictionEvent_DamageTagDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~CCSPredictionEvent_DamageTagDefaultTypeInternal() {}
union {
CCSPredictionEvent_DamageTag _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CCSPredictionEvent_DamageTagDefaultTypeInternal _CCSPredictionEvent_DamageTag_default_instance_;
PROTOBUF_CONSTEXPR CCSPredictionEvent_PlayerTeleport::CCSPredictionEvent_PlayerTeleport(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_._has_bits_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_.origin_)*/nullptr
, /*decltype(_impl_.angles_)*/nullptr
, /*decltype(_impl_.velocity_)*/nullptr
, /*decltype(_impl_.relative_)*/false} {}
struct CCSPredictionEvent_PlayerTeleportDefaultTypeInternal {
PROTOBUF_CONSTEXPR CCSPredictionEvent_PlayerTeleportDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~CCSPredictionEvent_PlayerTeleportDefaultTypeInternal() {}
union {
CCSPredictionEvent_PlayerTeleport _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CCSPredictionEvent_PlayerTeleportDefaultTypeInternal _CCSPredictionEvent_PlayerTeleport_default_instance_;
static ::_pb::Metadata file_level_metadata_cs_5fprediction_5fevents_2eproto[2];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_cs_5fprediction_5fevents_2eproto[1];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_cs_5fprediction_5fevents_2eproto = nullptr;
const uint32_t TableStruct_cs_5fprediction_5fevents_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_DamageTag, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_DamageTag, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_DamageTag, _impl_.flinch_mod_small_),
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_DamageTag, _impl_.flinch_mod_large_),
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_DamageTag, _impl_.friendly_fire_damage_reduction_ratio_),
0,
1,
2,
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_PlayerTeleport, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_PlayerTeleport, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_PlayerTeleport, _impl_.relative_),
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_PlayerTeleport, _impl_.origin_),
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_PlayerTeleport, _impl_.angles_),
PROTOBUF_FIELD_OFFSET(::CCSPredictionEvent_PlayerTeleport, _impl_.velocity_),
3,
0,
1,
2,
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 9, -1, sizeof(::CCSPredictionEvent_DamageTag)},
{ 12, 22, -1, sizeof(::CCSPredictionEvent_PlayerTeleport)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::_CCSPredictionEvent_DamageTag_default_instance_._instance,
&::_CCSPredictionEvent_PlayerTeleport_default_instance_._instance,
};
const char descriptor_table_protodef_cs_5fprediction_5fevents_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\032cs_prediction_events.proto\032\026networkbas"
"etypes.proto\032\027prediction_events.proto\"\200\001"
"\n\034CCSPredictionEvent_DamageTag\022\030\n\020flinch"
"_mod_small\030\001 \001(\002\022\030\n\020flinch_mod_large\030\002 \001"
"(\002\022,\n$friendly_fire_damage_reduction_rat"
"io\030\003 \001(\002\"\216\001\n!CCSPredictionEvent_PlayerTe"
"leport\022\020\n\010relative\030\001 \001(\010\022\033\n\006origin\030\002 \001(\013"
"2\013.CMsgVector\022\033\n\006angles\030\003 \001(\0132\013.CMsgQAng"
"le\022\035\n\010velocity\030\004 \001(\0132\013.CMsgVector*B\n\023ECS"
"PredictionEvents\022\022\n\016CSPE_DamageTag\020\001\022\027\n\023"
"CSPE_PlayerTeleport\020\003"
;
static const ::_pbi::DescriptorTable* const descriptor_table_cs_5fprediction_5fevents_2eproto_deps[2] = {
&::descriptor_table_networkbasetypes_2eproto,
&::descriptor_table_prediction_5fevents_2eproto,
};
static ::_pbi::once_flag descriptor_table_cs_5fprediction_5fevents_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_cs_5fprediction_5fevents_2eproto = {
false, false, 421, descriptor_table_protodef_cs_5fprediction_5fevents_2eproto,
"cs_prediction_events.proto",
&descriptor_table_cs_5fprediction_5fevents_2eproto_once, descriptor_table_cs_5fprediction_5fevents_2eproto_deps, 2, 2,
schemas, file_default_instances, TableStruct_cs_5fprediction_5fevents_2eproto::offsets,
file_level_metadata_cs_5fprediction_5fevents_2eproto, file_level_enum_descriptors_cs_5fprediction_5fevents_2eproto,
file_level_service_descriptors_cs_5fprediction_5fevents_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_cs_5fprediction_5fevents_2eproto_getter() {
return &descriptor_table_cs_5fprediction_5fevents_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_cs_5fprediction_5fevents_2eproto(&descriptor_table_cs_5fprediction_5fevents_2eproto);
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ECSPredictionEvents_descriptor() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_cs_5fprediction_5fevents_2eproto);
return file_level_enum_descriptors_cs_5fprediction_5fevents_2eproto[0];
}
bool ECSPredictionEvents_IsValid(int value) {
switch (value) {
case 1:
case 3:
return true;
default:
return false;
}
}
// ===================================================================
class CCSPredictionEvent_DamageTag::_Internal {
public:
using HasBits = decltype(std::declval<CCSPredictionEvent_DamageTag>()._impl_._has_bits_);
static void set_has_flinch_mod_small(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
static void set_has_flinch_mod_large(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
static void set_has_friendly_fire_damage_reduction_ratio(HasBits* has_bits) {
(*has_bits)[0] |= 4u;
}
};
CCSPredictionEvent_DamageTag::CCSPredictionEvent_DamageTag(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:CCSPredictionEvent_DamageTag)
}
CCSPredictionEvent_DamageTag::CCSPredictionEvent_DamageTag(const CCSPredictionEvent_DamageTag& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
CCSPredictionEvent_DamageTag* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){from._impl_._has_bits_}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.flinch_mod_small_){}
, decltype(_impl_.flinch_mod_large_){}
, decltype(_impl_.friendly_fire_damage_reduction_ratio_){}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&_impl_.flinch_mod_small_, &from._impl_.flinch_mod_small_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.friendly_fire_damage_reduction_ratio_) -
reinterpret_cast<char*>(&_impl_.flinch_mod_small_)) + sizeof(_impl_.friendly_fire_damage_reduction_ratio_));
// @@protoc_insertion_point(copy_constructor:CCSPredictionEvent_DamageTag)
}
inline void CCSPredictionEvent_DamageTag::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.flinch_mod_small_){0}
, decltype(_impl_.flinch_mod_large_){0}
, decltype(_impl_.friendly_fire_damage_reduction_ratio_){0}
};
}
CCSPredictionEvent_DamageTag::~CCSPredictionEvent_DamageTag() {
// @@protoc_insertion_point(destructor:CCSPredictionEvent_DamageTag)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void CCSPredictionEvent_DamageTag::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void CCSPredictionEvent_DamageTag::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void CCSPredictionEvent_DamageTag::Clear() {
// @@protoc_insertion_point(message_clear_start:CCSPredictionEvent_DamageTag)
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_.flinch_mod_small_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.friendly_fire_damage_reduction_ratio_) -
reinterpret_cast<char*>(&_impl_.flinch_mod_small_)) + sizeof(_impl_.friendly_fire_damage_reduction_ratio_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* CCSPredictionEvent_DamageTag::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional float flinch_mod_small = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
_Internal::set_has_flinch_mod_small(&has_bits);
_impl_.flinch_mod_small_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
ptr += sizeof(float);
} else
goto handle_unusual;
continue;
// optional float flinch_mod_large = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
_Internal::set_has_flinch_mod_large(&has_bits);
_impl_.flinch_mod_large_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
ptr += sizeof(float);
} else
goto handle_unusual;
continue;
// optional float friendly_fire_damage_reduction_ratio = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 29)) {
_Internal::set_has_friendly_fire_damage_reduction_ratio(&has_bits);
_impl_.friendly_fire_damage_reduction_ratio_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
ptr += sizeof(float);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* CCSPredictionEvent_DamageTag::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:CCSPredictionEvent_DamageTag)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
// optional float flinch_mod_small = 1;
if (cached_has_bits & 0x00000001u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_flinch_mod_small(), target);
}
// optional float flinch_mod_large = 2;
if (cached_has_bits & 0x00000002u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_flinch_mod_large(), target);
}
// optional float friendly_fire_damage_reduction_ratio = 3;
if (cached_has_bits & 0x00000004u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_friendly_fire_damage_reduction_ratio(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:CCSPredictionEvent_DamageTag)
return target;
}
size_t CCSPredictionEvent_DamageTag::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:CCSPredictionEvent_DamageTag)
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 float flinch_mod_small = 1;
if (cached_has_bits & 0x00000001u) {
total_size += 1 + 4;
}
// optional float flinch_mod_large = 2;
if (cached_has_bits & 0x00000002u) {
total_size += 1 + 4;
}
// optional float friendly_fire_damage_reduction_ratio = 3;
if (cached_has_bits & 0x00000004u) {
total_size += 1 + 4;
}
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSPredictionEvent_DamageTag::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
CCSPredictionEvent_DamageTag::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSPredictionEvent_DamageTag::GetClassData() const { return &_class_data_; }
void CCSPredictionEvent_DamageTag::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<CCSPredictionEvent_DamageTag*>(&to_msg);
auto& from = static_cast<const CCSPredictionEvent_DamageTag&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:CCSPredictionEvent_DamageTag)
GOOGLE_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_.flinch_mod_small_ = from._impl_.flinch_mod_small_;
}
if (cached_has_bits & 0x00000002u) {
_this->_impl_.flinch_mod_large_ = from._impl_.flinch_mod_large_;
}
if (cached_has_bits & 0x00000004u) {
_this->_impl_.friendly_fire_damage_reduction_ratio_ = from._impl_.friendly_fire_damage_reduction_ratio_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void CCSPredictionEvent_DamageTag::CopyFrom(const CCSPredictionEvent_DamageTag& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:CCSPredictionEvent_DamageTag)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CCSPredictionEvent_DamageTag::IsInitialized() const {
return true;
}
void CCSPredictionEvent_DamageTag::InternalSwap(CCSPredictionEvent_DamageTag* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(CCSPredictionEvent_DamageTag, _impl_.friendly_fire_damage_reduction_ratio_)
+ sizeof(CCSPredictionEvent_DamageTag::_impl_.friendly_fire_damage_reduction_ratio_)
- PROTOBUF_FIELD_OFFSET(CCSPredictionEvent_DamageTag, _impl_.flinch_mod_small_)>(
reinterpret_cast<char*>(&_impl_.flinch_mod_small_),
reinterpret_cast<char*>(&other->_impl_.flinch_mod_small_));
}
::PROTOBUF_NAMESPACE_ID::Metadata CCSPredictionEvent_DamageTag::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_cs_5fprediction_5fevents_2eproto_getter, &descriptor_table_cs_5fprediction_5fevents_2eproto_once,
file_level_metadata_cs_5fprediction_5fevents_2eproto[0]);
}
// ===================================================================
class CCSPredictionEvent_PlayerTeleport::_Internal {
public:
using HasBits = decltype(std::declval<CCSPredictionEvent_PlayerTeleport>()._impl_._has_bits_);
static void set_has_relative(HasBits* has_bits) {
(*has_bits)[0] |= 8u;
}
static const ::CMsgVector& origin(const CCSPredictionEvent_PlayerTeleport* msg);
static void set_has_origin(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
static const ::CMsgQAngle& angles(const CCSPredictionEvent_PlayerTeleport* msg);
static void set_has_angles(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
static const ::CMsgVector& velocity(const CCSPredictionEvent_PlayerTeleport* msg);
static void set_has_velocity(HasBits* has_bits) {
(*has_bits)[0] |= 4u;
}
};
const ::CMsgVector&
CCSPredictionEvent_PlayerTeleport::_Internal::origin(const CCSPredictionEvent_PlayerTeleport* msg) {
return *msg->_impl_.origin_;
}
const ::CMsgQAngle&
CCSPredictionEvent_PlayerTeleport::_Internal::angles(const CCSPredictionEvent_PlayerTeleport* msg) {
return *msg->_impl_.angles_;
}
const ::CMsgVector&
CCSPredictionEvent_PlayerTeleport::_Internal::velocity(const CCSPredictionEvent_PlayerTeleport* msg) {
return *msg->_impl_.velocity_;
}
void CCSPredictionEvent_PlayerTeleport::clear_origin() {
if (_impl_.origin_ != nullptr) _impl_.origin_->Clear();
_impl_._has_bits_[0] &= ~0x00000001u;
}
void CCSPredictionEvent_PlayerTeleport::clear_angles() {
if (_impl_.angles_ != nullptr) _impl_.angles_->Clear();
_impl_._has_bits_[0] &= ~0x00000002u;
}
void CCSPredictionEvent_PlayerTeleport::clear_velocity() {
if (_impl_.velocity_ != nullptr) _impl_.velocity_->Clear();
_impl_._has_bits_[0] &= ~0x00000004u;
}
CCSPredictionEvent_PlayerTeleport::CCSPredictionEvent_PlayerTeleport(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:CCSPredictionEvent_PlayerTeleport)
}
CCSPredictionEvent_PlayerTeleport::CCSPredictionEvent_PlayerTeleport(const CCSPredictionEvent_PlayerTeleport& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
CCSPredictionEvent_PlayerTeleport* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){from._impl_._has_bits_}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.origin_){nullptr}
, decltype(_impl_.angles_){nullptr}
, decltype(_impl_.velocity_){nullptr}
, decltype(_impl_.relative_){}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_origin()) {
_this->_impl_.origin_ = new ::CMsgVector(*from._impl_.origin_);
}
if (from._internal_has_angles()) {
_this->_impl_.angles_ = new ::CMsgQAngle(*from._impl_.angles_);
}
if (from._internal_has_velocity()) {
_this->_impl_.velocity_ = new ::CMsgVector(*from._impl_.velocity_);
}
_this->_impl_.relative_ = from._impl_.relative_;
// @@protoc_insertion_point(copy_constructor:CCSPredictionEvent_PlayerTeleport)
}
inline void CCSPredictionEvent_PlayerTeleport::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.origin_){nullptr}
, decltype(_impl_.angles_){nullptr}
, decltype(_impl_.velocity_){nullptr}
, decltype(_impl_.relative_){false}
};
}
CCSPredictionEvent_PlayerTeleport::~CCSPredictionEvent_PlayerTeleport() {
// @@protoc_insertion_point(destructor:CCSPredictionEvent_PlayerTeleport)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void CCSPredictionEvent_PlayerTeleport::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.origin_;
if (this != internal_default_instance()) delete _impl_.angles_;
if (this != internal_default_instance()) delete _impl_.velocity_;
}
void CCSPredictionEvent_PlayerTeleport::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void CCSPredictionEvent_PlayerTeleport::Clear() {
// @@protoc_insertion_point(message_clear_start:CCSPredictionEvent_PlayerTeleport)
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) {
GOOGLE_DCHECK(_impl_.origin_ != nullptr);
_impl_.origin_->Clear();
}
if (cached_has_bits & 0x00000002u) {
GOOGLE_DCHECK(_impl_.angles_ != nullptr);
_impl_.angles_->Clear();
}
if (cached_has_bits & 0x00000004u) {
GOOGLE_DCHECK(_impl_.velocity_ != nullptr);
_impl_.velocity_->Clear();
}
}
_impl_.relative_ = false;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* CCSPredictionEvent_PlayerTeleport::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional bool relative = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_Internal::set_has_relative(&has_bits);
_impl_.relative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .CMsgVector origin = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_origin(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .CMsgQAngle angles = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_angles(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .CMsgVector velocity = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
ptr = ctx->ParseMessage(_internal_mutable_velocity(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* CCSPredictionEvent_PlayerTeleport::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:CCSPredictionEvent_PlayerTeleport)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
// optional bool relative = 1;
if (cached_has_bits & 0x00000008u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_relative(), target);
}
// optional .CMsgVector origin = 2;
if (cached_has_bits & 0x00000001u) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(2, _Internal::origin(this),
_Internal::origin(this).GetCachedSize(), target, stream);
}
// optional .CMsgQAngle angles = 3;
if (cached_has_bits & 0x00000002u) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::angles(this),
_Internal::angles(this).GetCachedSize(), target, stream);
}
// optional .CMsgVector velocity = 4;
if (cached_has_bits & 0x00000004u) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(4, _Internal::velocity(this),
_Internal::velocity(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:CCSPredictionEvent_PlayerTeleport)
return target;
}
size_t CCSPredictionEvent_PlayerTeleport::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:CCSPredictionEvent_PlayerTeleport)
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 .CMsgVector origin = 2;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.origin_);
}
// optional .CMsgQAngle angles = 3;
if (cached_has_bits & 0x00000002u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.angles_);
}
// optional .CMsgVector velocity = 4;
if (cached_has_bits & 0x00000004u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.velocity_);
}
// optional bool relative = 1;
if (cached_has_bits & 0x00000008u) {
total_size += 1 + 1;
}
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSPredictionEvent_PlayerTeleport::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
CCSPredictionEvent_PlayerTeleport::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSPredictionEvent_PlayerTeleport::GetClassData() const { return &_class_data_; }
void CCSPredictionEvent_PlayerTeleport::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<CCSPredictionEvent_PlayerTeleport*>(&to_msg);
auto& from = static_cast<const CCSPredictionEvent_PlayerTeleport&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:CCSPredictionEvent_PlayerTeleport)
GOOGLE_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->_internal_mutable_origin()->::CMsgVector::MergeFrom(
from._internal_origin());
}
if (cached_has_bits & 0x00000002u) {
_this->_internal_mutable_angles()->::CMsgQAngle::MergeFrom(
from._internal_angles());
}
if (cached_has_bits & 0x00000004u) {
_this->_internal_mutable_velocity()->::CMsgVector::MergeFrom(
from._internal_velocity());
}
if (cached_has_bits & 0x00000008u) {
_this->_impl_.relative_ = from._impl_.relative_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void CCSPredictionEvent_PlayerTeleport::CopyFrom(const CCSPredictionEvent_PlayerTeleport& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:CCSPredictionEvent_PlayerTeleport)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CCSPredictionEvent_PlayerTeleport::IsInitialized() const {
return true;
}
void CCSPredictionEvent_PlayerTeleport::InternalSwap(CCSPredictionEvent_PlayerTeleport* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(CCSPredictionEvent_PlayerTeleport, _impl_.relative_)
+ sizeof(CCSPredictionEvent_PlayerTeleport::_impl_.relative_)
- PROTOBUF_FIELD_OFFSET(CCSPredictionEvent_PlayerTeleport, _impl_.origin_)>(
reinterpret_cast<char*>(&_impl_.origin_),
reinterpret_cast<char*>(&other->_impl_.origin_));
}
::PROTOBUF_NAMESPACE_ID::Metadata CCSPredictionEvent_PlayerTeleport::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_cs_5fprediction_5fevents_2eproto_getter, &descriptor_table_cs_5fprediction_5fevents_2eproto_once,
file_level_metadata_cs_5fprediction_5fevents_2eproto[1]);
}
// @@protoc_insertion_point(namespace_scope)
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::CCSPredictionEvent_DamageTag*
Arena::CreateMaybeMessage< ::CCSPredictionEvent_DamageTag >(Arena* arena) {
return Arena::CreateMessageInternal< ::CCSPredictionEvent_DamageTag >(arena);
}
template<> PROTOBUF_NOINLINE ::CCSPredictionEvent_PlayerTeleport*
Arena::CreateMaybeMessage< ::CCSPredictionEvent_PlayerTeleport >(Arena* arena) {
return Arena::CreateMessageInternal< ::CCSPredictionEvent_PlayerTeleport >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
@@ -0,0 +1,904 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cs_prediction_events.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_cs_5fprediction_5fevents_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_cs_5fprediction_5fevents_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#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
#if 3021008 < 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
#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_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>
#include "networkbasetypes.pb.h"
#include "prediction_events.pb.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_cs_5fprediction_5fevents_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_cs_5fprediction_5fevents_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_cs_5fprediction_5fevents_2eproto;
class CCSPredictionEvent_DamageTag;
struct CCSPredictionEvent_DamageTagDefaultTypeInternal;
extern CCSPredictionEvent_DamageTagDefaultTypeInternal _CCSPredictionEvent_DamageTag_default_instance_;
class CCSPredictionEvent_PlayerTeleport;
struct CCSPredictionEvent_PlayerTeleportDefaultTypeInternal;
extern CCSPredictionEvent_PlayerTeleportDefaultTypeInternal _CCSPredictionEvent_PlayerTeleport_default_instance_;
PROTOBUF_NAMESPACE_OPEN
template<> ::CCSPredictionEvent_DamageTag* Arena::CreateMaybeMessage<::CCSPredictionEvent_DamageTag>(Arena*);
template<> ::CCSPredictionEvent_PlayerTeleport* Arena::CreateMaybeMessage<::CCSPredictionEvent_PlayerTeleport>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
enum ECSPredictionEvents : int {
CSPE_DamageTag = 1,
CSPE_PlayerTeleport = 3
};
bool ECSPredictionEvents_IsValid(int value);
constexpr ECSPredictionEvents ECSPredictionEvents_MIN = CSPE_DamageTag;
constexpr ECSPredictionEvents ECSPredictionEvents_MAX = CSPE_PlayerTeleport;
constexpr int ECSPredictionEvents_ARRAYSIZE = ECSPredictionEvents_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ECSPredictionEvents_descriptor();
template<typename T>
inline const std::string& ECSPredictionEvents_Name(T enum_t_value) {
static_assert(::std::is_same<T, ECSPredictionEvents>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ECSPredictionEvents_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
ECSPredictionEvents_descriptor(), enum_t_value);
}
inline bool ECSPredictionEvents_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ECSPredictionEvents* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ECSPredictionEvents>(
ECSPredictionEvents_descriptor(), name, value);
}
// ===================================================================
class CCSPredictionEvent_DamageTag final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:CCSPredictionEvent_DamageTag) */ {
public:
inline CCSPredictionEvent_DamageTag() : CCSPredictionEvent_DamageTag(nullptr) {}
~CCSPredictionEvent_DamageTag() override;
explicit PROTOBUF_CONSTEXPR CCSPredictionEvent_DamageTag(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
CCSPredictionEvent_DamageTag(const CCSPredictionEvent_DamageTag& from);
CCSPredictionEvent_DamageTag(CCSPredictionEvent_DamageTag&& from) noexcept
: CCSPredictionEvent_DamageTag() {
*this = ::std::move(from);
}
inline CCSPredictionEvent_DamageTag& operator=(const CCSPredictionEvent_DamageTag& from) {
CopyFrom(from);
return *this;
}
inline CCSPredictionEvent_DamageTag& operator=(CCSPredictionEvent_DamageTag&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
}
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const CCSPredictionEvent_DamageTag& default_instance() {
return *internal_default_instance();
}
static inline const CCSPredictionEvent_DamageTag* internal_default_instance() {
return reinterpret_cast<const CCSPredictionEvent_DamageTag*>(
&_CCSPredictionEvent_DamageTag_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(CCSPredictionEvent_DamageTag& a, CCSPredictionEvent_DamageTag& b) {
a.Swap(&b);
}
inline void Swap(CCSPredictionEvent_DamageTag* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(CCSPredictionEvent_DamageTag* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
CCSPredictionEvent_DamageTag* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<CCSPredictionEvent_DamageTag>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const CCSPredictionEvent_DamageTag& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const CCSPredictionEvent_DamageTag& from) {
CCSPredictionEvent_DamageTag::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(CCSPredictionEvent_DamageTag* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "CCSPredictionEvent_DamageTag";
}
protected:
explicit CCSPredictionEvent_DamageTag(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kFlinchModSmallFieldNumber = 1,
kFlinchModLargeFieldNumber = 2,
kFriendlyFireDamageReductionRatioFieldNumber = 3,
};
// optional float flinch_mod_small = 1;
bool has_flinch_mod_small() const;
private:
bool _internal_has_flinch_mod_small() const;
public:
void clear_flinch_mod_small();
float flinch_mod_small() const;
void set_flinch_mod_small(float value);
private:
float _internal_flinch_mod_small() const;
void _internal_set_flinch_mod_small(float value);
public:
// optional float flinch_mod_large = 2;
bool has_flinch_mod_large() const;
private:
bool _internal_has_flinch_mod_large() const;
public:
void clear_flinch_mod_large();
float flinch_mod_large() const;
void set_flinch_mod_large(float value);
private:
float _internal_flinch_mod_large() const;
void _internal_set_flinch_mod_large(float value);
public:
// optional float friendly_fire_damage_reduction_ratio = 3;
bool has_friendly_fire_damage_reduction_ratio() const;
private:
bool _internal_has_friendly_fire_damage_reduction_ratio() const;
public:
void clear_friendly_fire_damage_reduction_ratio();
float friendly_fire_damage_reduction_ratio() const;
void set_friendly_fire_damage_reduction_ratio(float value);
private:
float _internal_friendly_fire_damage_reduction_ratio() const;
void _internal_set_friendly_fire_damage_reduction_ratio(float value);
public:
// @@protoc_insertion_point(class_scope:CCSPredictionEvent_DamageTag)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
float flinch_mod_small_;
float flinch_mod_large_;
float friendly_fire_damage_reduction_ratio_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_cs_5fprediction_5fevents_2eproto;
};
// -------------------------------------------------------------------
class CCSPredictionEvent_PlayerTeleport final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:CCSPredictionEvent_PlayerTeleport) */ {
public:
inline CCSPredictionEvent_PlayerTeleport() : CCSPredictionEvent_PlayerTeleport(nullptr) {}
~CCSPredictionEvent_PlayerTeleport() override;
explicit PROTOBUF_CONSTEXPR CCSPredictionEvent_PlayerTeleport(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
CCSPredictionEvent_PlayerTeleport(const CCSPredictionEvent_PlayerTeleport& from);
CCSPredictionEvent_PlayerTeleport(CCSPredictionEvent_PlayerTeleport&& from) noexcept
: CCSPredictionEvent_PlayerTeleport() {
*this = ::std::move(from);
}
inline CCSPredictionEvent_PlayerTeleport& operator=(const CCSPredictionEvent_PlayerTeleport& from) {
CopyFrom(from);
return *this;
}
inline CCSPredictionEvent_PlayerTeleport& operator=(CCSPredictionEvent_PlayerTeleport&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
}
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const CCSPredictionEvent_PlayerTeleport& default_instance() {
return *internal_default_instance();
}
static inline const CCSPredictionEvent_PlayerTeleport* internal_default_instance() {
return reinterpret_cast<const CCSPredictionEvent_PlayerTeleport*>(
&_CCSPredictionEvent_PlayerTeleport_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(CCSPredictionEvent_PlayerTeleport& a, CCSPredictionEvent_PlayerTeleport& b) {
a.Swap(&b);
}
inline void Swap(CCSPredictionEvent_PlayerTeleport* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(CCSPredictionEvent_PlayerTeleport* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
CCSPredictionEvent_PlayerTeleport* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<CCSPredictionEvent_PlayerTeleport>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const CCSPredictionEvent_PlayerTeleport& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const CCSPredictionEvent_PlayerTeleport& from) {
CCSPredictionEvent_PlayerTeleport::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(CCSPredictionEvent_PlayerTeleport* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "CCSPredictionEvent_PlayerTeleport";
}
protected:
explicit CCSPredictionEvent_PlayerTeleport(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kOriginFieldNumber = 2,
kAnglesFieldNumber = 3,
kVelocityFieldNumber = 4,
kRelativeFieldNumber = 1,
};
// optional .CMsgVector origin = 2;
bool has_origin() const;
private:
bool _internal_has_origin() const;
public:
void clear_origin();
const ::CMsgVector& origin() const;
PROTOBUF_NODISCARD ::CMsgVector* release_origin();
::CMsgVector* mutable_origin();
void set_allocated_origin(::CMsgVector* origin);
private:
const ::CMsgVector& _internal_origin() const;
::CMsgVector* _internal_mutable_origin();
public:
void unsafe_arena_set_allocated_origin(
::CMsgVector* origin);
::CMsgVector* unsafe_arena_release_origin();
// optional .CMsgQAngle angles = 3;
bool has_angles() const;
private:
bool _internal_has_angles() const;
public:
void clear_angles();
const ::CMsgQAngle& angles() const;
PROTOBUF_NODISCARD ::CMsgQAngle* release_angles();
::CMsgQAngle* mutable_angles();
void set_allocated_angles(::CMsgQAngle* angles);
private:
const ::CMsgQAngle& _internal_angles() const;
::CMsgQAngle* _internal_mutable_angles();
public:
void unsafe_arena_set_allocated_angles(
::CMsgQAngle* angles);
::CMsgQAngle* unsafe_arena_release_angles();
// optional .CMsgVector velocity = 4;
bool has_velocity() const;
private:
bool _internal_has_velocity() const;
public:
void clear_velocity();
const ::CMsgVector& velocity() const;
PROTOBUF_NODISCARD ::CMsgVector* release_velocity();
::CMsgVector* mutable_velocity();
void set_allocated_velocity(::CMsgVector* velocity);
private:
const ::CMsgVector& _internal_velocity() const;
::CMsgVector* _internal_mutable_velocity();
public:
void unsafe_arena_set_allocated_velocity(
::CMsgVector* velocity);
::CMsgVector* unsafe_arena_release_velocity();
// optional bool relative = 1;
bool has_relative() const;
private:
bool _internal_has_relative() const;
public:
void clear_relative();
bool relative() const;
void set_relative(bool value);
private:
bool _internal_relative() const;
void _internal_set_relative(bool value);
public:
// @@protoc_insertion_point(class_scope:CCSPredictionEvent_PlayerTeleport)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::CMsgVector* origin_;
::CMsgQAngle* angles_;
::CMsgVector* velocity_;
bool relative_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_cs_5fprediction_5fevents_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// CCSPredictionEvent_DamageTag
// optional float flinch_mod_small = 1;
inline bool CCSPredictionEvent_DamageTag::_internal_has_flinch_mod_small() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline bool CCSPredictionEvent_DamageTag::has_flinch_mod_small() const {
return _internal_has_flinch_mod_small();
}
inline void CCSPredictionEvent_DamageTag::clear_flinch_mod_small() {
_impl_.flinch_mod_small_ = 0;
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline float CCSPredictionEvent_DamageTag::_internal_flinch_mod_small() const {
return _impl_.flinch_mod_small_;
}
inline float CCSPredictionEvent_DamageTag::flinch_mod_small() const {
// @@protoc_insertion_point(field_get:CCSPredictionEvent_DamageTag.flinch_mod_small)
return _internal_flinch_mod_small();
}
inline void CCSPredictionEvent_DamageTag::_internal_set_flinch_mod_small(float value) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.flinch_mod_small_ = value;
}
inline void CCSPredictionEvent_DamageTag::set_flinch_mod_small(float value) {
_internal_set_flinch_mod_small(value);
// @@protoc_insertion_point(field_set:CCSPredictionEvent_DamageTag.flinch_mod_small)
}
// optional float flinch_mod_large = 2;
inline bool CCSPredictionEvent_DamageTag::_internal_has_flinch_mod_large() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline bool CCSPredictionEvent_DamageTag::has_flinch_mod_large() const {
return _internal_has_flinch_mod_large();
}
inline void CCSPredictionEvent_DamageTag::clear_flinch_mod_large() {
_impl_.flinch_mod_large_ = 0;
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline float CCSPredictionEvent_DamageTag::_internal_flinch_mod_large() const {
return _impl_.flinch_mod_large_;
}
inline float CCSPredictionEvent_DamageTag::flinch_mod_large() const {
// @@protoc_insertion_point(field_get:CCSPredictionEvent_DamageTag.flinch_mod_large)
return _internal_flinch_mod_large();
}
inline void CCSPredictionEvent_DamageTag::_internal_set_flinch_mod_large(float value) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.flinch_mod_large_ = value;
}
inline void CCSPredictionEvent_DamageTag::set_flinch_mod_large(float value) {
_internal_set_flinch_mod_large(value);
// @@protoc_insertion_point(field_set:CCSPredictionEvent_DamageTag.flinch_mod_large)
}
// optional float friendly_fire_damage_reduction_ratio = 3;
inline bool CCSPredictionEvent_DamageTag::_internal_has_friendly_fire_damage_reduction_ratio() const {
bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
return value;
}
inline bool CCSPredictionEvent_DamageTag::has_friendly_fire_damage_reduction_ratio() const {
return _internal_has_friendly_fire_damage_reduction_ratio();
}
inline void CCSPredictionEvent_DamageTag::clear_friendly_fire_damage_reduction_ratio() {
_impl_.friendly_fire_damage_reduction_ratio_ = 0;
_impl_._has_bits_[0] &= ~0x00000004u;
}
inline float CCSPredictionEvent_DamageTag::_internal_friendly_fire_damage_reduction_ratio() const {
return _impl_.friendly_fire_damage_reduction_ratio_;
}
inline float CCSPredictionEvent_DamageTag::friendly_fire_damage_reduction_ratio() const {
// @@protoc_insertion_point(field_get:CCSPredictionEvent_DamageTag.friendly_fire_damage_reduction_ratio)
return _internal_friendly_fire_damage_reduction_ratio();
}
inline void CCSPredictionEvent_DamageTag::_internal_set_friendly_fire_damage_reduction_ratio(float value) {
_impl_._has_bits_[0] |= 0x00000004u;
_impl_.friendly_fire_damage_reduction_ratio_ = value;
}
inline void CCSPredictionEvent_DamageTag::set_friendly_fire_damage_reduction_ratio(float value) {
_internal_set_friendly_fire_damage_reduction_ratio(value);
// @@protoc_insertion_point(field_set:CCSPredictionEvent_DamageTag.friendly_fire_damage_reduction_ratio)
}
// -------------------------------------------------------------------
// CCSPredictionEvent_PlayerTeleport
// optional bool relative = 1;
inline bool CCSPredictionEvent_PlayerTeleport::_internal_has_relative() const {
bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
return value;
}
inline bool CCSPredictionEvent_PlayerTeleport::has_relative() const {
return _internal_has_relative();
}
inline void CCSPredictionEvent_PlayerTeleport::clear_relative() {
_impl_.relative_ = false;
_impl_._has_bits_[0] &= ~0x00000008u;
}
inline bool CCSPredictionEvent_PlayerTeleport::_internal_relative() const {
return _impl_.relative_;
}
inline bool CCSPredictionEvent_PlayerTeleport::relative() const {
// @@protoc_insertion_point(field_get:CCSPredictionEvent_PlayerTeleport.relative)
return _internal_relative();
}
inline void CCSPredictionEvent_PlayerTeleport::_internal_set_relative(bool value) {
_impl_._has_bits_[0] |= 0x00000008u;
_impl_.relative_ = value;
}
inline void CCSPredictionEvent_PlayerTeleport::set_relative(bool value) {
_internal_set_relative(value);
// @@protoc_insertion_point(field_set:CCSPredictionEvent_PlayerTeleport.relative)
}
// optional .CMsgVector origin = 2;
inline bool CCSPredictionEvent_PlayerTeleport::_internal_has_origin() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
PROTOBUF_ASSUME(!value || _impl_.origin_ != nullptr);
return value;
}
inline bool CCSPredictionEvent_PlayerTeleport::has_origin() const {
return _internal_has_origin();
}
inline const ::CMsgVector& CCSPredictionEvent_PlayerTeleport::_internal_origin() const {
const ::CMsgVector* p = _impl_.origin_;
return p != nullptr ? *p : reinterpret_cast<const ::CMsgVector&>(
::_CMsgVector_default_instance_);
}
inline const ::CMsgVector& CCSPredictionEvent_PlayerTeleport::origin() const {
// @@protoc_insertion_point(field_get:CCSPredictionEvent_PlayerTeleport.origin)
return _internal_origin();
}
inline void CCSPredictionEvent_PlayerTeleport::unsafe_arena_set_allocated_origin(
::CMsgVector* origin) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.origin_);
}
_impl_.origin_ = origin;
if (origin) {
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:CCSPredictionEvent_PlayerTeleport.origin)
}
inline ::CMsgVector* CCSPredictionEvent_PlayerTeleport::release_origin() {
_impl_._has_bits_[0] &= ~0x00000001u;
::CMsgVector* temp = _impl_.origin_;
_impl_.origin_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::CMsgVector* CCSPredictionEvent_PlayerTeleport::unsafe_arena_release_origin() {
// @@protoc_insertion_point(field_release:CCSPredictionEvent_PlayerTeleport.origin)
_impl_._has_bits_[0] &= ~0x00000001u;
::CMsgVector* temp = _impl_.origin_;
_impl_.origin_ = nullptr;
return temp;
}
inline ::CMsgVector* CCSPredictionEvent_PlayerTeleport::_internal_mutable_origin() {
_impl_._has_bits_[0] |= 0x00000001u;
if (_impl_.origin_ == nullptr) {
auto* p = CreateMaybeMessage<::CMsgVector>(GetArenaForAllocation());
_impl_.origin_ = p;
}
return _impl_.origin_;
}
inline ::CMsgVector* CCSPredictionEvent_PlayerTeleport::mutable_origin() {
::CMsgVector* _msg = _internal_mutable_origin();
// @@protoc_insertion_point(field_mutable:CCSPredictionEvent_PlayerTeleport.origin)
return _msg;
}
inline void CCSPredictionEvent_PlayerTeleport::set_allocated_origin(::CMsgVector* origin) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.origin_);
}
if (origin) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(origin));
if (message_arena != submessage_arena) {
origin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, origin, submessage_arena);
}
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
_impl_.origin_ = origin;
// @@protoc_insertion_point(field_set_allocated:CCSPredictionEvent_PlayerTeleport.origin)
}
// optional .CMsgQAngle angles = 3;
inline bool CCSPredictionEvent_PlayerTeleport::_internal_has_angles() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
PROTOBUF_ASSUME(!value || _impl_.angles_ != nullptr);
return value;
}
inline bool CCSPredictionEvent_PlayerTeleport::has_angles() const {
return _internal_has_angles();
}
inline const ::CMsgQAngle& CCSPredictionEvent_PlayerTeleport::_internal_angles() const {
const ::CMsgQAngle* p = _impl_.angles_;
return p != nullptr ? *p : reinterpret_cast<const ::CMsgQAngle&>(
::_CMsgQAngle_default_instance_);
}
inline const ::CMsgQAngle& CCSPredictionEvent_PlayerTeleport::angles() const {
// @@protoc_insertion_point(field_get:CCSPredictionEvent_PlayerTeleport.angles)
return _internal_angles();
}
inline void CCSPredictionEvent_PlayerTeleport::unsafe_arena_set_allocated_angles(
::CMsgQAngle* angles) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.angles_);
}
_impl_.angles_ = angles;
if (angles) {
_impl_._has_bits_[0] |= 0x00000002u;
} else {
_impl_._has_bits_[0] &= ~0x00000002u;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:CCSPredictionEvent_PlayerTeleport.angles)
}
inline ::CMsgQAngle* CCSPredictionEvent_PlayerTeleport::release_angles() {
_impl_._has_bits_[0] &= ~0x00000002u;
::CMsgQAngle* temp = _impl_.angles_;
_impl_.angles_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::CMsgQAngle* CCSPredictionEvent_PlayerTeleport::unsafe_arena_release_angles() {
// @@protoc_insertion_point(field_release:CCSPredictionEvent_PlayerTeleport.angles)
_impl_._has_bits_[0] &= ~0x00000002u;
::CMsgQAngle* temp = _impl_.angles_;
_impl_.angles_ = nullptr;
return temp;
}
inline ::CMsgQAngle* CCSPredictionEvent_PlayerTeleport::_internal_mutable_angles() {
_impl_._has_bits_[0] |= 0x00000002u;
if (_impl_.angles_ == nullptr) {
auto* p = CreateMaybeMessage<::CMsgQAngle>(GetArenaForAllocation());
_impl_.angles_ = p;
}
return _impl_.angles_;
}
inline ::CMsgQAngle* CCSPredictionEvent_PlayerTeleport::mutable_angles() {
::CMsgQAngle* _msg = _internal_mutable_angles();
// @@protoc_insertion_point(field_mutable:CCSPredictionEvent_PlayerTeleport.angles)
return _msg;
}
inline void CCSPredictionEvent_PlayerTeleport::set_allocated_angles(::CMsgQAngle* angles) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.angles_);
}
if (angles) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angles));
if (message_arena != submessage_arena) {
angles = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, angles, submessage_arena);
}
_impl_._has_bits_[0] |= 0x00000002u;
} else {
_impl_._has_bits_[0] &= ~0x00000002u;
}
_impl_.angles_ = angles;
// @@protoc_insertion_point(field_set_allocated:CCSPredictionEvent_PlayerTeleport.angles)
}
// optional .CMsgVector velocity = 4;
inline bool CCSPredictionEvent_PlayerTeleport::_internal_has_velocity() const {
bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
PROTOBUF_ASSUME(!value || _impl_.velocity_ != nullptr);
return value;
}
inline bool CCSPredictionEvent_PlayerTeleport::has_velocity() const {
return _internal_has_velocity();
}
inline const ::CMsgVector& CCSPredictionEvent_PlayerTeleport::_internal_velocity() const {
const ::CMsgVector* p = _impl_.velocity_;
return p != nullptr ? *p : reinterpret_cast<const ::CMsgVector&>(
::_CMsgVector_default_instance_);
}
inline const ::CMsgVector& CCSPredictionEvent_PlayerTeleport::velocity() const {
// @@protoc_insertion_point(field_get:CCSPredictionEvent_PlayerTeleport.velocity)
return _internal_velocity();
}
inline void CCSPredictionEvent_PlayerTeleport::unsafe_arena_set_allocated_velocity(
::CMsgVector* velocity) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.velocity_);
}
_impl_.velocity_ = velocity;
if (velocity) {
_impl_._has_bits_[0] |= 0x00000004u;
} else {
_impl_._has_bits_[0] &= ~0x00000004u;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:CCSPredictionEvent_PlayerTeleport.velocity)
}
inline ::CMsgVector* CCSPredictionEvent_PlayerTeleport::release_velocity() {
_impl_._has_bits_[0] &= ~0x00000004u;
::CMsgVector* temp = _impl_.velocity_;
_impl_.velocity_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::CMsgVector* CCSPredictionEvent_PlayerTeleport::unsafe_arena_release_velocity() {
// @@protoc_insertion_point(field_release:CCSPredictionEvent_PlayerTeleport.velocity)
_impl_._has_bits_[0] &= ~0x00000004u;
::CMsgVector* temp = _impl_.velocity_;
_impl_.velocity_ = nullptr;
return temp;
}
inline ::CMsgVector* CCSPredictionEvent_PlayerTeleport::_internal_mutable_velocity() {
_impl_._has_bits_[0] |= 0x00000004u;
if (_impl_.velocity_ == nullptr) {
auto* p = CreateMaybeMessage<::CMsgVector>(GetArenaForAllocation());
_impl_.velocity_ = p;
}
return _impl_.velocity_;
}
inline ::CMsgVector* CCSPredictionEvent_PlayerTeleport::mutable_velocity() {
::CMsgVector* _msg = _internal_mutable_velocity();
// @@protoc_insertion_point(field_mutable:CCSPredictionEvent_PlayerTeleport.velocity)
return _msg;
}
inline void CCSPredictionEvent_PlayerTeleport::set_allocated_velocity(::CMsgVector* velocity) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.velocity_);
}
if (velocity) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(velocity));
if (message_arena != submessage_arena) {
velocity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, velocity, submessage_arena);
}
_impl_._has_bits_[0] |= 0x00000004u;
} else {
_impl_._has_bits_[0] &= ~0x00000004u;
}
_impl_.velocity_ = velocity;
// @@protoc_insertion_point(field_set_allocated:CCSPredictionEvent_PlayerTeleport.velocity)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
PROTOBUF_NAMESPACE_OPEN
template <> struct is_proto_enum< ::ECSPredictionEvents> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::ECSPredictionEvents>() {
return ::ECSPredictionEvents_descriptor();
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_cs_5fprediction_5fevents_2eproto
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,595 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: engine_gcmessages.proto
#include "engine_gcmessages.pb.h"
#include <algorithm>
#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>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
PROTOBUF_CONSTEXPR CEngineGotvSyncPacket::CEngineGotvSyncPacket(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_._has_bits_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_.match_id_)*/uint64_t{0u}
, /*decltype(_impl_.instance_id_)*/0u
, /*decltype(_impl_.signupfragment_)*/0u
, /*decltype(_impl_.currentfragment_)*/0u
, /*decltype(_impl_.tickrate_)*/0
, /*decltype(_impl_.tick_)*/0u
, /*decltype(_impl_.rtdelay_)*/0
, /*decltype(_impl_.rcvage_)*/0
, /*decltype(_impl_.keyframe_interval_)*/0
, /*decltype(_impl_.cdndelay_)*/0u} {}
struct CEngineGotvSyncPacketDefaultTypeInternal {
PROTOBUF_CONSTEXPR CEngineGotvSyncPacketDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~CEngineGotvSyncPacketDefaultTypeInternal() {}
union {
CEngineGotvSyncPacket _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CEngineGotvSyncPacketDefaultTypeInternal _CEngineGotvSyncPacket_default_instance_;
static ::_pb::Metadata file_level_metadata_engine_5fgcmessages_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_engine_5fgcmessages_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_engine_5fgcmessages_2eproto = nullptr;
const uint32_t TableStruct_engine_5fgcmessages_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_.match_id_),
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_.instance_id_),
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_.signupfragment_),
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_.currentfragment_),
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_.tickrate_),
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_.tick_),
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_.rtdelay_),
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_.rcvage_),
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_.keyframe_interval_),
PROTOBUF_FIELD_OFFSET(::CEngineGotvSyncPacket, _impl_.cdndelay_),
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 16, -1, sizeof(::CEngineGotvSyncPacket)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::_CEngineGotvSyncPacket_default_instance_._instance,
};
const char descriptor_table_protodef_engine_5fgcmessages_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\027engine_gcmessages.proto\032 google/protob"
"uf/descriptor.proto\"\335\001\n\025CEngineGotvSyncP"
"acket\022\020\n\010match_id\030\001 \001(\004\022\023\n\013instance_id\030\002"
" \001(\r\022\026\n\016signupfragment\030\003 \001(\r\022\027\n\017currentf"
"ragment\030\004 \001(\r\022\020\n\010tickrate\030\005 \001(\002\022\014\n\004tick\030"
"\006 \001(\r\022\017\n\007rtdelay\030\010 \001(\002\022\016\n\006rcvage\030\t \001(\002\022\031"
"\n\021keyframe_interval\030\n \001(\002\022\020\n\010cdndelay\030\013 "
"\001(\r"
;
static const ::_pbi::DescriptorTable* const descriptor_table_engine_5fgcmessages_2eproto_deps[1] = {
&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,
};
static ::_pbi::once_flag descriptor_table_engine_5fgcmessages_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_engine_5fgcmessages_2eproto = {
false, false, 283, descriptor_table_protodef_engine_5fgcmessages_2eproto,
"engine_gcmessages.proto",
&descriptor_table_engine_5fgcmessages_2eproto_once, descriptor_table_engine_5fgcmessages_2eproto_deps, 1, 1,
schemas, file_default_instances, TableStruct_engine_5fgcmessages_2eproto::offsets,
file_level_metadata_engine_5fgcmessages_2eproto, file_level_enum_descriptors_engine_5fgcmessages_2eproto,
file_level_service_descriptors_engine_5fgcmessages_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_engine_5fgcmessages_2eproto_getter() {
return &descriptor_table_engine_5fgcmessages_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_engine_5fgcmessages_2eproto(&descriptor_table_engine_5fgcmessages_2eproto);
// ===================================================================
class CEngineGotvSyncPacket::_Internal {
public:
using HasBits = decltype(std::declval<CEngineGotvSyncPacket>()._impl_._has_bits_);
static void set_has_match_id(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
static void set_has_instance_id(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
static void set_has_signupfragment(HasBits* has_bits) {
(*has_bits)[0] |= 4u;
}
static void set_has_currentfragment(HasBits* has_bits) {
(*has_bits)[0] |= 8u;
}
static void set_has_tickrate(HasBits* has_bits) {
(*has_bits)[0] |= 16u;
}
static void set_has_tick(HasBits* has_bits) {
(*has_bits)[0] |= 32u;
}
static void set_has_rtdelay(HasBits* has_bits) {
(*has_bits)[0] |= 64u;
}
static void set_has_rcvage(HasBits* has_bits) {
(*has_bits)[0] |= 128u;
}
static void set_has_keyframe_interval(HasBits* has_bits) {
(*has_bits)[0] |= 256u;
}
static void set_has_cdndelay(HasBits* has_bits) {
(*has_bits)[0] |= 512u;
}
};
CEngineGotvSyncPacket::CEngineGotvSyncPacket(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:CEngineGotvSyncPacket)
}
CEngineGotvSyncPacket::CEngineGotvSyncPacket(const CEngineGotvSyncPacket& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
CEngineGotvSyncPacket* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){from._impl_._has_bits_}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.match_id_){}
, decltype(_impl_.instance_id_){}
, decltype(_impl_.signupfragment_){}
, decltype(_impl_.currentfragment_){}
, decltype(_impl_.tickrate_){}
, decltype(_impl_.tick_){}
, decltype(_impl_.rtdelay_){}
, decltype(_impl_.rcvage_){}
, decltype(_impl_.keyframe_interval_){}
, decltype(_impl_.cdndelay_){}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&_impl_.match_id_, &from._impl_.match_id_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.cdndelay_) -
reinterpret_cast<char*>(&_impl_.match_id_)) + sizeof(_impl_.cdndelay_));
// @@protoc_insertion_point(copy_constructor:CEngineGotvSyncPacket)
}
inline void CEngineGotvSyncPacket::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.match_id_){uint64_t{0u}}
, decltype(_impl_.instance_id_){0u}
, decltype(_impl_.signupfragment_){0u}
, decltype(_impl_.currentfragment_){0u}
, decltype(_impl_.tickrate_){0}
, decltype(_impl_.tick_){0u}
, decltype(_impl_.rtdelay_){0}
, decltype(_impl_.rcvage_){0}
, decltype(_impl_.keyframe_interval_){0}
, decltype(_impl_.cdndelay_){0u}
};
}
CEngineGotvSyncPacket::~CEngineGotvSyncPacket() {
// @@protoc_insertion_point(destructor:CEngineGotvSyncPacket)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void CEngineGotvSyncPacket::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void CEngineGotvSyncPacket::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void CEngineGotvSyncPacket::Clear() {
// @@protoc_insertion_point(message_clear_start:CEngineGotvSyncPacket)
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 & 0x000000ffu) {
::memset(&_impl_.match_id_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.rcvage_) -
reinterpret_cast<char*>(&_impl_.match_id_)) + sizeof(_impl_.rcvage_));
}
if (cached_has_bits & 0x00000300u) {
::memset(&_impl_.keyframe_interval_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.cdndelay_) -
reinterpret_cast<char*>(&_impl_.keyframe_interval_)) + sizeof(_impl_.cdndelay_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* CEngineGotvSyncPacket::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional uint64 match_id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_Internal::set_has_match_id(&has_bits);
_impl_.match_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional uint32 instance_id = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_Internal::set_has_instance_id(&has_bits);
_impl_.instance_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional uint32 signupfragment = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
_Internal::set_has_signupfragment(&has_bits);
_impl_.signupfragment_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional uint32 currentfragment = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
_Internal::set_has_currentfragment(&has_bits);
_impl_.currentfragment_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional float tickrate = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
_Internal::set_has_tickrate(&has_bits);
_impl_.tickrate_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
ptr += sizeof(float);
} else
goto handle_unusual;
continue;
// optional uint32 tick = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
_Internal::set_has_tick(&has_bits);
_impl_.tick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional float rtdelay = 8;
case 8:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 69)) {
_Internal::set_has_rtdelay(&has_bits);
_impl_.rtdelay_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
ptr += sizeof(float);
} else
goto handle_unusual;
continue;
// optional float rcvage = 9;
case 9:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 77)) {
_Internal::set_has_rcvage(&has_bits);
_impl_.rcvage_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
ptr += sizeof(float);
} else
goto handle_unusual;
continue;
// optional float keyframe_interval = 10;
case 10:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 85)) {
_Internal::set_has_keyframe_interval(&has_bits);
_impl_.keyframe_interval_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
ptr += sizeof(float);
} else
goto handle_unusual;
continue;
// optional uint32 cdndelay = 11;
case 11:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
_Internal::set_has_cdndelay(&has_bits);
_impl_.cdndelay_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* CEngineGotvSyncPacket::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:CEngineGotvSyncPacket)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
// optional uint64 match_id = 1;
if (cached_has_bits & 0x00000001u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_match_id(), target);
}
// optional uint32 instance_id = 2;
if (cached_has_bits & 0x00000002u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_instance_id(), target);
}
// optional uint32 signupfragment = 3;
if (cached_has_bits & 0x00000004u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_signupfragment(), target);
}
// optional uint32 currentfragment = 4;
if (cached_has_bits & 0x00000008u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_currentfragment(), target);
}
// optional float tickrate = 5;
if (cached_has_bits & 0x00000010u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_tickrate(), target);
}
// optional uint32 tick = 6;
if (cached_has_bits & 0x00000020u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_tick(), target);
}
// optional float rtdelay = 8;
if (cached_has_bits & 0x00000040u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(8, this->_internal_rtdelay(), target);
}
// optional float rcvage = 9;
if (cached_has_bits & 0x00000080u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(9, this->_internal_rcvage(), target);
}
// optional float keyframe_interval = 10;
if (cached_has_bits & 0x00000100u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(10, this->_internal_keyframe_interval(), target);
}
// optional uint32 cdndelay = 11;
if (cached_has_bits & 0x00000200u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_cdndelay(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:CEngineGotvSyncPacket)
return target;
}
size_t CEngineGotvSyncPacket::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:CEngineGotvSyncPacket)
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 & 0x000000ffu) {
// optional uint64 match_id = 1;
if (cached_has_bits & 0x00000001u) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_match_id());
}
// optional uint32 instance_id = 2;
if (cached_has_bits & 0x00000002u) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_instance_id());
}
// optional uint32 signupfragment = 3;
if (cached_has_bits & 0x00000004u) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_signupfragment());
}
// optional uint32 currentfragment = 4;
if (cached_has_bits & 0x00000008u) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_currentfragment());
}
// optional float tickrate = 5;
if (cached_has_bits & 0x00000010u) {
total_size += 1 + 4;
}
// optional uint32 tick = 6;
if (cached_has_bits & 0x00000020u) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_tick());
}
// optional float rtdelay = 8;
if (cached_has_bits & 0x00000040u) {
total_size += 1 + 4;
}
// optional float rcvage = 9;
if (cached_has_bits & 0x00000080u) {
total_size += 1 + 4;
}
}
if (cached_has_bits & 0x00000300u) {
// optional float keyframe_interval = 10;
if (cached_has_bits & 0x00000100u) {
total_size += 1 + 4;
}
// optional uint32 cdndelay = 11;
if (cached_has_bits & 0x00000200u) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_cdndelay());
}
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CEngineGotvSyncPacket::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
CEngineGotvSyncPacket::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CEngineGotvSyncPacket::GetClassData() const { return &_class_data_; }
void CEngineGotvSyncPacket::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<CEngineGotvSyncPacket*>(&to_msg);
auto& from = static_cast<const CEngineGotvSyncPacket&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:CEngineGotvSyncPacket)
GOOGLE_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 & 0x000000ffu) {
if (cached_has_bits & 0x00000001u) {
_this->_impl_.match_id_ = from._impl_.match_id_;
}
if (cached_has_bits & 0x00000002u) {
_this->_impl_.instance_id_ = from._impl_.instance_id_;
}
if (cached_has_bits & 0x00000004u) {
_this->_impl_.signupfragment_ = from._impl_.signupfragment_;
}
if (cached_has_bits & 0x00000008u) {
_this->_impl_.currentfragment_ = from._impl_.currentfragment_;
}
if (cached_has_bits & 0x00000010u) {
_this->_impl_.tickrate_ = from._impl_.tickrate_;
}
if (cached_has_bits & 0x00000020u) {
_this->_impl_.tick_ = from._impl_.tick_;
}
if (cached_has_bits & 0x00000040u) {
_this->_impl_.rtdelay_ = from._impl_.rtdelay_;
}
if (cached_has_bits & 0x00000080u) {
_this->_impl_.rcvage_ = from._impl_.rcvage_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
}
if (cached_has_bits & 0x00000300u) {
if (cached_has_bits & 0x00000100u) {
_this->_impl_.keyframe_interval_ = from._impl_.keyframe_interval_;
}
if (cached_has_bits & 0x00000200u) {
_this->_impl_.cdndelay_ = from._impl_.cdndelay_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void CEngineGotvSyncPacket::CopyFrom(const CEngineGotvSyncPacket& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:CEngineGotvSyncPacket)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CEngineGotvSyncPacket::IsInitialized() const {
return true;
}
void CEngineGotvSyncPacket::InternalSwap(CEngineGotvSyncPacket* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(CEngineGotvSyncPacket, _impl_.cdndelay_)
+ sizeof(CEngineGotvSyncPacket::_impl_.cdndelay_)
- PROTOBUF_FIELD_OFFSET(CEngineGotvSyncPacket, _impl_.match_id_)>(
reinterpret_cast<char*>(&_impl_.match_id_),
reinterpret_cast<char*>(&other->_impl_.match_id_));
}
::PROTOBUF_NAMESPACE_ID::Metadata CEngineGotvSyncPacket::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_engine_5fgcmessages_2eproto_getter, &descriptor_table_engine_5fgcmessages_2eproto_once,
file_level_metadata_engine_5fgcmessages_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::CEngineGotvSyncPacket*
Arena::CreateMaybeMessage< ::CEngineGotvSyncPacket >(Arena* arena) {
return Arena::CreateMessageInternal< ::CEngineGotvSyncPacket >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
@@ -0,0 +1,651 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: engine_gcmessages.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_engine_5fgcmessages_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_engine_5fgcmessages_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#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
#if 3021008 < 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
#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_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/unknown_field_set.h>
#include <google/protobuf/descriptor.pb.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_engine_5fgcmessages_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_engine_5fgcmessages_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_engine_5fgcmessages_2eproto;
class CEngineGotvSyncPacket;
struct CEngineGotvSyncPacketDefaultTypeInternal;
extern CEngineGotvSyncPacketDefaultTypeInternal _CEngineGotvSyncPacket_default_instance_;
PROTOBUF_NAMESPACE_OPEN
template<> ::CEngineGotvSyncPacket* Arena::CreateMaybeMessage<::CEngineGotvSyncPacket>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
// ===================================================================
class CEngineGotvSyncPacket final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:CEngineGotvSyncPacket) */ {
public:
inline CEngineGotvSyncPacket() : CEngineGotvSyncPacket(nullptr) {}
~CEngineGotvSyncPacket() override;
explicit PROTOBUF_CONSTEXPR CEngineGotvSyncPacket(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
CEngineGotvSyncPacket(const CEngineGotvSyncPacket& from);
CEngineGotvSyncPacket(CEngineGotvSyncPacket&& from) noexcept
: CEngineGotvSyncPacket() {
*this = ::std::move(from);
}
inline CEngineGotvSyncPacket& operator=(const CEngineGotvSyncPacket& from) {
CopyFrom(from);
return *this;
}
inline CEngineGotvSyncPacket& operator=(CEngineGotvSyncPacket&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
}
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const CEngineGotvSyncPacket& default_instance() {
return *internal_default_instance();
}
static inline const CEngineGotvSyncPacket* internal_default_instance() {
return reinterpret_cast<const CEngineGotvSyncPacket*>(
&_CEngineGotvSyncPacket_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(CEngineGotvSyncPacket& a, CEngineGotvSyncPacket& b) {
a.Swap(&b);
}
inline void Swap(CEngineGotvSyncPacket* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(CEngineGotvSyncPacket* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
CEngineGotvSyncPacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<CEngineGotvSyncPacket>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const CEngineGotvSyncPacket& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const CEngineGotvSyncPacket& from) {
CEngineGotvSyncPacket::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(CEngineGotvSyncPacket* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "CEngineGotvSyncPacket";
}
protected:
explicit CEngineGotvSyncPacket(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kMatchIdFieldNumber = 1,
kInstanceIdFieldNumber = 2,
kSignupfragmentFieldNumber = 3,
kCurrentfragmentFieldNumber = 4,
kTickrateFieldNumber = 5,
kTickFieldNumber = 6,
kRtdelayFieldNumber = 8,
kRcvageFieldNumber = 9,
kKeyframeIntervalFieldNumber = 10,
kCdndelayFieldNumber = 11,
};
// optional uint64 match_id = 1;
bool has_match_id() const;
private:
bool _internal_has_match_id() const;
public:
void clear_match_id();
uint64_t match_id() const;
void set_match_id(uint64_t value);
private:
uint64_t _internal_match_id() const;
void _internal_set_match_id(uint64_t value);
public:
// optional uint32 instance_id = 2;
bool has_instance_id() const;
private:
bool _internal_has_instance_id() const;
public:
void clear_instance_id();
uint32_t instance_id() const;
void set_instance_id(uint32_t value);
private:
uint32_t _internal_instance_id() const;
void _internal_set_instance_id(uint32_t value);
public:
// optional uint32 signupfragment = 3;
bool has_signupfragment() const;
private:
bool _internal_has_signupfragment() const;
public:
void clear_signupfragment();
uint32_t signupfragment() const;
void set_signupfragment(uint32_t value);
private:
uint32_t _internal_signupfragment() const;
void _internal_set_signupfragment(uint32_t value);
public:
// optional uint32 currentfragment = 4;
bool has_currentfragment() const;
private:
bool _internal_has_currentfragment() const;
public:
void clear_currentfragment();
uint32_t currentfragment() const;
void set_currentfragment(uint32_t value);
private:
uint32_t _internal_currentfragment() const;
void _internal_set_currentfragment(uint32_t value);
public:
// optional float tickrate = 5;
bool has_tickrate() const;
private:
bool _internal_has_tickrate() const;
public:
void clear_tickrate();
float tickrate() const;
void set_tickrate(float value);
private:
float _internal_tickrate() const;
void _internal_set_tickrate(float value);
public:
// optional uint32 tick = 6;
bool has_tick() const;
private:
bool _internal_has_tick() const;
public:
void clear_tick();
uint32_t tick() const;
void set_tick(uint32_t value);
private:
uint32_t _internal_tick() const;
void _internal_set_tick(uint32_t value);
public:
// optional float rtdelay = 8;
bool has_rtdelay() const;
private:
bool _internal_has_rtdelay() const;
public:
void clear_rtdelay();
float rtdelay() const;
void set_rtdelay(float value);
private:
float _internal_rtdelay() const;
void _internal_set_rtdelay(float value);
public:
// optional float rcvage = 9;
bool has_rcvage() const;
private:
bool _internal_has_rcvage() const;
public:
void clear_rcvage();
float rcvage() const;
void set_rcvage(float value);
private:
float _internal_rcvage() const;
void _internal_set_rcvage(float value);
public:
// optional float keyframe_interval = 10;
bool has_keyframe_interval() const;
private:
bool _internal_has_keyframe_interval() const;
public:
void clear_keyframe_interval();
float keyframe_interval() const;
void set_keyframe_interval(float value);
private:
float _internal_keyframe_interval() const;
void _internal_set_keyframe_interval(float value);
public:
// optional uint32 cdndelay = 11;
bool has_cdndelay() const;
private:
bool _internal_has_cdndelay() const;
public:
void clear_cdndelay();
uint32_t cdndelay() const;
void set_cdndelay(uint32_t value);
private:
uint32_t _internal_cdndelay() const;
void _internal_set_cdndelay(uint32_t value);
public:
// @@protoc_insertion_point(class_scope:CEngineGotvSyncPacket)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint64_t match_id_;
uint32_t instance_id_;
uint32_t signupfragment_;
uint32_t currentfragment_;
float tickrate_;
uint32_t tick_;
float rtdelay_;
float rcvage_;
float keyframe_interval_;
uint32_t cdndelay_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_engine_5fgcmessages_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// CEngineGotvSyncPacket
// optional uint64 match_id = 1;
inline bool CEngineGotvSyncPacket::_internal_has_match_id() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline bool CEngineGotvSyncPacket::has_match_id() const {
return _internal_has_match_id();
}
inline void CEngineGotvSyncPacket::clear_match_id() {
_impl_.match_id_ = uint64_t{0u};
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline uint64_t CEngineGotvSyncPacket::_internal_match_id() const {
return _impl_.match_id_;
}
inline uint64_t CEngineGotvSyncPacket::match_id() const {
// @@protoc_insertion_point(field_get:CEngineGotvSyncPacket.match_id)
return _internal_match_id();
}
inline void CEngineGotvSyncPacket::_internal_set_match_id(uint64_t value) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.match_id_ = value;
}
inline void CEngineGotvSyncPacket::set_match_id(uint64_t value) {
_internal_set_match_id(value);
// @@protoc_insertion_point(field_set:CEngineGotvSyncPacket.match_id)
}
// optional uint32 instance_id = 2;
inline bool CEngineGotvSyncPacket::_internal_has_instance_id() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline bool CEngineGotvSyncPacket::has_instance_id() const {
return _internal_has_instance_id();
}
inline void CEngineGotvSyncPacket::clear_instance_id() {
_impl_.instance_id_ = 0u;
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline uint32_t CEngineGotvSyncPacket::_internal_instance_id() const {
return _impl_.instance_id_;
}
inline uint32_t CEngineGotvSyncPacket::instance_id() const {
// @@protoc_insertion_point(field_get:CEngineGotvSyncPacket.instance_id)
return _internal_instance_id();
}
inline void CEngineGotvSyncPacket::_internal_set_instance_id(uint32_t value) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.instance_id_ = value;
}
inline void CEngineGotvSyncPacket::set_instance_id(uint32_t value) {
_internal_set_instance_id(value);
// @@protoc_insertion_point(field_set:CEngineGotvSyncPacket.instance_id)
}
// optional uint32 signupfragment = 3;
inline bool CEngineGotvSyncPacket::_internal_has_signupfragment() const {
bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
return value;
}
inline bool CEngineGotvSyncPacket::has_signupfragment() const {
return _internal_has_signupfragment();
}
inline void CEngineGotvSyncPacket::clear_signupfragment() {
_impl_.signupfragment_ = 0u;
_impl_._has_bits_[0] &= ~0x00000004u;
}
inline uint32_t CEngineGotvSyncPacket::_internal_signupfragment() const {
return _impl_.signupfragment_;
}
inline uint32_t CEngineGotvSyncPacket::signupfragment() const {
// @@protoc_insertion_point(field_get:CEngineGotvSyncPacket.signupfragment)
return _internal_signupfragment();
}
inline void CEngineGotvSyncPacket::_internal_set_signupfragment(uint32_t value) {
_impl_._has_bits_[0] |= 0x00000004u;
_impl_.signupfragment_ = value;
}
inline void CEngineGotvSyncPacket::set_signupfragment(uint32_t value) {
_internal_set_signupfragment(value);
// @@protoc_insertion_point(field_set:CEngineGotvSyncPacket.signupfragment)
}
// optional uint32 currentfragment = 4;
inline bool CEngineGotvSyncPacket::_internal_has_currentfragment() const {
bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
return value;
}
inline bool CEngineGotvSyncPacket::has_currentfragment() const {
return _internal_has_currentfragment();
}
inline void CEngineGotvSyncPacket::clear_currentfragment() {
_impl_.currentfragment_ = 0u;
_impl_._has_bits_[0] &= ~0x00000008u;
}
inline uint32_t CEngineGotvSyncPacket::_internal_currentfragment() const {
return _impl_.currentfragment_;
}
inline uint32_t CEngineGotvSyncPacket::currentfragment() const {
// @@protoc_insertion_point(field_get:CEngineGotvSyncPacket.currentfragment)
return _internal_currentfragment();
}
inline void CEngineGotvSyncPacket::_internal_set_currentfragment(uint32_t value) {
_impl_._has_bits_[0] |= 0x00000008u;
_impl_.currentfragment_ = value;
}
inline void CEngineGotvSyncPacket::set_currentfragment(uint32_t value) {
_internal_set_currentfragment(value);
// @@protoc_insertion_point(field_set:CEngineGotvSyncPacket.currentfragment)
}
// optional float tickrate = 5;
inline bool CEngineGotvSyncPacket::_internal_has_tickrate() const {
bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
return value;
}
inline bool CEngineGotvSyncPacket::has_tickrate() const {
return _internal_has_tickrate();
}
inline void CEngineGotvSyncPacket::clear_tickrate() {
_impl_.tickrate_ = 0;
_impl_._has_bits_[0] &= ~0x00000010u;
}
inline float CEngineGotvSyncPacket::_internal_tickrate() const {
return _impl_.tickrate_;
}
inline float CEngineGotvSyncPacket::tickrate() const {
// @@protoc_insertion_point(field_get:CEngineGotvSyncPacket.tickrate)
return _internal_tickrate();
}
inline void CEngineGotvSyncPacket::_internal_set_tickrate(float value) {
_impl_._has_bits_[0] |= 0x00000010u;
_impl_.tickrate_ = value;
}
inline void CEngineGotvSyncPacket::set_tickrate(float value) {
_internal_set_tickrate(value);
// @@protoc_insertion_point(field_set:CEngineGotvSyncPacket.tickrate)
}
// optional uint32 tick = 6;
inline bool CEngineGotvSyncPacket::_internal_has_tick() const {
bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
return value;
}
inline bool CEngineGotvSyncPacket::has_tick() const {
return _internal_has_tick();
}
inline void CEngineGotvSyncPacket::clear_tick() {
_impl_.tick_ = 0u;
_impl_._has_bits_[0] &= ~0x00000020u;
}
inline uint32_t CEngineGotvSyncPacket::_internal_tick() const {
return _impl_.tick_;
}
inline uint32_t CEngineGotvSyncPacket::tick() const {
// @@protoc_insertion_point(field_get:CEngineGotvSyncPacket.tick)
return _internal_tick();
}
inline void CEngineGotvSyncPacket::_internal_set_tick(uint32_t value) {
_impl_._has_bits_[0] |= 0x00000020u;
_impl_.tick_ = value;
}
inline void CEngineGotvSyncPacket::set_tick(uint32_t value) {
_internal_set_tick(value);
// @@protoc_insertion_point(field_set:CEngineGotvSyncPacket.tick)
}
// optional float rtdelay = 8;
inline bool CEngineGotvSyncPacket::_internal_has_rtdelay() const {
bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
return value;
}
inline bool CEngineGotvSyncPacket::has_rtdelay() const {
return _internal_has_rtdelay();
}
inline void CEngineGotvSyncPacket::clear_rtdelay() {
_impl_.rtdelay_ = 0;
_impl_._has_bits_[0] &= ~0x00000040u;
}
inline float CEngineGotvSyncPacket::_internal_rtdelay() const {
return _impl_.rtdelay_;
}
inline float CEngineGotvSyncPacket::rtdelay() const {
// @@protoc_insertion_point(field_get:CEngineGotvSyncPacket.rtdelay)
return _internal_rtdelay();
}
inline void CEngineGotvSyncPacket::_internal_set_rtdelay(float value) {
_impl_._has_bits_[0] |= 0x00000040u;
_impl_.rtdelay_ = value;
}
inline void CEngineGotvSyncPacket::set_rtdelay(float value) {
_internal_set_rtdelay(value);
// @@protoc_insertion_point(field_set:CEngineGotvSyncPacket.rtdelay)
}
// optional float rcvage = 9;
inline bool CEngineGotvSyncPacket::_internal_has_rcvage() const {
bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
return value;
}
inline bool CEngineGotvSyncPacket::has_rcvage() const {
return _internal_has_rcvage();
}
inline void CEngineGotvSyncPacket::clear_rcvage() {
_impl_.rcvage_ = 0;
_impl_._has_bits_[0] &= ~0x00000080u;
}
inline float CEngineGotvSyncPacket::_internal_rcvage() const {
return _impl_.rcvage_;
}
inline float CEngineGotvSyncPacket::rcvage() const {
// @@protoc_insertion_point(field_get:CEngineGotvSyncPacket.rcvage)
return _internal_rcvage();
}
inline void CEngineGotvSyncPacket::_internal_set_rcvage(float value) {
_impl_._has_bits_[0] |= 0x00000080u;
_impl_.rcvage_ = value;
}
inline void CEngineGotvSyncPacket::set_rcvage(float value) {
_internal_set_rcvage(value);
// @@protoc_insertion_point(field_set:CEngineGotvSyncPacket.rcvage)
}
// optional float keyframe_interval = 10;
inline bool CEngineGotvSyncPacket::_internal_has_keyframe_interval() const {
bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
return value;
}
inline bool CEngineGotvSyncPacket::has_keyframe_interval() const {
return _internal_has_keyframe_interval();
}
inline void CEngineGotvSyncPacket::clear_keyframe_interval() {
_impl_.keyframe_interval_ = 0;
_impl_._has_bits_[0] &= ~0x00000100u;
}
inline float CEngineGotvSyncPacket::_internal_keyframe_interval() const {
return _impl_.keyframe_interval_;
}
inline float CEngineGotvSyncPacket::keyframe_interval() const {
// @@protoc_insertion_point(field_get:CEngineGotvSyncPacket.keyframe_interval)
return _internal_keyframe_interval();
}
inline void CEngineGotvSyncPacket::_internal_set_keyframe_interval(float value) {
_impl_._has_bits_[0] |= 0x00000100u;
_impl_.keyframe_interval_ = value;
}
inline void CEngineGotvSyncPacket::set_keyframe_interval(float value) {
_internal_set_keyframe_interval(value);
// @@protoc_insertion_point(field_set:CEngineGotvSyncPacket.keyframe_interval)
}
// optional uint32 cdndelay = 11;
inline bool CEngineGotvSyncPacket::_internal_has_cdndelay() const {
bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
return value;
}
inline bool CEngineGotvSyncPacket::has_cdndelay() const {
return _internal_has_cdndelay();
}
inline void CEngineGotvSyncPacket::clear_cdndelay() {
_impl_.cdndelay_ = 0u;
_impl_._has_bits_[0] &= ~0x00000200u;
}
inline uint32_t CEngineGotvSyncPacket::_internal_cdndelay() const {
return _impl_.cdndelay_;
}
inline uint32_t CEngineGotvSyncPacket::cdndelay() const {
// @@protoc_insertion_point(field_get:CEngineGotvSyncPacket.cdndelay)
return _internal_cdndelay();
}
inline void CEngineGotvSyncPacket::_internal_set_cdndelay(uint32_t value) {
_impl_._has_bits_[0] |= 0x00000200u;
_impl_.cdndelay_ = value;
}
inline void CEngineGotvSyncPacket::set_cdndelay(uint32_t value) {
_internal_set_cdndelay(value);
// @@protoc_insertion_point(field_set:CEngineGotvSyncPacket.cdndelay)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_engine_5fgcmessages_2eproto
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,454 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: network_connection.proto
#include "network_connection.pb.h"
#include <algorithm>
#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>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_network_5fconnection_2eproto[1];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_network_5fconnection_2eproto = nullptr;
const uint32_t TableStruct_network_5fconnection_2eproto::offsets[1] = {};
static constexpr ::_pbi::MigrationSchema* schemas = nullptr;
static constexpr ::_pb::Message* const* file_default_instances = nullptr;
const char descriptor_table_protodef_network_5fconnection_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\030network_connection.proto\032 google/proto"
"buf/descriptor.proto*\260M\n\033ENetworkDisconn"
"ectionReason\022\036\n\032NETWORK_DISCONNECT_INVAL"
"ID\020\000\022\037\n\033NETWORK_DISCONNECT_SHUTDOWN\020\001\022F\n"
"%NETWORK_DISCONNECT_DISCONNECT_BY_USER\020\002"
"\032\033\242\324\030\027#GameUI_Disconnect_User\022J\n\'NETWORK"
"_DISCONNECT_DISCONNECT_BY_SERVER\020\003\032\035\242\324\030\031"
"#GameUI_Disconnect_Server\022B\n\027NETWORK_DIS"
"CONNECT_LOST\020\004\032%\242\324\030!#GameUI_Disconnect_C"
"onnectionLost\022J\n\033NETWORK_DISCONNECT_OVER"
"FLOW\020\005\032)\242\324\030%#GameUI_Disconnect_Connectio"
"nOverflow\022I\n\037NETWORK_DISCONNECT_STEAM_BA"
"NNED\020\006\032$\242\324\030 #GameUI_Disconnect_SteamIDBa"
"nned\022G\n\036NETWORK_DISCONNECT_STEAM_INUSE\020\007"
"\032#\242\324\030\037#GameUI_Disconnect_SteamIDInUse\022G\n"
"\037NETWORK_DISCONNECT_STEAM_TICKET\020\010\032\"\242\324\030\036"
"#GameUI_Disconnect_SteamTicket\022E\n\036NETWOR"
"K_DISCONNECT_STEAM_LOGON\020\t\032!\242\324\030\035#GameUI_"
"Disconnect_SteamLogon\022M\n&NETWORK_DISCONN"
"ECT_STEAM_AUTHCANCELLED\020\n\032!\242\324\030\035#GameUI_D"
"isconnect_SteamLogon\022O\n(NETWORK_DISCONNE"
"CT_STEAM_AUTHALREADYUSED\020\013\032!\242\324\030\035#GameUI_"
"Disconnect_SteamLogon\022K\n$NETWORK_DISCONN"
"ECT_STEAM_AUTHINVALID\020\014\032!\242\324\030\035#GameUI_Dis"
"connect_SteamLogon\022M\n$NETWORK_DISCONNECT"
"_STEAM_VACBANSTATE\020\r\032#\242\324\030\033#GameUI_Discon"
"nect_SteamVAC\260\324\030\000\022S\n,NETWORK_DISCONNECT_"
"STEAM_LOGGED_IN_ELSEWHERE\020\016\032!\242\324\030\035#GameUI"
"_Disconnect_SteamInUse\022T\n+NETWORK_DISCON"
"NECT_STEAM_VAC_CHECK_TIMEDOUT\020\017\032#\242\324\030\037#Ga"
"meUI_Disconnect_SteamTimeOut\022I\n NETWORK_"
"DISCONNECT_STEAM_DROPPED\020\020\032#\242\324\030\037#GameUI_"
"Disconnect_SteamDropped\022M\n\"NETWORK_DISCO"
"NNECT_STEAM_OWNERSHIP\020\021\032%\242\324\030!#GameUI_Dis"
"connect_SteamOwnership\022U\n&NETWORK_DISCON"
"NECT_SERVERINFO_OVERFLOW\020\022\032)\242\324\030%#GameUI_"
"Disconnect_ServerInfoOverflow\022K\n#NETWORK"
"_DISCONNECT_TICKMSG_OVERFLOW\020\023\032\"\242\324\030\036#Gam"
"eUI_Disconnect_TickMessage\022Y\n*NETWORK_DI"
"SCONNECT_STRINGTABLEMSG_OVERFLOW\020\024\032)\242\324\030%"
"#GameUI_Disconnect_StringTableMessage\022S\n"
"\'NETWORK_DISCONNECT_DELTAENTMSG_OVERFLOW"
"\020\025\032&\242\324\030\"#GameUI_Disconnect_DeltaEntMessa"
"ge\022Q\n&NETWORK_DISCONNECT_TEMPENTMSG_OVER"
"FLOW\020\026\032%\242\324\030!#GameUI_Disconnect_TempEntMe"
"ssage\022O\n%NETWORK_DISCONNECT_SOUNDSMSG_OV"
"ERFLOW\020\027\032$\242\324\030 #GameUI_Disconnect_SoundsM"
"essage\022P\n#NETWORK_DISCONNECT_SNAPSHOTOVE"
"RFLOW\020\030\032\'\242\324\030##GameUI_Disconnect_Snapshot"
"Overflow\022J\n NETWORK_DISCONNECT_SNAPSHOTE"
"RROR\020\031\032$\242\324\030 #GameUI_Disconnect_SnapshotE"
"rror\022P\n#NETWORK_DISCONNECT_RELIABLEOVERF"
"LOW\020\032\032\'\242\324\030##GameUI_Disconnect_ReliableOv"
"erflow\022N\n\037NETWORK_DISCONNECT_BADDELTATIC"
"K\020\033\032)\242\324\030%#GameUI_Disconnect_BadClientDel"
"taTick\022H\n\037NETWORK_DISCONNECT_NOMORESPLIT"
"S\020\034\032#\242\324\030\037#GameUI_Disconnect_NoMoreSplits"
"\022@\n\033NETWORK_DISCONNECT_TIMEDOUT\020\035\032\037\242\324\030\033#"
"GameUI_Disconnect_TimedOut\022H\n\037NETWORK_DI"
"SCONNECT_DISCONNECTED\020\036\032#\242\324\030\037#GameUI_Dis"
"connect_Disconnected\022H\n\037NETWORK_DISCONNE"
"CT_LEAVINGSPLIT\020\037\032#\242\324\030\037#GameUI_Disconnec"
"t_LeavingSplit\022X\n\'NETWORK_DISCONNECT_DIF"
"FERENTCLASSTABLES\020 \032+\242\324\030\'#GameUI_Disconn"
"ect_DifferentClassTables\022P\n#NETWORK_DISC"
"ONNECT_BADRELAYPASSWORD\020!\032\'\242\324\030##GameUI_D"
"isconnect_BadRelayPassword\022X\n\'NETWORK_DI"
"SCONNECT_BADSPECTATORPASSWORD\020\"\032+\242\324\030\'#Ga"
"meUI_Disconnect_BadSpectatorPassword\022L\n!"
"NETWORK_DISCONNECT_HLTVRESTRICTED\020#\032%\242\324\030"
"!#GameUI_Disconnect_HLTVRestricted\022H\n\037NE"
"TWORK_DISCONNECT_NOSPECTATORS\020$\032#\242\324\030\037#Ga"
"meUI_Disconnect_NoSpectators\022N\n\"NETWORK_"
"DISCONNECT_HLTVUNAVAILABLE\020%\032&\242\324\030\"#GameU"
"I_Disconnect_HLTVUnavailable\022@\n\033NETWORK_"
"DISCONNECT_HLTVSTOP\020&\032\037\242\324\030\033#GameUI_Disco"
"nnect_HLTVStop\022<\n\031NETWORK_DISCONNECT_KIC"
"KED\020\'\032\035\242\324\030\031#GameUI_Disconnect_Kicked\022@\n\033"
"NETWORK_DISCONNECT_BANADDED\020(\032\037\242\324\030\033#Game"
"UI_Disconnect_BanAdded\022H\n\037NETWORK_DISCON"
"NECT_KICKBANADDED\020)\032#\242\324\030\037#GameUI_Disconn"
"ect_KickBanAdded\022D\n\035NETWORK_DISCONNECT_H"
"LTVDIRECT\020*\032!\242\324\030\035#GameUI_Disconnect_HLTV"
"Direct\022\\\n)NETWORK_DISCONNECT_PURESERVER_"
"CLIENTEXTRA\020+\032-\242\324\030)#GameUI_Disconnect_Pu"
"reServer_ClientExtra\022V\n&NETWORK_DISCONNE"
"CT_PURESERVER_MISMATCH\020,\032*\242\324\030&#GameUI_Di"
"sconnect_PureServer_Mismatch\022>\n\032NETWORK_"
"DISCONNECT_USERCMD\020-\032\036\242\324\030\032#GameUI_Discon"
"nect_UserCmd\022N\n#NETWORK_DISCONNECT_REJEC"
"TED_BY_GAME\020.\032%\242\324\030!#GameUI_Disconnect_Re"
"jectedByGame\022T\n&NETWORK_DISCONNECT_MESSA"
"GE_PARSE_ERROR\020/\032(\242\324\030$#GameUI_Disconnect"
"_MessageParseError\022X\n(NETWORK_DISCONNECT"
"_INVALID_MESSAGE_ERROR\0200\032*\242\324\030&#GameUI_Di"
"sconnect_InvalidMessageError\022T\n&NETWORK_"
"DISCONNECT_BAD_SERVER_PASSWORD\0201\032(\242\324\030$#G"
"ameUI_Disconnect_BadServerPassword\0221\n-NE"
"TWORK_DISCONNECT_DIRECT_CONNECT_RESERVAT"
"ION\0202\022S\n%NETWORK_DISCONNECT_CONNECTION_F"
"AILURE\0203\032(\242\324\030$#GameUI_Disconnect_Connect"
"ionFailure\022Y\n)NETWORK_DISCONNECT_NO_PEER"
"_GROUP_HANDLERS\0204\032*\242\324\030&#GameUI_Disconnec"
"t_NoPeerGroupHandlers\022#\n\037NETWORK_DISCONN"
"ECT_RECONNECTION\0205\022H\n\037NETWORK_DISCONNECT"
"_LOOPSHUTDOWN\0206\032#\242\324\030\037#GameUI_Disconnect_"
"LoopShutdown\022L\n!NETWORK_DISCONNECT_LOOPD"
"EACTIVATE\0207\032%\242\324\030!#GameUI_Disconnect_Loop"
"Deactivate\022H\n\037NETWORK_DISCONNECT_HOST_EN"
"DGAME\0208\032#\242\324\030\037#GameUI_Disconnect_Host_End"
"Game\022\\\n*NETWORK_DISCONNECT_LOOP_LEVELLOA"
"D_ACTIVATE\0209\032,\242\324\030(#GameUI_Disconnect_Loo"
"pLevelLoadActivate\022V\n\'NETWORK_DISCONNECT"
"_CREATE_SERVER_FAILED\020:\032)\242\324\030%#GameUI_Dis"
"connect_CreateServerFailed\022D\n\032NETWORK_DI"
"SCONNECT_EXITING\020;\032$\242\324\030 #GameUI_Disconne"
"ct_ExitingEngine\022T\n)NETWORK_DISCONNECT_R"
"EQUEST_HOSTSTATE_IDLE\020<\032%\242\324\030!#GameUI_Dis"
"connect_Request_HSIdle\022\\\n.NETWORK_DISCON"
"NECT_REQUEST_HOSTSTATE_HLTVRELAY\020=\032(\242\324\030$"
"#GameUI_Disconnect_Request_HLTVRelay\022Q\n*"
"NETWORK_DISCONNECT_CLIENT_CONSISTENCY_FA"
"IL\020>\032!\242\324\030\035#GameUI_ClientConsistencyFail\022"
"Q\n+NETWORK_DISCONNECT_CLIENT_UNABLE_TO_C"
"RC_MAP\020\?\032 \242\324\030\034#GameUI_ClientUnableToCRCM"
"ap\022=\n NETWORK_DISCONNECT_CLIENT_NO_MAP\020@"
"\032\027\242\324\030\023#GameUI_ClientNoMap\022K\n\'NETWORK_DIS"
"CONNECT_CLIENT_DIFFERENT_MAP\020A\032\036\242\324\030\032#Gam"
"eUI_ClientDifferentMap\022M\n(NETWORK_DISCON"
"NECT_SERVER_REQUIRES_STEAM\020B\032\037\242\324\030\033#GameU"
"I_ServerRequireSteams\022M\n\"NETWORK_DISCONN"
"ECT_STEAM_DENY_MISC\020C\032%\242\324\030!#GameUI_Disco"
"nnect_SteamDeny_Misc\022_\n,NETWORK_DISCONNE"
"CT_STEAM_DENY_BAD_ANTI_CHEAT\020D\032-\242\324\030)#Gam"
"eUI_Disconnect_SteamDeny_BadAntiCheat\022M\n"
"\"NETWORK_DISCONNECT_SERVER_SHUTDOWN\020E\032%\242"
"\324\030!#GameUI_Disconnect_ServerShutdown\022U\n&"
"NETWORK_DISCONNECT_REPLAY_INCOMPATIBLE\020G"
"\032)\242\324\030%#GameUI_Disconnect_ReplayIncompati"
"ble\022Z\n+NETWORK_DISCONNECT_CONNECT_REQUES"
"T_TIMEDOUT\020H\032)\242\324\030%#GameUI_Disconnect_Con"
"nectionTimedout\022U\n&NETWORK_DISCONNECT_SE"
"RVER_INCOMPATIBLE\020I\032)\242\324\030%#GameUI_Disconn"
"ect_ServerIncompatible\022^\n*NETWORK_DISCON"
"NECT_LOCALPROBLEM_MANYRELAYS\020J\032.\242\324\030*#Gam"
"eUI_Disconnect_LocalProblem_ManyRelays\022z"
"\n8NETWORK_DISCONNECT_LOCALPROBLEM_HOSTED"
"SERVERPRIMARYRELAY\020K\032<\242\324\0308#GameUI_Discon"
"nect_LocalProblem_HostedServerPrimaryRel"
"ay\022d\n-NETWORK_DISCONNECT_LOCALPROBLEM_NE"
"TWORKCONFIG\020L\0321\242\324\030-#GameUI_Disconnect_Lo"
"calProblem_NetworkConfig\022T\n%NETWORK_DISC"
"ONNECT_LOCALPROBLEM_OTHER\020M\032)\242\324\030%#GameUI"
"_Disconnect_LocalProblem_Other\022S\n!NETWOR"
"K_DISCONNECT_REMOTE_TIMEOUT\020O\032,\242\324\030(#Game"
"UI_Disconnect_RemoteProblem_Timeout\022h\n,N"
"ETWORK_DISCONNECT_REMOTE_TIMEOUT_CONNECT"
"ING\020P\0326\242\324\0302#GameUI_Disconnect_RemoteProb"
"lem_TimeoutConnecting\022O\n\037NETWORK_DISCONN"
"ECT_REMOTE_OTHER\020Q\032*\242\324\030&#GameUI_Disconne"
"ct_RemoteProblem_Other\022U\n\"NETWORK_DISCON"
"NECT_REMOTE_BADCRYPT\020R\032-\242\324\030)#GameUI_Disc"
"onnect_RemoteProblem_BadCrypt\022Z\n(NETWORK"
"_DISCONNECT_REMOTE_CERTNOTTRUSTED\020S\032,\242\324\030"
"(#GameUI_Disconnect_RemoteProblem_BadCer"
"t\022>\n\032NETWORK_DISCONNECT_UNUSUAL\020T\032\036\242\324\030\032#"
"GameUI_Disconnect_Unusual\022K\n!NETWORK_DIS"
"CONNECT_INTERNAL_ERROR\020U\032$\242\324\030 #GameUI_Di"
"sconnect_InternalError\022Q\n&NETWORK_DISCON"
"NECT_REJECT_BADCHALLENGE\020\200\001\032$\242\324\030 #GameUI"
"_ServerRejectBadChallenge\022A\n!NETWORK_DIS"
"CONNECT_REJECT_NOLOBBY\020\201\001\032\031\242\324\030\025#GameUI_S"
"erverNoLobby\022O\n(NETWORK_DISCONNECT_REJEC"
"T_BACKGROUND_MAP\020\202\001\032 \242\324\030\034#Valve_Reject_B"
"ackground_Map\022M\n\'NETWORK_DISCONNECT_REJE"
"CT_SINGLE_PLAYER\020\203\001\032\037\242\324\030\033#Valve_Reject_S"
"ingle_Player\022I\n%NETWORK_DISCONNECT_REJEC"
"T_HIDDEN_GAME\020\204\001\032\035\242\324\030\031#Valve_Reject_Hidd"
"en_Game\022O\n%NETWORK_DISCONNECT_REJECT_LAN"
"RESTRICT\020\205\001\032#\242\324\030\037#GameUI_ServerRejectLAN"
"Restrict\022O\n%NETWORK_DISCONNECT_REJECT_BA"
"DPASSWORD\020\206\001\032#\242\324\030\037#GameUI_ServerRejectBa"
"dPassword\022M\n$NETWORK_DISCONNECT_REJECT_S"
"ERVERFULL\020\207\001\032\"\242\324\030\036#GameUI_ServerRejectSe"
"rverFull\022]\n,NETWORK_DISCONNECT_REJECT_IN"
"VALIDRESERVATION\020\210\001\032*\242\324\030&#GameUI_ServerR"
"ejectInvalidReservation\022S\n\'NETWORK_DISCO"
"NNECT_REJECT_FAILEDCHANNEL\020\211\001\032%\242\324\030!#Game"
"UI_ServerRejectFailedChannel\022W\n,NETWORK_"
"DISCONNECT_REJECT_CONNECT_FROM_LOBBY\020\212\001\032"
"$\242\324\030 #Valve_Reject_Connect_From_Lobby\022W\n"
",NETWORK_DISCONNECT_REJECT_RESERVED_FOR_"
"LOBBY\020\213\001\032$\242\324\030 #Valve_Reject_Reserved_For"
"_Lobby\022Z\n*NETWORK_DISCONNECT_REJECT_INVA"
"LIDKEYLENGTH\020\214\001\032)\242\324\030%#GameUI_ServerRejec"
"t_InvalidKeyLength\022O\n%NETWORK_DISCONNECT"
"_REJECT_OLDPROTOCOL\020\215\001\032#\242\324\030\037#GameUI_Serv"
"erRejectOldProtocol\022O\n%NETWORK_DISCONNEC"
"T_REJECT_NEWPROTOCOL\020\216\001\032#\242\324\030\037#GameUI_Ser"
"verRejectNewProtocol\022[\n+NETWORK_DISCONNE"
"CT_REJECT_INVALIDCONNECTION\020\217\001\032)\242\324\030%#Gam"
"eUI_ServerRejectInvalidConnection\022U\n(NET"
"WORK_DISCONNECT_REJECT_INVALIDCERTLEN\020\220\001"
"\032&\242\324\030\"#GameUI_ServerRejectInvalidCertLen"
"\022_\n-NETWORK_DISCONNECT_REJECT_INVALIDSTE"
"AMCERTLEN\020\221\001\032+\242\324\030\'#GameUI_ServerRejectIn"
"validSteamCertLen\022C\n\037NETWORK_DISCONNECT_"
"REJECT_STEAM\020\222\001\032\035\242\324\030\031#GameUI_ServerRejec"
"tSteam\022Q\n,NETWORK_DISCONNECT_REJECT_SERV"
"ERAUTHDISABLED\020\223\001\032\036\242\324\030\032#GameUI_ServerAut"
"hDisabled\022Y\n0NETWORK_DISCONNECT_REJECT_S"
"ERVERCDKEYAUTHINVALID\020\224\001\032\"\242\324\030\036#GameUI_Se"
"rverCDKeyAuthInvalid\022E\n NETWORK_DISCONNE"
"CT_REJECT_BANNED\020\225\001\032\036\242\324\030\032#GameUI_ServerR"
"ejectBanned\022T\n%NETWORK_DISCONNECT_KICKED"
"_TEAMKILLING\020\226\001\032(\242\324\030$#Player_DisconnectR"
"eason_TeamKilling\022N\n\"NETWORK_DISCONNECT_"
"KICKED_TK_START\020\227\001\032%\242\324\030!#Player_Disconne"
"ctReason_TK_Start\022^\n*NETWORK_DISCONNECT_"
"KICKED_UNTRUSTEDACCOUNT\020\230\001\032-\242\324\030)#Player_"
"DisconnectReason_UntrustedAccount\022^\n*NET"
"WORK_DISCONNECT_KICKED_CONVICTEDACCOUNT\020"
"\231\001\032-\242\324\030)#Player_DisconnectReason_Convict"
"edAccount\022d\n-NETWORK_DISCONNECT_KICKED_C"
"OMPETITIVECOOLDOWN\020\232\001\0320\242\324\030,#Player_Disco"
"nnectReason_CompetitiveCooldown\022T\n%NETWO"
"RK_DISCONNECT_KICKED_TEAMHURTING\020\233\001\032(\242\324\030"
"$#Player_DisconnectReason_TeamHurting\022Z\n"
"(NETWORK_DISCONNECT_KICKED_HOSTAGEKILLIN"
"G\020\234\001\032+\242\324\030\'#Player_DisconnectReason_Hosta"
"geKilling\022N\n\"NETWORK_DISCONNECT_KICKED_V"
"OTEDOFF\020\235\001\032%\242\324\030!#Player_DisconnectReason"
"_VotedOff\022F\n\036NETWORK_DISCONNECT_KICKED_I"
"DLE\020\236\001\032!\242\324\030\035#Player_DisconnectReason_Idl"
"e\022L\n!NETWORK_DISCONNECT_KICKED_SUICIDE\020\237"
"\001\032$\242\324\030 #Player_DisconnectReason_Suicide\022"
"V\n&NETWORK_DISCONNECT_KICKED_NOSTEAMLOGI"
"N\020\240\001\032)\242\324\030%#Player_DisconnectReason_NoSte"
"amLogin\022X\n\'NETWORK_DISCONNECT_KICKED_NOS"
"TEAMTICKET\020\241\001\032*\242\324\030&#Player_DisconnectRea"
"son_NoSteamTicket\022\217\001\n)NETWORK_DISCONNECT"
"_KICKED_INPUTAUTOMATION\020\242\001\032_\242\324\030(#Player_"
"DisconnectReason_InputAutomation\252\324\030/#Pla"
"yer_DisconnectReason_InputAutomation_Det"
"ail\022n\n0NETWORK_DISCONNECT_KICKED_VACNETA"
"BNORMALBEHAVIOR\020\243\001\0327\242\324\030/#Player_Disconne"
"ctReason_VacNetAbnormalBehavior\260\324\030\000\022Z\n(N"
"ETWORK_DISCONNECT_KICKED_INSECURECLIENT\020"
"\244\001\032+\242\324\030\'#Player_DisconnectReason_Insecur"
"eClient:E\n\030network_connection_token\022!.go"
"ogle.protobuf.EnumValueOptions\030\304\212\003 \001(\t:L"
"\n\037network_connection_detail_token\022!.goog"
"le.protobuf.EnumValueOptions\030\305\212\003 \001(\t:F\n\023"
"allowed_from_client\022!.google.protobuf.En"
"umValueOptions\030\306\212\003 \001(\010:\004true"
;
static const ::_pbi::DescriptorTable* const descriptor_table_network_5fconnection_2eproto_deps[1] = {
&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,
};
static ::_pbi::once_flag descriptor_table_network_5fconnection_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_network_5fconnection_2eproto = {
false, false, 10188, descriptor_table_protodef_network_5fconnection_2eproto,
"network_connection.proto",
&descriptor_table_network_5fconnection_2eproto_once, descriptor_table_network_5fconnection_2eproto_deps, 1, 0,
schemas, file_default_instances, TableStruct_network_5fconnection_2eproto::offsets,
nullptr, file_level_enum_descriptors_network_5fconnection_2eproto,
file_level_service_descriptors_network_5fconnection_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_network_5fconnection_2eproto_getter() {
return &descriptor_table_network_5fconnection_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_network_5fconnection_2eproto(&descriptor_table_network_5fconnection_2eproto);
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ENetworkDisconnectionReason_descriptor() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_network_5fconnection_2eproto);
return file_level_enum_descriptors_network_5fconnection_2eproto[0];
}
bool ENetworkDisconnectionReason_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
case 30:
case 31:
case 32:
case 33:
case 34:
case 35:
case 36:
case 37:
case 38:
case 39:
case 40:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 79:
case 80:
case 81:
case 82:
case 83:
case 84:
case 85:
case 128:
case 129:
case 130:
case 131:
case 132:
case 133:
case 134:
case 135:
case 136:
case 137:
case 138:
case 139:
case 140:
case 141:
case 142:
case 143:
case 144:
case 145:
case 146:
case 147:
case 148:
case 149:
case 150:
case 151:
case 152:
case 153:
case 154:
case 155:
case 156:
case 157:
case 158:
case 159:
case 160:
case 161:
case 162:
case 163:
case 164:
return true;
default:
return false;
}
}
const std::string network_connection_token_default("");
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions,
::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false>
network_connection_token(kNetworkConnectionTokenFieldNumber, network_connection_token_default, nullptr);
const std::string network_connection_detail_token_default("");
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions,
::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false>
network_connection_detail_token(kNetworkConnectionDetailTokenFieldNumber, network_connection_detail_token_default, nullptr);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions,
::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false>
allowed_from_client(kAllowedFromClientFieldNumber, true, nullptr);
// @@protoc_insertion_point(namespace_scope)
PROTOBUF_NAMESPACE_OPEN
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
@@ -0,0 +1,236 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: network_connection.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_network_5fconnection_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_network_5fconnection_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#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
#if 3021008 < 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
#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_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.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/descriptor.pb.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_network_5fconnection_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_network_5fconnection_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_network_5fconnection_2eproto;
PROTOBUF_NAMESPACE_OPEN
PROTOBUF_NAMESPACE_CLOSE
enum ENetworkDisconnectionReason : int {
NETWORK_DISCONNECT_INVALID = 0,
NETWORK_DISCONNECT_SHUTDOWN = 1,
NETWORK_DISCONNECT_DISCONNECT_BY_USER = 2,
NETWORK_DISCONNECT_DISCONNECT_BY_SERVER = 3,
NETWORK_DISCONNECT_LOST = 4,
NETWORK_DISCONNECT_OVERFLOW = 5,
NETWORK_DISCONNECT_STEAM_BANNED = 6,
NETWORK_DISCONNECT_STEAM_INUSE = 7,
NETWORK_DISCONNECT_STEAM_TICKET = 8,
NETWORK_DISCONNECT_STEAM_LOGON = 9,
NETWORK_DISCONNECT_STEAM_AUTHCANCELLED = 10,
NETWORK_DISCONNECT_STEAM_AUTHALREADYUSED = 11,
NETWORK_DISCONNECT_STEAM_AUTHINVALID = 12,
NETWORK_DISCONNECT_STEAM_VACBANSTATE = 13,
NETWORK_DISCONNECT_STEAM_LOGGED_IN_ELSEWHERE = 14,
NETWORK_DISCONNECT_STEAM_VAC_CHECK_TIMEDOUT = 15,
NETWORK_DISCONNECT_STEAM_DROPPED = 16,
NETWORK_DISCONNECT_STEAM_OWNERSHIP = 17,
NETWORK_DISCONNECT_SERVERINFO_OVERFLOW = 18,
NETWORK_DISCONNECT_TICKMSG_OVERFLOW = 19,
NETWORK_DISCONNECT_STRINGTABLEMSG_OVERFLOW = 20,
NETWORK_DISCONNECT_DELTAENTMSG_OVERFLOW = 21,
NETWORK_DISCONNECT_TEMPENTMSG_OVERFLOW = 22,
NETWORK_DISCONNECT_SOUNDSMSG_OVERFLOW = 23,
NETWORK_DISCONNECT_SNAPSHOTOVERFLOW = 24,
NETWORK_DISCONNECT_SNAPSHOTERROR = 25,
NETWORK_DISCONNECT_RELIABLEOVERFLOW = 26,
NETWORK_DISCONNECT_BADDELTATICK = 27,
NETWORK_DISCONNECT_NOMORESPLITS = 28,
NETWORK_DISCONNECT_TIMEDOUT = 29,
NETWORK_DISCONNECT_DISCONNECTED = 30,
NETWORK_DISCONNECT_LEAVINGSPLIT = 31,
NETWORK_DISCONNECT_DIFFERENTCLASSTABLES = 32,
NETWORK_DISCONNECT_BADRELAYPASSWORD = 33,
NETWORK_DISCONNECT_BADSPECTATORPASSWORD = 34,
NETWORK_DISCONNECT_HLTVRESTRICTED = 35,
NETWORK_DISCONNECT_NOSPECTATORS = 36,
NETWORK_DISCONNECT_HLTVUNAVAILABLE = 37,
NETWORK_DISCONNECT_HLTVSTOP = 38,
NETWORK_DISCONNECT_KICKED = 39,
NETWORK_DISCONNECT_BANADDED = 40,
NETWORK_DISCONNECT_KICKBANADDED = 41,
NETWORK_DISCONNECT_HLTVDIRECT = 42,
NETWORK_DISCONNECT_PURESERVER_CLIENTEXTRA = 43,
NETWORK_DISCONNECT_PURESERVER_MISMATCH = 44,
NETWORK_DISCONNECT_USERCMD = 45,
NETWORK_DISCONNECT_REJECTED_BY_GAME = 46,
NETWORK_DISCONNECT_MESSAGE_PARSE_ERROR = 47,
NETWORK_DISCONNECT_INVALID_MESSAGE_ERROR = 48,
NETWORK_DISCONNECT_BAD_SERVER_PASSWORD = 49,
NETWORK_DISCONNECT_DIRECT_CONNECT_RESERVATION = 50,
NETWORK_DISCONNECT_CONNECTION_FAILURE = 51,
NETWORK_DISCONNECT_NO_PEER_GROUP_HANDLERS = 52,
NETWORK_DISCONNECT_RECONNECTION = 53,
NETWORK_DISCONNECT_LOOPSHUTDOWN = 54,
NETWORK_DISCONNECT_LOOPDEACTIVATE = 55,
NETWORK_DISCONNECT_HOST_ENDGAME = 56,
NETWORK_DISCONNECT_LOOP_LEVELLOAD_ACTIVATE = 57,
NETWORK_DISCONNECT_CREATE_SERVER_FAILED = 58,
NETWORK_DISCONNECT_EXITING = 59,
NETWORK_DISCONNECT_REQUEST_HOSTSTATE_IDLE = 60,
NETWORK_DISCONNECT_REQUEST_HOSTSTATE_HLTVRELAY = 61,
NETWORK_DISCONNECT_CLIENT_CONSISTENCY_FAIL = 62,
NETWORK_DISCONNECT_CLIENT_UNABLE_TO_CRC_MAP = 63,
NETWORK_DISCONNECT_CLIENT_NO_MAP = 64,
NETWORK_DISCONNECT_CLIENT_DIFFERENT_MAP = 65,
NETWORK_DISCONNECT_SERVER_REQUIRES_STEAM = 66,
NETWORK_DISCONNECT_STEAM_DENY_MISC = 67,
NETWORK_DISCONNECT_STEAM_DENY_BAD_ANTI_CHEAT = 68,
NETWORK_DISCONNECT_SERVER_SHUTDOWN = 69,
NETWORK_DISCONNECT_REPLAY_INCOMPATIBLE = 71,
NETWORK_DISCONNECT_CONNECT_REQUEST_TIMEDOUT = 72,
NETWORK_DISCONNECT_SERVER_INCOMPATIBLE = 73,
NETWORK_DISCONNECT_LOCALPROBLEM_MANYRELAYS = 74,
NETWORK_DISCONNECT_LOCALPROBLEM_HOSTEDSERVERPRIMARYRELAY = 75,
NETWORK_DISCONNECT_LOCALPROBLEM_NETWORKCONFIG = 76,
NETWORK_DISCONNECT_LOCALPROBLEM_OTHER = 77,
NETWORK_DISCONNECT_REMOTE_TIMEOUT = 79,
NETWORK_DISCONNECT_REMOTE_TIMEOUT_CONNECTING = 80,
NETWORK_DISCONNECT_REMOTE_OTHER = 81,
NETWORK_DISCONNECT_REMOTE_BADCRYPT = 82,
NETWORK_DISCONNECT_REMOTE_CERTNOTTRUSTED = 83,
NETWORK_DISCONNECT_UNUSUAL = 84,
NETWORK_DISCONNECT_INTERNAL_ERROR = 85,
NETWORK_DISCONNECT_REJECT_BADCHALLENGE = 128,
NETWORK_DISCONNECT_REJECT_NOLOBBY = 129,
NETWORK_DISCONNECT_REJECT_BACKGROUND_MAP = 130,
NETWORK_DISCONNECT_REJECT_SINGLE_PLAYER = 131,
NETWORK_DISCONNECT_REJECT_HIDDEN_GAME = 132,
NETWORK_DISCONNECT_REJECT_LANRESTRICT = 133,
NETWORK_DISCONNECT_REJECT_BADPASSWORD = 134,
NETWORK_DISCONNECT_REJECT_SERVERFULL = 135,
NETWORK_DISCONNECT_REJECT_INVALIDRESERVATION = 136,
NETWORK_DISCONNECT_REJECT_FAILEDCHANNEL = 137,
NETWORK_DISCONNECT_REJECT_CONNECT_FROM_LOBBY = 138,
NETWORK_DISCONNECT_REJECT_RESERVED_FOR_LOBBY = 139,
NETWORK_DISCONNECT_REJECT_INVALIDKEYLENGTH = 140,
NETWORK_DISCONNECT_REJECT_OLDPROTOCOL = 141,
NETWORK_DISCONNECT_REJECT_NEWPROTOCOL = 142,
NETWORK_DISCONNECT_REJECT_INVALIDCONNECTION = 143,
NETWORK_DISCONNECT_REJECT_INVALIDCERTLEN = 144,
NETWORK_DISCONNECT_REJECT_INVALIDSTEAMCERTLEN = 145,
NETWORK_DISCONNECT_REJECT_STEAM = 146,
NETWORK_DISCONNECT_REJECT_SERVERAUTHDISABLED = 147,
NETWORK_DISCONNECT_REJECT_SERVERCDKEYAUTHINVALID = 148,
NETWORK_DISCONNECT_REJECT_BANNED = 149,
NETWORK_DISCONNECT_KICKED_TEAMKILLING = 150,
NETWORK_DISCONNECT_KICKED_TK_START = 151,
NETWORK_DISCONNECT_KICKED_UNTRUSTEDACCOUNT = 152,
NETWORK_DISCONNECT_KICKED_CONVICTEDACCOUNT = 153,
NETWORK_DISCONNECT_KICKED_COMPETITIVECOOLDOWN = 154,
NETWORK_DISCONNECT_KICKED_TEAMHURTING = 155,
NETWORK_DISCONNECT_KICKED_HOSTAGEKILLING = 156,
NETWORK_DISCONNECT_KICKED_VOTEDOFF = 157,
NETWORK_DISCONNECT_KICKED_IDLE = 158,
NETWORK_DISCONNECT_KICKED_SUICIDE = 159,
NETWORK_DISCONNECT_KICKED_NOSTEAMLOGIN = 160,
NETWORK_DISCONNECT_KICKED_NOSTEAMTICKET = 161,
NETWORK_DISCONNECT_KICKED_INPUTAUTOMATION = 162,
NETWORK_DISCONNECT_KICKED_VACNETABNORMALBEHAVIOR = 163,
NETWORK_DISCONNECT_KICKED_INSECURECLIENT = 164
};
bool ENetworkDisconnectionReason_IsValid(int value);
constexpr ENetworkDisconnectionReason ENetworkDisconnectionReason_MIN = NETWORK_DISCONNECT_INVALID;
constexpr ENetworkDisconnectionReason ENetworkDisconnectionReason_MAX = NETWORK_DISCONNECT_KICKED_INSECURECLIENT;
constexpr int ENetworkDisconnectionReason_ARRAYSIZE = ENetworkDisconnectionReason_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ENetworkDisconnectionReason_descriptor();
template<typename T>
inline const std::string& ENetworkDisconnectionReason_Name(T enum_t_value) {
static_assert(::std::is_same<T, ENetworkDisconnectionReason>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ENetworkDisconnectionReason_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
ENetworkDisconnectionReason_descriptor(), enum_t_value);
}
inline bool ENetworkDisconnectionReason_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ENetworkDisconnectionReason* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ENetworkDisconnectionReason>(
ENetworkDisconnectionReason_descriptor(), name, value);
}
// ===================================================================
// ===================================================================
static const int kNetworkConnectionTokenFieldNumber = 50500;
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions,
::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false >
network_connection_token;
static const int kNetworkConnectionDetailTokenFieldNumber = 50501;
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions,
::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false >
network_connection_detail_token;
static const int kAllowedFromClientFieldNumber = 50502;
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions,
::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false >
allowed_from_client;
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
PROTOBUF_NAMESPACE_OPEN
template <> struct is_proto_enum< ::ENetworkDisconnectionReason> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::ENetworkDisconnectionReason>() {
return ::ENetworkDisconnectionReason_descriptor();
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_network_5fconnection_2eproto
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,986 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: networksystem_protomessages.proto
#include "networksystem_protomessages.pb.h"
#include <algorithm>
#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>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
PROTOBUF_CONSTEXPR NetMessageSplitscreenUserChanged::NetMessageSplitscreenUserChanged(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_._has_bits_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_.slot_)*/0u} {}
struct NetMessageSplitscreenUserChangedDefaultTypeInternal {
PROTOBUF_CONSTEXPR NetMessageSplitscreenUserChangedDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~NetMessageSplitscreenUserChangedDefaultTypeInternal() {}
union {
NetMessageSplitscreenUserChanged _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetMessageSplitscreenUserChangedDefaultTypeInternal _NetMessageSplitscreenUserChanged_default_instance_;
PROTOBUF_CONSTEXPR NetMessageConnectionClosed::NetMessageConnectionClosed(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_._has_bits_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.reason_)*/0u} {}
struct NetMessageConnectionClosedDefaultTypeInternal {
PROTOBUF_CONSTEXPR NetMessageConnectionClosedDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~NetMessageConnectionClosedDefaultTypeInternal() {}
union {
NetMessageConnectionClosed _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetMessageConnectionClosedDefaultTypeInternal _NetMessageConnectionClosed_default_instance_;
PROTOBUF_CONSTEXPR NetMessageConnectionCrashed::NetMessageConnectionCrashed(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_._has_bits_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.reason_)*/0u} {}
struct NetMessageConnectionCrashedDefaultTypeInternal {
PROTOBUF_CONSTEXPR NetMessageConnectionCrashedDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~NetMessageConnectionCrashedDefaultTypeInternal() {}
union {
NetMessageConnectionCrashed _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetMessageConnectionCrashedDefaultTypeInternal _NetMessageConnectionCrashed_default_instance_;
PROTOBUF_CONSTEXPR NetMessagePacketStart::NetMessagePacketStart(
::_pbi::ConstantInitialized) {}
struct NetMessagePacketStartDefaultTypeInternal {
PROTOBUF_CONSTEXPR NetMessagePacketStartDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~NetMessagePacketStartDefaultTypeInternal() {}
union {
NetMessagePacketStart _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetMessagePacketStartDefaultTypeInternal _NetMessagePacketStart_default_instance_;
PROTOBUF_CONSTEXPR NetMessagePacketEnd::NetMessagePacketEnd(
::_pbi::ConstantInitialized) {}
struct NetMessagePacketEndDefaultTypeInternal {
PROTOBUF_CONSTEXPR NetMessagePacketEndDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~NetMessagePacketEndDefaultTypeInternal() {}
union {
NetMessagePacketEnd _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetMessagePacketEndDefaultTypeInternal _NetMessagePacketEnd_default_instance_;
static ::_pb::Metadata file_level_metadata_networksystem_5fprotomessages_2eproto[5];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_networksystem_5fprotomessages_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_networksystem_5fprotomessages_2eproto = nullptr;
const uint32_t TableStruct_networksystem_5fprotomessages_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
PROTOBUF_FIELD_OFFSET(::NetMessageSplitscreenUserChanged, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::NetMessageSplitscreenUserChanged, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::NetMessageSplitscreenUserChanged, _impl_.slot_),
0,
PROTOBUF_FIELD_OFFSET(::NetMessageConnectionClosed, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::NetMessageConnectionClosed, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::NetMessageConnectionClosed, _impl_.reason_),
PROTOBUF_FIELD_OFFSET(::NetMessageConnectionClosed, _impl_.message_),
1,
0,
PROTOBUF_FIELD_OFFSET(::NetMessageConnectionCrashed, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::NetMessageConnectionCrashed, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::NetMessageConnectionCrashed, _impl_.reason_),
PROTOBUF_FIELD_OFFSET(::NetMessageConnectionCrashed, _impl_.message_),
1,
0,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::NetMessagePacketStart, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::NetMessagePacketEnd, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 7, -1, sizeof(::NetMessageSplitscreenUserChanged)},
{ 8, 16, -1, sizeof(::NetMessageConnectionClosed)},
{ 18, 26, -1, sizeof(::NetMessageConnectionCrashed)},
{ 28, -1, -1, sizeof(::NetMessagePacketStart)},
{ 34, -1, -1, sizeof(::NetMessagePacketEnd)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::_NetMessageSplitscreenUserChanged_default_instance_._instance,
&::_NetMessageConnectionClosed_default_instance_._instance,
&::_NetMessageConnectionCrashed_default_instance_._instance,
&::_NetMessagePacketStart_default_instance_._instance,
&::_NetMessagePacketEnd_default_instance_._instance,
};
const char descriptor_table_protodef_networksystem_5fprotomessages_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n!networksystem_protomessages.proto\"0\n N"
"etMessageSplitscreenUserChanged\022\014\n\004slot\030"
"\001 \001(\r\"=\n\032NetMessageConnectionClosed\022\016\n\006r"
"eason\030\001 \001(\r\022\017\n\007message\030\002 \001(\t\">\n\033NetMessa"
"geConnectionCrashed\022\016\n\006reason\030\001 \001(\r\022\017\n\007m"
"essage\030\002 \001(\t\"\027\n\025NetMessagePacketStart\"\025\n"
"\023NetMessagePacketEnd"
;
static ::_pbi::once_flag descriptor_table_networksystem_5fprotomessages_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_networksystem_5fprotomessages_2eproto = {
false, false, 260, descriptor_table_protodef_networksystem_5fprotomessages_2eproto,
"networksystem_protomessages.proto",
&descriptor_table_networksystem_5fprotomessages_2eproto_once, nullptr, 0, 5,
schemas, file_default_instances, TableStruct_networksystem_5fprotomessages_2eproto::offsets,
file_level_metadata_networksystem_5fprotomessages_2eproto, file_level_enum_descriptors_networksystem_5fprotomessages_2eproto,
file_level_service_descriptors_networksystem_5fprotomessages_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_networksystem_5fprotomessages_2eproto_getter() {
return &descriptor_table_networksystem_5fprotomessages_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_networksystem_5fprotomessages_2eproto(&descriptor_table_networksystem_5fprotomessages_2eproto);
// ===================================================================
class NetMessageSplitscreenUserChanged::_Internal {
public:
using HasBits = decltype(std::declval<NetMessageSplitscreenUserChanged>()._impl_._has_bits_);
static void set_has_slot(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
};
NetMessageSplitscreenUserChanged::NetMessageSplitscreenUserChanged(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:NetMessageSplitscreenUserChanged)
}
NetMessageSplitscreenUserChanged::NetMessageSplitscreenUserChanged(const NetMessageSplitscreenUserChanged& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
NetMessageSplitscreenUserChanged* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){from._impl_._has_bits_}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.slot_){}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.slot_ = from._impl_.slot_;
// @@protoc_insertion_point(copy_constructor:NetMessageSplitscreenUserChanged)
}
inline void NetMessageSplitscreenUserChanged::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.slot_){0u}
};
}
NetMessageSplitscreenUserChanged::~NetMessageSplitscreenUserChanged() {
// @@protoc_insertion_point(destructor:NetMessageSplitscreenUserChanged)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void NetMessageSplitscreenUserChanged::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void NetMessageSplitscreenUserChanged::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void NetMessageSplitscreenUserChanged::Clear() {
// @@protoc_insertion_point(message_clear_start:NetMessageSplitscreenUserChanged)
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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* NetMessageSplitscreenUserChanged::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional uint32 slot = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_Internal::set_has_slot(&has_bits);
_impl_.slot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* NetMessageSplitscreenUserChanged::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:NetMessageSplitscreenUserChanged)
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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:NetMessageSplitscreenUserChanged)
return target;
}
size_t NetMessageSplitscreenUserChanged::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:NetMessageSplitscreenUserChanged)
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 ::PROTOBUF_NAMESPACE_ID::Message::ClassData NetMessageSplitscreenUserChanged::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
NetMessageSplitscreenUserChanged::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NetMessageSplitscreenUserChanged::GetClassData() const { return &_class_data_; }
void NetMessageSplitscreenUserChanged::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<NetMessageSplitscreenUserChanged*>(&to_msg);
auto& from = static_cast<const NetMessageSplitscreenUserChanged&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:NetMessageSplitscreenUserChanged)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_has_slot()) {
_this->_internal_set_slot(from._internal_slot());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void NetMessageSplitscreenUserChanged::CopyFrom(const NetMessageSplitscreenUserChanged& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:NetMessageSplitscreenUserChanged)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool NetMessageSplitscreenUserChanged::IsInitialized() const {
return true;
}
void NetMessageSplitscreenUserChanged::InternalSwap(NetMessageSplitscreenUserChanged* 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_);
}
::PROTOBUF_NAMESPACE_ID::Metadata NetMessageSplitscreenUserChanged::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_networksystem_5fprotomessages_2eproto_getter, &descriptor_table_networksystem_5fprotomessages_2eproto_once,
file_level_metadata_networksystem_5fprotomessages_2eproto[0]);
}
// ===================================================================
class NetMessageConnectionClosed::_Internal {
public:
using HasBits = decltype(std::declval<NetMessageConnectionClosed>()._impl_._has_bits_);
static void set_has_reason(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
static void set_has_message(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
};
NetMessageConnectionClosed::NetMessageConnectionClosed(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:NetMessageConnectionClosed)
}
NetMessageConnectionClosed::NetMessageConnectionClosed(const NetMessageConnectionClosed& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
NetMessageConnectionClosed* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){from._impl_._has_bits_}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.message_){}
, decltype(_impl_.reason_){}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.message_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.message_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (from._internal_has_message()) {
_this->_impl_.message_.Set(from._internal_message(),
_this->GetArenaForAllocation());
}
_this->_impl_.reason_ = from._impl_.reason_;
// @@protoc_insertion_point(copy_constructor:NetMessageConnectionClosed)
}
inline void NetMessageConnectionClosed::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.message_){}
, decltype(_impl_.reason_){0u}
};
_impl_.message_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.message_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
NetMessageConnectionClosed::~NetMessageConnectionClosed() {
// @@protoc_insertion_point(destructor:NetMessageConnectionClosed)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void NetMessageConnectionClosed::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.message_.Destroy();
}
void NetMessageConnectionClosed::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void NetMessageConnectionClosed::Clear() {
// @@protoc_insertion_point(message_clear_start:NetMessageConnectionClosed)
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) {
_impl_.message_.ClearNonDefaultToEmpty();
}
_impl_.reason_ = 0u;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* NetMessageConnectionClosed::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional uint32 reason = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_Internal::set_has_reason(&has_bits);
_impl_.reason_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional string message = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_message();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
#ifndef NDEBUG
::_pbi::VerifyUTF8(str, "NetMessageConnectionClosed.message");
#endif // !NDEBUG
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* NetMessageConnectionClosed::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:NetMessageConnectionClosed)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
// optional uint32 reason = 1;
if (cached_has_bits & 0x00000002u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_reason(), target);
}
// optional string message = 2;
if (cached_has_bits & 0x00000001u) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
this->_internal_message().data(), static_cast<int>(this->_internal_message().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
"NetMessageConnectionClosed.message");
target = stream->WriteStringMaybeAliased(
2, this->_internal_message(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:NetMessageConnectionClosed)
return target;
}
size_t NetMessageConnectionClosed::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:NetMessageConnectionClosed)
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 string message = 2;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_message());
}
// optional uint32 reason = 1;
if (cached_has_bits & 0x00000002u) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_reason());
}
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NetMessageConnectionClosed::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
NetMessageConnectionClosed::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NetMessageConnectionClosed::GetClassData() const { return &_class_data_; }
void NetMessageConnectionClosed::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<NetMessageConnectionClosed*>(&to_msg);
auto& from = static_cast<const NetMessageConnectionClosed&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:NetMessageConnectionClosed)
GOOGLE_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->_internal_set_message(from._internal_message());
}
if (cached_has_bits & 0x00000002u) {
_this->_impl_.reason_ = from._impl_.reason_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void NetMessageConnectionClosed::CopyFrom(const NetMessageConnectionClosed& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:NetMessageConnectionClosed)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool NetMessageConnectionClosed::IsInitialized() const {
return true;
}
void NetMessageConnectionClosed::InternalSwap(NetMessageConnectionClosed* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.message_, lhs_arena,
&other->_impl_.message_, rhs_arena
);
swap(_impl_.reason_, other->_impl_.reason_);
}
::PROTOBUF_NAMESPACE_ID::Metadata NetMessageConnectionClosed::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_networksystem_5fprotomessages_2eproto_getter, &descriptor_table_networksystem_5fprotomessages_2eproto_once,
file_level_metadata_networksystem_5fprotomessages_2eproto[1]);
}
// ===================================================================
class NetMessageConnectionCrashed::_Internal {
public:
using HasBits = decltype(std::declval<NetMessageConnectionCrashed>()._impl_._has_bits_);
static void set_has_reason(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
static void set_has_message(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
};
NetMessageConnectionCrashed::NetMessageConnectionCrashed(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:NetMessageConnectionCrashed)
}
NetMessageConnectionCrashed::NetMessageConnectionCrashed(const NetMessageConnectionCrashed& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
NetMessageConnectionCrashed* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){from._impl_._has_bits_}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.message_){}
, decltype(_impl_.reason_){}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.message_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.message_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (from._internal_has_message()) {
_this->_impl_.message_.Set(from._internal_message(),
_this->GetArenaForAllocation());
}
_this->_impl_.reason_ = from._impl_.reason_;
// @@protoc_insertion_point(copy_constructor:NetMessageConnectionCrashed)
}
inline void NetMessageConnectionCrashed::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.message_){}
, decltype(_impl_.reason_){0u}
};
_impl_.message_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.message_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
NetMessageConnectionCrashed::~NetMessageConnectionCrashed() {
// @@protoc_insertion_point(destructor:NetMessageConnectionCrashed)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void NetMessageConnectionCrashed::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.message_.Destroy();
}
void NetMessageConnectionCrashed::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void NetMessageConnectionCrashed::Clear() {
// @@protoc_insertion_point(message_clear_start:NetMessageConnectionCrashed)
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) {
_impl_.message_.ClearNonDefaultToEmpty();
}
_impl_.reason_ = 0u;
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* NetMessageConnectionCrashed::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional uint32 reason = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_Internal::set_has_reason(&has_bits);
_impl_.reason_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional string message = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_message();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
#ifndef NDEBUG
::_pbi::VerifyUTF8(str, "NetMessageConnectionCrashed.message");
#endif // !NDEBUG
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* NetMessageConnectionCrashed::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:NetMessageConnectionCrashed)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
// optional uint32 reason = 1;
if (cached_has_bits & 0x00000002u) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_reason(), target);
}
// optional string message = 2;
if (cached_has_bits & 0x00000001u) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
this->_internal_message().data(), static_cast<int>(this->_internal_message().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
"NetMessageConnectionCrashed.message");
target = stream->WriteStringMaybeAliased(
2, this->_internal_message(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:NetMessageConnectionCrashed)
return target;
}
size_t NetMessageConnectionCrashed::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:NetMessageConnectionCrashed)
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 string message = 2;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_message());
}
// optional uint32 reason = 1;
if (cached_has_bits & 0x00000002u) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_reason());
}
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NetMessageConnectionCrashed::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
NetMessageConnectionCrashed::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NetMessageConnectionCrashed::GetClassData() const { return &_class_data_; }
void NetMessageConnectionCrashed::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<NetMessageConnectionCrashed*>(&to_msg);
auto& from = static_cast<const NetMessageConnectionCrashed&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:NetMessageConnectionCrashed)
GOOGLE_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->_internal_set_message(from._internal_message());
}
if (cached_has_bits & 0x00000002u) {
_this->_impl_.reason_ = from._impl_.reason_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void NetMessageConnectionCrashed::CopyFrom(const NetMessageConnectionCrashed& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:NetMessageConnectionCrashed)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool NetMessageConnectionCrashed::IsInitialized() const {
return true;
}
void NetMessageConnectionCrashed::InternalSwap(NetMessageConnectionCrashed* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.message_, lhs_arena,
&other->_impl_.message_, rhs_arena
);
swap(_impl_.reason_, other->_impl_.reason_);
}
::PROTOBUF_NAMESPACE_ID::Metadata NetMessageConnectionCrashed::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_networksystem_5fprotomessages_2eproto_getter, &descriptor_table_networksystem_5fprotomessages_2eproto_once,
file_level_metadata_networksystem_5fprotomessages_2eproto[2]);
}
// ===================================================================
class NetMessagePacketStart::_Internal {
public:
};
NetMessagePacketStart::NetMessagePacketStart(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
// @@protoc_insertion_point(arena_constructor:NetMessagePacketStart)
}
NetMessagePacketStart::NetMessagePacketStart(const NetMessagePacketStart& from)
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
NetMessagePacketStart* const _this = this; (void)_this;
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:NetMessagePacketStart)
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NetMessagePacketStart::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NetMessagePacketStart::GetClassData() const { return &_class_data_; }
::PROTOBUF_NAMESPACE_ID::Metadata NetMessagePacketStart::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_networksystem_5fprotomessages_2eproto_getter, &descriptor_table_networksystem_5fprotomessages_2eproto_once,
file_level_metadata_networksystem_5fprotomessages_2eproto[3]);
}
// ===================================================================
class NetMessagePacketEnd::_Internal {
public:
};
NetMessagePacketEnd::NetMessagePacketEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
// @@protoc_insertion_point(arena_constructor:NetMessagePacketEnd)
}
NetMessagePacketEnd::NetMessagePacketEnd(const NetMessagePacketEnd& from)
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
NetMessagePacketEnd* const _this = this; (void)_this;
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:NetMessagePacketEnd)
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NetMessagePacketEnd::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NetMessagePacketEnd::GetClassData() const { return &_class_data_; }
::PROTOBUF_NAMESPACE_ID::Metadata NetMessagePacketEnd::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_networksystem_5fprotomessages_2eproto_getter, &descriptor_table_networksystem_5fprotomessages_2eproto_once,
file_level_metadata_networksystem_5fprotomessages_2eproto[4]);
}
// @@protoc_insertion_point(namespace_scope)
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::NetMessageSplitscreenUserChanged*
Arena::CreateMaybeMessage< ::NetMessageSplitscreenUserChanged >(Arena* arena) {
return Arena::CreateMessageInternal< ::NetMessageSplitscreenUserChanged >(arena);
}
template<> PROTOBUF_NOINLINE ::NetMessageConnectionClosed*
Arena::CreateMaybeMessage< ::NetMessageConnectionClosed >(Arena* arena) {
return Arena::CreateMessageInternal< ::NetMessageConnectionClosed >(arena);
}
template<> PROTOBUF_NOINLINE ::NetMessageConnectionCrashed*
Arena::CreateMaybeMessage< ::NetMessageConnectionCrashed >(Arena* arena) {
return Arena::CreateMessageInternal< ::NetMessageConnectionCrashed >(arena);
}
template<> PROTOBUF_NOINLINE ::NetMessagePacketStart*
Arena::CreateMaybeMessage< ::NetMessagePacketStart >(Arena* arena) {
return Arena::CreateMessageInternal< ::NetMessagePacketStart >(arena);
}
template<> PROTOBUF_NOINLINE ::NetMessagePacketEnd*
Arena::CreateMaybeMessage< ::NetMessagePacketEnd >(Arena* arena) {
return Arena::CreateMessageInternal< ::NetMessagePacketEnd >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More