From 9f37324266c56e4b02a037e47fd3e73945ba3c14 Mon Sep 17 00:00:00 2001 From: a2x <45197573+a2x@users.noreply.github.com> Date: Sun, 7 Apr 2024 15:35:48 +1000 Subject: [PATCH] Fix for enum values that could be out of range for their datatype --- output/animationsystem.dll.cs | 4 ++-- output/animationsystem.dll.hpp | 4 ++-- output/animationsystem.dll.rs | 18 +++++++-------- output/buttons.cs | 2 +- output/buttons.hpp | 2 +- output/buttons.rs | 2 +- output/client.dll.cs | 14 ++++++------ output/client.dll.hpp | 14 ++++++------ output/client.dll.rs | 16 ++++++------- output/engine2.dll.cs | 2 +- output/engine2.dll.hpp | 2 +- output/engine2.dll.rs | 6 ++--- output/host.dll.cs | 2 +- output/host.dll.hpp | 2 +- output/host.dll.rs | 4 ++-- output/info.json | 2 +- output/interfaces.cs | 2 +- output/interfaces.hpp | 2 +- output/interfaces.rs | 2 +- output/materialsystem2.dll.cs | 2 +- output/materialsystem2.dll.hpp | 2 +- output/materialsystem2.dll.rs | 4 ++-- output/meshsystem.dll.cs | 2 +- output/meshsystem.dll.hpp | 2 +- output/meshsystem.dll.rs | 4 ++-- output/networksystem.dll.cs | 2 +- output/networksystem.dll.hpp | 2 +- output/networksystem.dll.rs | 4 ++-- output/offsets.cs | 2 +- output/offsets.hpp | 2 +- output/offsets.rs | 2 +- output/panorama.dll.cs | 2 +- output/panorama.dll.hpp | 2 +- output/panorama.dll.rs | 4 ++-- output/particles.dll.cs | 6 ++--- output/particles.dll.hpp | 6 ++--- output/particles.dll.rs | 40 ++++++++++++++++----------------- output/pulse_system.dll.cs | 2 +- output/pulse_system.dll.hpp | 2 +- output/pulse_system.dll.rs | 6 ++--- output/rendersystemdx11.dll.cs | 2 +- output/rendersystemdx11.dll.hpp | 2 +- output/rendersystemdx11.dll.rs | 8 +++---- output/resourcesystem.dll.cs | 2 +- output/resourcesystem.dll.hpp | 2 +- output/resourcesystem.dll.rs | 4 ++-- output/scenefilecache.dll.cs | 2 +- output/scenefilecache.dll.hpp | 2 +- output/scenefilecache.dll.rs | 4 ++-- output/scenesystem.dll.cs | 2 +- output/scenesystem.dll.hpp | 2 +- output/scenesystem.dll.rs | 4 ++-- output/schemasystem.dll.cs | 2 +- output/schemasystem.dll.hpp | 2 +- output/schemasystem.dll.rs | 4 ++-- output/server.dll.cs | 8 +++---- output/server.dll.hpp | 8 +++---- output/server.dll.rs | 38 +++++++++++++++---------------- output/soundsystem.dll.cs | 2 +- output/soundsystem.dll.hpp | 2 +- output/soundsystem.dll.rs | 6 ++--- output/vphysics2.dll.cs | 2 +- output/vphysics2.dll.hpp | 2 +- output/vphysics2.dll.rs | 4 ++-- output/worldrenderer.dll.cs | 2 +- output/worldrenderer.dll.hpp | 2 +- output/worldrenderer.dll.rs | 4 ++-- src/analysis/schemas.rs | 15 ++++--------- src/output/schemas.rs | 12 ++++++++-- 69 files changed, 177 insertions(+), 176 deletions(-) diff --git a/output/animationsystem.dll.cs b/output/animationsystem.dll.cs index f96b049..6aecaf1 100644 --- a/output/animationsystem.dll.cs +++ b/output/animationsystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: animationsystem.dll @@ -2697,7 +2697,7 @@ namespace CS2Dumper.Schemas { public static class CStateMachineUpdateNode { public const nint m_stateMachine = 0x68; // CAnimStateMachineUpdater public const nint m_stateData = 0xC0; // CUtlVector - public const nint m_transitionData = 0xD8; // CUtlVector public const nint m_bBlockWaningTags = 0xF4; // bool public const nint m_bLockStateWhenWaning = 0xF5; // bool } diff --git a/output/animationsystem.dll.hpp b/output/animationsystem.dll.hpp index 45dbda4..d33be88 100644 --- a/output/animationsystem.dll.hpp +++ b/output/animationsystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once @@ -2702,7 +2702,7 @@ namespace cs2_dumper { namespace CStateMachineUpdateNode { constexpr std::ptrdiff_t m_stateMachine = 0x68; // CAnimStateMachineUpdater constexpr std::ptrdiff_t m_stateData = 0xC0; // CUtlVector - constexpr std::ptrdiff_t m_transitionData = 0xD8; // CUtlVector constexpr std::ptrdiff_t m_bBlockWaningTags = 0xF4; // bool constexpr std::ptrdiff_t m_bLockStateWhenWaning = 0xF5; // bool } diff --git a/output/animationsystem.dll.rs b/output/animationsystem.dll.rs index 439726f..dff9279 100644 --- a/output/animationsystem.dll.rs +++ b/output/animationsystem.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { @@ -35,7 +35,7 @@ pub mod cs2_dumper { // Members count: 4 #[repr(u32)] pub enum BoneTransformSpace_t { - BoneTransformSpace_Invalid = 0xFFFFFFFFFFFFFFFF, + BoneTransformSpace_Invalid = u32::MAX, BoneTransformSpace_Parent = 0x0, BoneTransformSpace_Model = 0x1, BoneTransformSpace_World = 0x2 @@ -82,7 +82,7 @@ pub mod cs2_dumper { // Members count: 5 #[repr(u8)] pub enum MovementGait_t { - eInvalid = 0xFFFFFFFFFFFFFFFF, + eInvalid = u8::MAX, eWalk = 0x0, eJog = 0x1, eRun = 0x2, @@ -266,7 +266,7 @@ pub mod cs2_dumper { // Members count: 4 #[repr(u32)] pub enum ModelBoneFlexComponent_t { - MODEL_BONE_FLEX_INVALID = 0xFFFFFFFFFFFFFFFF, + MODEL_BONE_FLEX_INVALID = u32::MAX, MODEL_BONE_FLEX_TX = 0x0, MODEL_BONE_FLEX_TY = 0x1, MODEL_BONE_FLEX_TZ = 0x2 @@ -538,7 +538,7 @@ pub mod cs2_dumper { // Members count: 3 #[repr(u16)] pub enum AnimScriptType { - ANIMSCRIPT_TYPE_INVALID = 0xFFFFFFFFFFFFFFFF, + ANIMSCRIPT_TYPE_INVALID = u16::MAX, ANIMSCRIPT_FUSE_GENERAL = 0x0, ANIMSCRIPT_FUSE_STATEMACHINE = 0x1 } @@ -589,7 +589,7 @@ pub mod cs2_dumper { // Members count: 18 #[repr(u32)] pub enum ParticleAttachment_t { - PATTACH_INVALID = 0xFFFFFFFFFFFFFFFF, + PATTACH_INVALID = u32::MAX, PATTACH_ABSORIGIN = 0x0, PATTACH_ABSORIGIN_FOLLOW = 0x1, PATTACH_CUSTOMORIGIN = 0x2, @@ -723,7 +723,7 @@ pub mod cs2_dumper { // Members count: 5 #[repr(u32)] pub enum ModelConfigAttachmentType_t { - MODEL_CONFIG_ATTACHMENT_INVALID = 0xFFFFFFFFFFFFFFFF, + MODEL_CONFIG_ATTACHMENT_INVALID = u32::MAX, MODEL_CONFIG_ATTACHMENT_BONE_OR_ATTACHMENT = 0x0, MODEL_CONFIG_ATTACHMENT_ROOT_RELATIVE = 0x1, MODEL_CONFIG_ATTACHMENT_BONEMERGE = 0x2, @@ -2770,7 +2770,7 @@ pub mod cs2_dumper { pub mod CStateMachineUpdateNode { pub const m_stateMachine: usize = 0x68; // CAnimStateMachineUpdater pub const m_stateData: usize = 0xC0; // CUtlVector - pub const m_transitionData: usize = 0xD8; // CUtlVector pub const m_bBlockWaningTags: usize = 0xF4; // bool pub const m_bLockStateWhenWaning: usize = 0xF5; // bool } diff --git a/output/buttons.cs b/output/buttons.cs index 955b6e5..c3479ab 100644 --- a/output/buttons.cs +++ b/output/buttons.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper { // Module: client.dll diff --git a/output/buttons.hpp b/output/buttons.hpp index e6b8ebc..6f629ce 100644 --- a/output/buttons.hpp +++ b/output/buttons.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/buttons.rs b/output/buttons.rs index 42f38d6..f9d8d4d 100644 --- a/output/buttons.rs +++ b/output/buttons.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #![allow(non_upper_case_globals, non_camel_case_types, unused)] diff --git a/output/client.dll.cs b/output/client.dll.cs index c499653..0df7018 100644 --- a/output/client.dll.cs +++ b/output/client.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: client.dll @@ -732,7 +732,7 @@ namespace CS2Dumper.Schemas { public const nint m_flOldPlayerZ = 0x138; // float32 public const nint m_flOldPlayerViewOffsetZ = 0x13C; // float32 public const nint m_CurrentFog = 0x140; // fogparams_t - public const nint m_hOldFogController = 0x1A8; // + public const nint m_hOldFogController = 0x1A8; // CHandle public const nint m_bOverrideFogColor = 0x1AC; // bool[5] public const nint m_OverrideFogColor = 0x1B1; // Color[5] public const nint m_bOverrideFogStartEnd = 0x1C5; // bool[5] @@ -1936,7 +1936,7 @@ namespace CS2Dumper.Schemas { // Metadata: // NetworkVarNames: m_hCtrl (CHandle) public static class C_fogplayerparams_t { - public const nint m_hCtrl = 0x8; // + public const nint m_hCtrl = 0x8; // CHandle public const nint m_flTransitionTime = 0xC; // float32 public const nint m_OldColor = 0x10; // Color public const nint m_flOldStart = 0x14; // float32 @@ -4245,8 +4245,8 @@ namespace CS2Dumper.Schemas { // NetworkVarNames: m_iAmmo (uint16) public static class CPlayer_WeaponServices { public const nint m_hMyWeapons = 0x40; // C_NetworkUtlVectorBase> - public const nint m_hActiveWeapon = 0x58; // CHandle - public const nint m_hLastWeapon = 0x5C; // CHandle + public const nint m_hActiveWeapon = 0x58; // + public const nint m_hLastWeapon = 0x5C; // public const nint m_iAmmo = 0x60; // uint16[32] } // Parent: None @@ -4526,7 +4526,7 @@ namespace CS2Dumper.Schemas { // NetworkVarNames: m_weaponPurchasesThisMatch (WeaponPurchaseTracker_t) // NetworkVarNames: m_weaponPurchasesThisRound (WeaponPurchaseTracker_t) public static class CCSPlayer_ActionTrackingServices { - public const nint m_hLastWeaponBeforeC4AutoSwitch = 0x40; // CHandle + public const nint m_hLastWeaponBeforeC4AutoSwitch = 0x40; // public const nint m_bIsRescuing = 0x44; // bool public const nint m_weaponPurchasesThisMatch = 0x48; // WeaponPurchaseTracker_t public const nint m_weaponPurchasesThisRound = 0xA0; // WeaponPurchaseTracker_t @@ -6302,7 +6302,7 @@ namespace CS2Dumper.Schemas { public const nint m_nViewModelIndex = 0xEEC; // uint32 public const nint m_nAnimationParity = 0xEF0; // uint32 public const nint m_flAnimationStartTime = 0xEF4; // float32 - public const nint m_hWeapon = 0xEF8; // CHandle + public const nint m_hWeapon = 0xEF8; // public const nint m_sVMName = 0xF00; // CUtlSymbolLarge public const nint m_sAnimationPrefix = 0xF08; // CUtlSymbolLarge public const nint m_hWeaponModel = 0xF10; // CHandle diff --git a/output/client.dll.hpp b/output/client.dll.hpp index f9bc253..ed8bb7e 100644 --- a/output/client.dll.hpp +++ b/output/client.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once @@ -737,7 +737,7 @@ namespace cs2_dumper { constexpr std::ptrdiff_t m_flOldPlayerZ = 0x138; // float32 constexpr std::ptrdiff_t m_flOldPlayerViewOffsetZ = 0x13C; // float32 constexpr std::ptrdiff_t m_CurrentFog = 0x140; // fogparams_t - constexpr std::ptrdiff_t m_hOldFogController = 0x1A8; // + constexpr std::ptrdiff_t m_hOldFogController = 0x1A8; // CHandle constexpr std::ptrdiff_t m_bOverrideFogColor = 0x1AC; // bool[5] constexpr std::ptrdiff_t m_OverrideFogColor = 0x1B1; // Color[5] constexpr std::ptrdiff_t m_bOverrideFogStartEnd = 0x1C5; // bool[5] @@ -1941,7 +1941,7 @@ namespace cs2_dumper { // Metadata: // NetworkVarNames: m_hCtrl (CHandle) namespace C_fogplayerparams_t { - constexpr std::ptrdiff_t m_hCtrl = 0x8; // + constexpr std::ptrdiff_t m_hCtrl = 0x8; // CHandle constexpr std::ptrdiff_t m_flTransitionTime = 0xC; // float32 constexpr std::ptrdiff_t m_OldColor = 0x10; // Color constexpr std::ptrdiff_t m_flOldStart = 0x14; // float32 @@ -4250,8 +4250,8 @@ namespace cs2_dumper { // NetworkVarNames: m_iAmmo (uint16) namespace CPlayer_WeaponServices { constexpr std::ptrdiff_t m_hMyWeapons = 0x40; // C_NetworkUtlVectorBase> - constexpr std::ptrdiff_t m_hActiveWeapon = 0x58; // CHandle - constexpr std::ptrdiff_t m_hLastWeapon = 0x5C; // CHandle + constexpr std::ptrdiff_t m_hActiveWeapon = 0x58; // + constexpr std::ptrdiff_t m_hLastWeapon = 0x5C; // constexpr std::ptrdiff_t m_iAmmo = 0x60; // uint16[32] } // Parent: None @@ -4531,7 +4531,7 @@ namespace cs2_dumper { // NetworkVarNames: m_weaponPurchasesThisMatch (WeaponPurchaseTracker_t) // NetworkVarNames: m_weaponPurchasesThisRound (WeaponPurchaseTracker_t) namespace CCSPlayer_ActionTrackingServices { - constexpr std::ptrdiff_t m_hLastWeaponBeforeC4AutoSwitch = 0x40; // CHandle + constexpr std::ptrdiff_t m_hLastWeaponBeforeC4AutoSwitch = 0x40; // constexpr std::ptrdiff_t m_bIsRescuing = 0x44; // bool constexpr std::ptrdiff_t m_weaponPurchasesThisMatch = 0x48; // WeaponPurchaseTracker_t constexpr std::ptrdiff_t m_weaponPurchasesThisRound = 0xA0; // WeaponPurchaseTracker_t @@ -6307,7 +6307,7 @@ namespace cs2_dumper { constexpr std::ptrdiff_t m_nViewModelIndex = 0xEEC; // uint32 constexpr std::ptrdiff_t m_nAnimationParity = 0xEF0; // uint32 constexpr std::ptrdiff_t m_flAnimationStartTime = 0xEF4; // float32 - constexpr std::ptrdiff_t m_hWeapon = 0xEF8; // CHandle + constexpr std::ptrdiff_t m_hWeapon = 0xEF8; // constexpr std::ptrdiff_t m_sVMName = 0xF00; // CUtlSymbolLarge constexpr std::ptrdiff_t m_sAnimationPrefix = 0xF08; // CUtlSymbolLarge constexpr std::ptrdiff_t m_hWeaponModel = 0xF10; // CHandle diff --git a/output/client.dll.rs b/output/client.dll.rs index b2a43cd..4b88208 100644 --- a/output/client.dll.rs +++ b/output/client.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { @@ -742,7 +742,7 @@ pub mod cs2_dumper { pub const m_flOldPlayerZ: usize = 0x138; // float32 pub const m_flOldPlayerViewOffsetZ: usize = 0x13C; // float32 pub const m_CurrentFog: usize = 0x140; // fogparams_t - pub const m_hOldFogController: usize = 0x1A8; // + pub const m_hOldFogController: usize = 0x1A8; // CHandle pub const m_bOverrideFogColor: usize = 0x1AC; // bool[5] pub const m_OverrideFogColor: usize = 0x1B1; // Color[5] pub const m_bOverrideFogStartEnd: usize = 0x1C5; // bool[5] @@ -1946,7 +1946,7 @@ pub mod cs2_dumper { // Metadata: // NetworkVarNames: m_hCtrl (CHandle) pub mod C_fogplayerparams_t { - pub const m_hCtrl: usize = 0x8; // + pub const m_hCtrl: usize = 0x8; // CHandle pub const m_flTransitionTime: usize = 0xC; // float32 pub const m_OldColor: usize = 0x10; // Color pub const m_flOldStart: usize = 0x14; // float32 @@ -4255,8 +4255,8 @@ pub mod cs2_dumper { // NetworkVarNames: m_iAmmo (uint16) pub mod CPlayer_WeaponServices { pub const m_hMyWeapons: usize = 0x40; // C_NetworkUtlVectorBase> - pub const m_hActiveWeapon: usize = 0x58; // CHandle - pub const m_hLastWeapon: usize = 0x5C; // CHandle + pub const m_hActiveWeapon: usize = 0x58; // + pub const m_hLastWeapon: usize = 0x5C; // pub const m_iAmmo: usize = 0x60; // uint16[32] } // Parent: None @@ -4536,7 +4536,7 @@ pub mod cs2_dumper { // NetworkVarNames: m_weaponPurchasesThisMatch (WeaponPurchaseTracker_t) // NetworkVarNames: m_weaponPurchasesThisRound (WeaponPurchaseTracker_t) pub mod CCSPlayer_ActionTrackingServices { - pub const m_hLastWeaponBeforeC4AutoSwitch: usize = 0x40; // CHandle + pub const m_hLastWeaponBeforeC4AutoSwitch: usize = 0x40; // pub const m_bIsRescuing: usize = 0x44; // bool pub const m_weaponPurchasesThisMatch: usize = 0x48; // WeaponPurchaseTracker_t pub const m_weaponPurchasesThisRound: usize = 0xA0; // WeaponPurchaseTracker_t @@ -6312,7 +6312,7 @@ pub mod cs2_dumper { pub const m_nViewModelIndex: usize = 0xEEC; // uint32 pub const m_nAnimationParity: usize = 0xEF0; // uint32 pub const m_flAnimationStartTime: usize = 0xEF4; // float32 - pub const m_hWeapon: usize = 0xEF8; // CHandle + pub const m_hWeapon: usize = 0xEF8; // pub const m_sVMName: usize = 0xF00; // CUtlSymbolLarge pub const m_sAnimationPrefix: usize = 0xF08; // CUtlSymbolLarge pub const m_hWeaponModel: usize = 0xF10; // CHandle diff --git a/output/engine2.dll.cs b/output/engine2.dll.cs index 05822fa..d3e3b26 100644 --- a/output/engine2.dll.cs +++ b/output/engine2.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: engine2.dll diff --git a/output/engine2.dll.hpp b/output/engine2.dll.hpp index 195889f..e5df50d 100644 --- a/output/engine2.dll.hpp +++ b/output/engine2.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/engine2.dll.rs b/output/engine2.dll.rs index 09a7c95..98e54cc 100644 --- a/output/engine2.dll.rs +++ b/output/engine2.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { @@ -21,7 +21,7 @@ pub mod cs2_dumper { // Members count: 4 #[repr(u32)] pub enum EntityIOTargetType_t { - ENTITY_IO_TARGET_INVALID = 0xFFFFFFFFFFFFFFFF, + ENTITY_IO_TARGET_INVALID = u32::MAX, ENTITY_IO_TARGET_ENTITYNAME = 0x2, ENTITY_IO_TARGET_EHANDLE = 0x6, ENTITY_IO_TARGET_ENTITYNAME_OR_CLASSNAME = 0x7 diff --git a/output/host.dll.cs b/output/host.dll.cs index d549b44..bfdc6a0 100644 --- a/output/host.dll.cs +++ b/output/host.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: host.dll diff --git a/output/host.dll.hpp b/output/host.dll.hpp index ba3d0df..7ac1482 100644 --- a/output/host.dll.hpp +++ b/output/host.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/host.dll.rs b/output/host.dll.rs index ceda7fc..d8f5569 100644 --- a/output/host.dll.rs +++ b/output/host.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/output/info.json b/output/info.json index f1a6bea..0d9e3c3 100644 --- a/output/info.json +++ b/output/info.json @@ -1,4 +1,4 @@ { "build_number": 14001, - "timestamp": "2024-04-06T17:17:10.780616100+00:00" + "timestamp": "2024-04-07T05:30:39.851724900+00:00" } \ No newline at end of file diff --git a/output/interfaces.cs b/output/interfaces.cs index 32a8dc7..80661a7 100644 --- a/output/interfaces.cs +++ b/output/interfaces.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Interfaces { // Module: animationsystem.dll diff --git a/output/interfaces.hpp b/output/interfaces.hpp index 2beca6a..98b9696 100644 --- a/output/interfaces.hpp +++ b/output/interfaces.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/interfaces.rs b/output/interfaces.rs index 7a04de8..71c23a7 100644 --- a/output/interfaces.rs +++ b/output/interfaces.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #![allow(non_upper_case_globals, non_camel_case_types, unused)] diff --git a/output/materialsystem2.dll.cs b/output/materialsystem2.dll.cs index 38f4564..487e40d 100644 --- a/output/materialsystem2.dll.cs +++ b/output/materialsystem2.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: materialsystem2.dll diff --git a/output/materialsystem2.dll.hpp b/output/materialsystem2.dll.hpp index 24ae228..3d8814d 100644 --- a/output/materialsystem2.dll.hpp +++ b/output/materialsystem2.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/materialsystem2.dll.rs b/output/materialsystem2.dll.rs index 6c8350a..54fa5ea 100644 --- a/output/materialsystem2.dll.rs +++ b/output/materialsystem2.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/output/meshsystem.dll.cs b/output/meshsystem.dll.cs index 26b25b7..1e6a33e 100644 --- a/output/meshsystem.dll.cs +++ b/output/meshsystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { } diff --git a/output/meshsystem.dll.hpp b/output/meshsystem.dll.hpp index eddd5b9..a7083fa 100644 --- a/output/meshsystem.dll.hpp +++ b/output/meshsystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/meshsystem.dll.rs b/output/meshsystem.dll.rs index bae751e..06466e0 100644 --- a/output/meshsystem.dll.rs +++ b/output/meshsystem.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/output/networksystem.dll.cs b/output/networksystem.dll.cs index b1bfb5c..dfeda85 100644 --- a/output/networksystem.dll.cs +++ b/output/networksystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: networksystem.dll diff --git a/output/networksystem.dll.hpp b/output/networksystem.dll.hpp index 27eaf02..1f75054 100644 --- a/output/networksystem.dll.hpp +++ b/output/networksystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/networksystem.dll.rs b/output/networksystem.dll.rs index a099e6c..52a220b 100644 --- a/output/networksystem.dll.rs +++ b/output/networksystem.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/output/offsets.cs b/output/offsets.cs index 121dbf6..714be57 100644 --- a/output/offsets.cs +++ b/output/offsets.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Offsets { // Module: client.dll diff --git a/output/offsets.hpp b/output/offsets.hpp index 89bda2d..b915529 100644 --- a/output/offsets.hpp +++ b/output/offsets.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/offsets.rs b/output/offsets.rs index f9b6f50..3ab0651 100644 --- a/output/offsets.rs +++ b/output/offsets.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #![allow(non_upper_case_globals, non_camel_case_types, unused)] diff --git a/output/panorama.dll.cs b/output/panorama.dll.cs index 7eda398..6471a3b 100644 --- a/output/panorama.dll.cs +++ b/output/panorama.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: panorama.dll diff --git a/output/panorama.dll.hpp b/output/panorama.dll.hpp index 821c324..34d8230 100644 --- a/output/panorama.dll.hpp +++ b/output/panorama.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/panorama.dll.rs b/output/panorama.dll.rs index 50451db..11aa0c0 100644 --- a/output/panorama.dll.rs +++ b/output/panorama.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/output/particles.dll.cs b/output/particles.dll.cs index 3acb224..b976573 100644 --- a/output/particles.dll.cs +++ b/output/particles.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: particles.dll @@ -4613,9 +4613,9 @@ namespace CS2Dumper.Schemas { public const nint m_nControlPointNumber = 0x1C0; // int32 public const nint m_vecOffset = 0x1C8; // CParticleCollectionVecInput public const nint m_bOffsetLocal = 0x820; // bool - public const nint m_nParticleSelection = 0x824; // + public const nint m_nParticleSelection = 0x824; // ParticleSelection_t public const nint m_nParticleNumber = 0x828; // CParticleCollectionFloatInput - public const nint m_nPinBreakType = 0x980; // ParticlePinDistance_t + public const nint m_nPinBreakType = 0x980; // public const nint m_flBreakDistance = 0x988; // CParticleCollectionFloatInput public const nint m_flBreakSpeed = 0xAE0; // CParticleCollectionFloatInput public const nint m_flAge = 0xC38; // CParticleCollectionFloatInput diff --git a/output/particles.dll.hpp b/output/particles.dll.hpp index ccbb499..b90b8f2 100644 --- a/output/particles.dll.hpp +++ b/output/particles.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once @@ -4618,9 +4618,9 @@ namespace cs2_dumper { constexpr std::ptrdiff_t m_nControlPointNumber = 0x1C0; // int32 constexpr std::ptrdiff_t m_vecOffset = 0x1C8; // CParticleCollectionVecInput constexpr std::ptrdiff_t m_bOffsetLocal = 0x820; // bool - constexpr std::ptrdiff_t m_nParticleSelection = 0x824; // + constexpr std::ptrdiff_t m_nParticleSelection = 0x824; // ParticleSelection_t constexpr std::ptrdiff_t m_nParticleNumber = 0x828; // CParticleCollectionFloatInput - constexpr std::ptrdiff_t m_nPinBreakType = 0x980; // ParticlePinDistance_t + constexpr std::ptrdiff_t m_nPinBreakType = 0x980; // constexpr std::ptrdiff_t m_flBreakDistance = 0x988; // CParticleCollectionFloatInput constexpr std::ptrdiff_t m_flBreakSpeed = 0xAE0; // CParticleCollectionFloatInput constexpr std::ptrdiff_t m_flAge = 0xC38; // CParticleCollectionFloatInput diff --git a/output/particles.dll.rs b/output/particles.dll.rs index 43e5334..56ffb3b 100644 --- a/output/particles.dll.rs +++ b/output/particles.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { @@ -24,7 +24,7 @@ pub mod cs2_dumper { // Members count: 7 #[repr(u32)] pub enum Detail2Combo_t { - DETAIL_2_COMBO_UNINITIALIZED = 0xFFFFFFFFFFFFFFFF, + DETAIL_2_COMBO_UNINITIALIZED = u32::MAX, DETAIL_2_COMBO_OFF = 0x0, DETAIL_2_COMBO_ADD = 0x1, DETAIL_2_COMBO_ADD_SELF_ILLUM = 0x2, @@ -36,7 +36,7 @@ pub mod cs2_dumper { // Members count: 4 #[repr(u32)] pub enum MissingParentInheritBehavior_t { - MISSING_PARENT_DO_NOTHING = 0xFFFFFFFFFFFFFFFF, + MISSING_PARENT_DO_NOTHING = u32::MAX, MISSING_PARENT_KILL = 0x0, MISSING_PARENT_FIND_NEW = 0x1, MISSING_PARENT_SAME_INDEX = 0x2 @@ -45,7 +45,7 @@ pub mod cs2_dumper { // Members count: 5 #[repr(u32)] pub enum ParticleFloatBiasType_t { - PF_BIAS_TYPE_INVALID = 0xFFFFFFFFFFFFFFFF, + PF_BIAS_TYPE_INVALID = u32::MAX, PF_BIAS_TYPE_STANDARD = 0x0, PF_BIAS_TYPE_GAIN = 0x1, PF_BIAS_TYPE_EXPONENTIAL = 0x2, @@ -100,7 +100,7 @@ pub mod cs2_dumper { // Members count: 24 #[repr(u32)] pub enum ParticleFloatType_t { - PF_TYPE_INVALID = 0xFFFFFFFFFFFFFFFF, + PF_TYPE_INVALID = u32::MAX, PF_TYPE_LITERAL = 0x0, PF_TYPE_NAMED_VALUE = 0x1, PF_TYPE_RANDOM_UNIFORM = 0x2, @@ -188,7 +188,7 @@ pub mod cs2_dumper { // Members count: 9 #[repr(u32)] pub enum ScalarExpressionType_t { - SCALAR_EXPRESSION_UNINITIALIZED = 0xFFFFFFFFFFFFFFFF, + SCALAR_EXPRESSION_UNINITIALIZED = u32::MAX, SCALAR_EXPRESSION_ADD = 0x0, SCALAR_EXPRESSION_SUBTRACT = 0x1, SCALAR_EXPRESSION_MUL = 0x2, @@ -255,7 +255,7 @@ pub mod cs2_dumper { pub enum ParticleLightingQuality_t { PARTICLE_LIGHTING_PER_PARTICLE = 0x0, PARTICLE_LIGHTING_PER_VERTEX = 0x1, - PARTICLE_LIGHTING_PER_PIXEL = 0xFFFFFFFFFFFFFFFF + PARTICLE_LIGHTING_PER_PIXEL = u32::MAX } // Alignment: 4 // Members count: 4 @@ -296,7 +296,7 @@ pub mod cs2_dumper { // Members count: 12 #[repr(u32)] pub enum ParticlePinDistance_t { - PARTICLE_PIN_DISTANCE_NONE = 0xFFFFFFFFFFFFFFFF, + PARTICLE_PIN_DISTANCE_NONE = u32::MAX, PARTICLE_PIN_DISTANCE_NEIGHBOR = 0x0, PARTICLE_PIN_DISTANCE_FARTHEST = 0x1, PARTICLE_PIN_DISTANCE_FIRST = 0x2, @@ -313,7 +313,7 @@ pub mod cs2_dumper { // Members count: 7 #[repr(u32)] pub enum VectorFloatExpressionType_t { - VECTOR_FLOAT_EXPRESSION_UNINITIALIZED = 0xFFFFFFFFFFFFFFFF, + VECTOR_FLOAT_EXPRESSION_UNINITIALIZED = u32::MAX, VECTOR_FLOAT_EXPRESSION_DOTPRODUCT = 0x0, VECTOR_FLOAT_EXPRESSION_DISTANCE = 0x1, VECTOR_FLOAT_EXPRESSION_DISTANCESQR = 0x2, @@ -333,7 +333,7 @@ pub mod cs2_dumper { // Members count: 9 #[repr(u32)] pub enum VectorExpressionType_t { - VECTOR_EXPRESSION_UNINITIALIZED = 0xFFFFFFFFFFFFFFFF, + VECTOR_EXPRESSION_UNINITIALIZED = u32::MAX, VECTOR_EXPRESSION_ADD = 0x0, VECTOR_EXPRESSION_SUBTRACT = 0x1, VECTOR_EXPRESSION_MUL = 0x2, @@ -395,7 +395,7 @@ pub mod cs2_dumper { // Members count: 8 #[repr(u32)] pub enum ParticleFloatMapType_t { - PF_MAP_TYPE_INVALID = 0xFFFFFFFFFFFFFFFF, + PF_MAP_TYPE_INVALID = u32::MAX, PF_MAP_TYPE_DIRECT = 0x0, PF_MAP_TYPE_MULT = 0x1, PF_MAP_TYPE_REMAP = 0x2, @@ -437,7 +437,7 @@ pub mod cs2_dumper { // Members count: 4 #[repr(u32)] pub enum ParticleFloatInputMode_t { - PF_INPUT_MODE_INVALID = 0xFFFFFFFFFFFFFFFF, + PF_INPUT_MODE_INVALID = u32::MAX, PF_INPUT_MODE_CLAMPED = 0x0, PF_INPUT_MODE_LOOPED = 0x1, PF_INPUT_MODE_COUNT = 0x2 @@ -487,7 +487,7 @@ pub mod cs2_dumper { // Members count: 4 #[repr(u32)] pub enum ParticleFloatRandomMode_t { - PF_RANDOM_MODE_INVALID = 0xFFFFFFFFFFFFFFFF, + PF_RANDOM_MODE_INVALID = u32::MAX, PF_RANDOM_MODE_CONSTANT = 0x0, PF_RANDOM_MODE_VARYING = 0x1, PF_RANDOM_MODE_COUNT = 0x2 @@ -505,7 +505,7 @@ pub mod cs2_dumper { // Members count: 19 #[repr(u32)] pub enum ParticleVecType_t { - PVEC_TYPE_INVALID = 0xFFFFFFFFFFFFFFFF, + PVEC_TYPE_INVALID = u32::MAX, PVEC_TYPE_LITERAL = 0x0, PVEC_TYPE_LITERAL_COLOR = 0x1, PVEC_TYPE_NAMED_VALUE = 0x2, @@ -544,7 +544,7 @@ pub mod cs2_dumper { // Members count: 3 #[repr(u32)] pub enum ParticleSequenceCropOverride_t { - PARTICLE_SEQUENCE_CROP_OVERRIDE_DEFAULT = 0xFFFFFFFFFFFFFFFF, + PARTICLE_SEQUENCE_CROP_OVERRIDE_DEFAULT = u32::MAX, PARTICLE_SEQUENCE_CROP_OVERRIDE_FORCE_OFF = 0x0, PARTICLE_SEQUENCE_CROP_OVERRIDE_FORCE_ON = 0x1 } @@ -645,7 +645,7 @@ pub mod cs2_dumper { COLLISION_MODE_USE_NEAREST_TRACE = 0x2, COLLISION_MODE_PER_FRAME_PLANESET = 0x1, COLLISION_MODE_INITIAL_TRACE_DOWN = 0x0, - COLLISION_MODE_DISABLED = 0xFFFFFFFFFFFFFFFF + COLLISION_MODE_DISABLED = u32::MAX } // Alignment: 4 // Members count: 2 @@ -658,7 +658,7 @@ pub mod cs2_dumper { // Members count: 3 #[repr(u32)] pub enum ParticleEndcapMode_t { - PARTICLE_ENDCAP_ALWAYS_ON = 0xFFFFFFFFFFFFFFFF, + PARTICLE_ENDCAP_ALWAYS_ON = u32::MAX, PARTICLE_ENDCAP_ENDCAP_OFF = 0x0, PARTICLE_ENDCAP_ENDCAP_ON = 0x1 } @@ -4687,9 +4687,9 @@ pub mod cs2_dumper { pub const m_nControlPointNumber: usize = 0x1C0; // int32 pub const m_vecOffset: usize = 0x1C8; // CParticleCollectionVecInput pub const m_bOffsetLocal: usize = 0x820; // bool - pub const m_nParticleSelection: usize = 0x824; // + pub const m_nParticleSelection: usize = 0x824; // ParticleSelection_t pub const m_nParticleNumber: usize = 0x828; // CParticleCollectionFloatInput - pub const m_nPinBreakType: usize = 0x980; // ParticlePinDistance_t + pub const m_nPinBreakType: usize = 0x980; // pub const m_flBreakDistance: usize = 0x988; // CParticleCollectionFloatInput pub const m_flBreakSpeed: usize = 0xAE0; // CParticleCollectionFloatInput pub const m_flAge: usize = 0xC38; // CParticleCollectionFloatInput diff --git a/output/pulse_system.dll.cs b/output/pulse_system.dll.cs index 6d75485..c52096c 100644 --- a/output/pulse_system.dll.cs +++ b/output/pulse_system.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: pulse_system.dll diff --git a/output/pulse_system.dll.hpp b/output/pulse_system.dll.hpp index 72fffa2..d6d2978 100644 --- a/output/pulse_system.dll.hpp +++ b/output/pulse_system.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/pulse_system.dll.rs b/output/pulse_system.dll.rs index b991989..e60f551 100644 --- a/output/pulse_system.dll.rs +++ b/output/pulse_system.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { @@ -36,7 +36,7 @@ pub mod cs2_dumper { // Members count: 19 #[repr(u32)] pub enum PulseValueType_t { - PVAL_INVALID = 0xFFFFFFFFFFFFFFFF, + PVAL_INVALID = u32::MAX, PVAL_BOOL = 0x0, PVAL_INT = 0x1, PVAL_FLOAT = 0x2, diff --git a/output/rendersystemdx11.dll.cs b/output/rendersystemdx11.dll.cs index 35ba57c..b374a33 100644 --- a/output/rendersystemdx11.dll.cs +++ b/output/rendersystemdx11.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: rendersystemdx11.dll diff --git a/output/rendersystemdx11.dll.hpp b/output/rendersystemdx11.dll.hpp index 1f54750..46818a9 100644 --- a/output/rendersystemdx11.dll.hpp +++ b/output/rendersystemdx11.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/rendersystemdx11.dll.rs b/output/rendersystemdx11.dll.rs index 78a77b6..bd73486 100644 --- a/output/rendersystemdx11.dll.rs +++ b/output/rendersystemdx11.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { @@ -48,7 +48,7 @@ pub mod cs2_dumper { // Members count: 8 #[repr(u8)] pub enum RenderMultisampleType_t { - RENDER_MULTISAMPLE_INVALID = 0xFFFFFFFFFFFFFFFF, + RENDER_MULTISAMPLE_INVALID = u8::MAX, RENDER_MULTISAMPLE_NONE = 0x0, RENDER_MULTISAMPLE_2X = 0x1, RENDER_MULTISAMPLE_4X = 0x2, @@ -70,7 +70,7 @@ pub mod cs2_dumper { // Members count: 3 #[repr(u32)] pub enum RenderSlotType_t { - RENDER_SLOT_INVALID = 0xFFFFFFFFFFFFFFFF, + RENDER_SLOT_INVALID = u32::MAX, RENDER_SLOT_PER_VERTEX = 0x0, RENDER_SLOT_PER_INSTANCE = 0x1 } diff --git a/output/resourcesystem.dll.cs b/output/resourcesystem.dll.cs index ff8dd02..db6663e 100644 --- a/output/resourcesystem.dll.cs +++ b/output/resourcesystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: resourcesystem.dll diff --git a/output/resourcesystem.dll.hpp b/output/resourcesystem.dll.hpp index b571500..38f8e83 100644 --- a/output/resourcesystem.dll.hpp +++ b/output/resourcesystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/resourcesystem.dll.rs b/output/resourcesystem.dll.rs index 387f8ac..8123516 100644 --- a/output/resourcesystem.dll.rs +++ b/output/resourcesystem.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/output/scenefilecache.dll.cs b/output/scenefilecache.dll.cs index 26b25b7..1e6a33e 100644 --- a/output/scenefilecache.dll.cs +++ b/output/scenefilecache.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { } diff --git a/output/scenefilecache.dll.hpp b/output/scenefilecache.dll.hpp index eddd5b9..a7083fa 100644 --- a/output/scenefilecache.dll.hpp +++ b/output/scenefilecache.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/scenefilecache.dll.rs b/output/scenefilecache.dll.rs index bae751e..06466e0 100644 --- a/output/scenefilecache.dll.rs +++ b/output/scenefilecache.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/output/scenesystem.dll.cs b/output/scenesystem.dll.cs index 7278ef8..7aafa1d 100644 --- a/output/scenesystem.dll.cs +++ b/output/scenesystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: scenesystem.dll diff --git a/output/scenesystem.dll.hpp b/output/scenesystem.dll.hpp index a8257fb..9d75bf8 100644 --- a/output/scenesystem.dll.hpp +++ b/output/scenesystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/scenesystem.dll.rs b/output/scenesystem.dll.rs index 891191b..ce251ba 100644 --- a/output/scenesystem.dll.rs +++ b/output/scenesystem.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/output/schemasystem.dll.cs b/output/schemasystem.dll.cs index 68f5089..aedb8dd 100644 --- a/output/schemasystem.dll.cs +++ b/output/schemasystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: schemasystem.dll diff --git a/output/schemasystem.dll.hpp b/output/schemasystem.dll.hpp index c73aa4d..23bb997 100644 --- a/output/schemasystem.dll.hpp +++ b/output/schemasystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/schemasystem.dll.rs b/output/schemasystem.dll.rs index 23df9ac..5d21963 100644 --- a/output/schemasystem.dll.rs +++ b/output/schemasystem.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/output/server.dll.cs b/output/server.dll.cs index 5b2aab4..53c37bf 100644 --- a/output/server.dll.cs +++ b/output/server.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: server.dll @@ -2588,7 +2588,7 @@ namespace CS2Dumper.Schemas { public const nint m_vecBackBoundsMin = 0xE64; // public const nint m_vecBackBoundsMax = 0xE70; // public const nint m_bAjarDoorShouldntAlwaysOpen = 0xE7C; // bool - public const nint m_hEntityBlocker = 0xE80; // + public const nint m_hEntityBlocker = 0xE80; // CHandle } // Parent: CBaseModelEntity // Fields count: 21 @@ -3005,7 +3005,7 @@ namespace CS2Dumper.Schemas { public const nint m_numCloseAttempts = 0xC48; // int32 public const nint m_nPhysicsMaterial = 0xC4C; // CUtlStringToken public const nint m_SlaveName = 0xC50; // CUtlSymbolLarge - public const nint m_hMaster = 0xC58; // CHandle + public const nint m_hMaster = 0xC58; // public const nint m_OnBlockedClosing = 0xC60; // CEntityIOOutput public const nint m_OnBlockedOpening = 0xC88; // CEntityIOOutput public const nint m_OnUnblockedClosing = 0xCB0; // CEntityIOOutput @@ -4335,7 +4335,7 @@ namespace CS2Dumper.Schemas { public const nint m_OnPostIdleEndSequence = 0x5E0; // CEntityIOOutput public const nint m_OnCancelSequence = 0x608; // CEntityIOOutput public const nint m_OnCancelFailedSequence = 0x630; // CEntityIOOutput - public const nint m_OnScriptEvent = 0x658; // + public const nint m_OnScriptEvent = 0x658; // CEntityIOOutput[8] public const nint m_matOtherToMain = 0x7A0; // CTransform public const nint m_hInteractionMainEntity = 0x7C0; // CHandle public const nint m_iPlayerDeathBehavior = 0x7C4; // int32 diff --git a/output/server.dll.hpp b/output/server.dll.hpp index 37f2cf8..accf237 100644 --- a/output/server.dll.hpp +++ b/output/server.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once @@ -2593,7 +2593,7 @@ namespace cs2_dumper { constexpr std::ptrdiff_t m_vecBackBoundsMin = 0xE64; // constexpr std::ptrdiff_t m_vecBackBoundsMax = 0xE70; // constexpr std::ptrdiff_t m_bAjarDoorShouldntAlwaysOpen = 0xE7C; // bool - constexpr std::ptrdiff_t m_hEntityBlocker = 0xE80; // + constexpr std::ptrdiff_t m_hEntityBlocker = 0xE80; // CHandle } // Parent: CBaseModelEntity // Fields count: 21 @@ -3010,7 +3010,7 @@ namespace cs2_dumper { constexpr std::ptrdiff_t m_numCloseAttempts = 0xC48; // int32 constexpr std::ptrdiff_t m_nPhysicsMaterial = 0xC4C; // CUtlStringToken constexpr std::ptrdiff_t m_SlaveName = 0xC50; // CUtlSymbolLarge - constexpr std::ptrdiff_t m_hMaster = 0xC58; // CHandle + constexpr std::ptrdiff_t m_hMaster = 0xC58; // constexpr std::ptrdiff_t m_OnBlockedClosing = 0xC60; // CEntityIOOutput constexpr std::ptrdiff_t m_OnBlockedOpening = 0xC88; // CEntityIOOutput constexpr std::ptrdiff_t m_OnUnblockedClosing = 0xCB0; // CEntityIOOutput @@ -4340,7 +4340,7 @@ namespace cs2_dumper { constexpr std::ptrdiff_t m_OnPostIdleEndSequence = 0x5E0; // CEntityIOOutput constexpr std::ptrdiff_t m_OnCancelSequence = 0x608; // CEntityIOOutput constexpr std::ptrdiff_t m_OnCancelFailedSequence = 0x630; // CEntityIOOutput - constexpr std::ptrdiff_t m_OnScriptEvent = 0x658; // + constexpr std::ptrdiff_t m_OnScriptEvent = 0x658; // CEntityIOOutput[8] constexpr std::ptrdiff_t m_matOtherToMain = 0x7A0; // CTransform constexpr std::ptrdiff_t m_hInteractionMainEntity = 0x7C0; // CHandle constexpr std::ptrdiff_t m_iPlayerDeathBehavior = 0x7C4; // int32 diff --git a/output/server.dll.rs b/output/server.dll.rs index 872e9e2..9036de9 100644 --- a/output/server.dll.rs +++ b/output/server.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { @@ -62,7 +62,7 @@ pub mod cs2_dumper { // Members count: 5 #[repr(u32)] pub enum StanceType_t { - STANCE_CURRENT = 0xFFFFFFFFFFFFFFFF, + STANCE_CURRENT = u32::MAX, STANCE_DEFAULT = 0x0, STANCE_CROUCHING = 0x1, STANCE_PRONE = 0x2, @@ -238,7 +238,7 @@ pub mod cs2_dumper { // Members count: 5 #[repr(u32)] pub enum NPCFollowFormation_t { - Default = 0xFFFFFFFFFFFFFFFF, + Default = u32::MAX, CloseCircle = 0x0, WideCircle = 0x1, MediumCircle = 0x5, @@ -292,7 +292,7 @@ pub mod cs2_dumper { // Members count: 5 #[repr(u32)] pub enum AnimLoopMode_t { - ANIM_LOOP_MODE_INVALID = 0xFFFFFFFFFFFFFFFF, + ANIM_LOOP_MODE_INVALID = u32::MAX, ANIM_LOOP_MODE_NOT_LOOPING = 0x0, ANIM_LOOP_MODE_LOOPING = 0x1, ANIM_LOOP_MODE_USE_SEQUENCE_SETTINGS = 0x2, @@ -573,7 +573,7 @@ pub mod cs2_dumper { #[repr(u32)] pub enum loadout_slot_t { LOADOUT_SLOT_PROMOTED = 0xFFFFFFFFFFFFFFFE, - LOADOUT_SLOT_INVALID = 0xFFFFFFFFFFFFFFFF, + LOADOUT_SLOT_INVALID = u32::MAX, LOADOUT_SLOT_MELEE = 0x0, LOADOUT_SLOT_C4 = 0x1, LOADOUT_SLOT_FIRST_AUTO_BUY_WEAPON = 0x0, @@ -743,7 +743,7 @@ pub mod cs2_dumper { // Members count: 4 #[repr(u32)] pub enum WeaponAttackType_t { - eInvalid = 0xFFFFFFFFFFFFFFFF, + eInvalid = u32::MAX, ePrimary = 0x0, eSecondary = 0x1, eCount = 0x2 @@ -802,7 +802,7 @@ pub mod cs2_dumper { // Members count: 4 #[repr(u32)] pub enum ScriptedOnDeath_t { - SS_ONDEATH_NOT_APPLICABLE = 0xFFFFFFFFFFFFFFFF, + SS_ONDEATH_NOT_APPLICABLE = u32::MAX, SS_ONDEATH_UNDEFINED = 0x0, SS_ONDEATH_RAGDOLL = 0x1, SS_ONDEATH_ANIMATED_DEATH = 0x2 @@ -828,7 +828,7 @@ pub mod cs2_dumper { // Members count: 17 #[repr(u32)] pub enum gear_slot_t { - GEAR_SLOT_INVALID = 0xFFFFFFFFFFFFFFFF, + GEAR_SLOT_INVALID = u32::MAX, GEAR_SLOT_RIFLE = 0x0, GEAR_SLOT_PISTOL = 0x1, GEAR_SLOT_KNIFE = 0x2, @@ -892,7 +892,7 @@ pub mod cs2_dumper { // Members count: 4 #[repr(u32)] pub enum AmmoPosition_t { - AMMO_POSITION_INVALID = 0xFFFFFFFFFFFFFFFF, + AMMO_POSITION_INVALID = u32::MAX, AMMO_POSITION_PRIMARY = 0x0, AMMO_POSITION_SECONDARY = 0x1, AMMO_POSITION_COUNT = 0x2 @@ -929,7 +929,7 @@ pub mod cs2_dumper { // Members count: 5 #[repr(u32)] pub enum EntityDisolveType_t { - ENTITY_DISSOLVE_INVALID = 0xFFFFFFFFFFFFFFFF, + ENTITY_DISSOLVE_INVALID = u32::MAX, ENTITY_DISSOLVE_NORMAL = 0x0, ENTITY_DISSOLVE_ELECTRICAL = 0x1, ENTITY_DISSOLVE_ELECTRICAL_LIGHT = 0x2, @@ -940,7 +940,7 @@ pub mod cs2_dumper { #[repr(u64)] pub enum InputBitMask_t { IN_NONE = 0x0, - IN_ALL = 0xFFFFFFFFFFFFFFFF, + IN_ALL = u64::MAX, IN_ATTACK = 0x1, IN_JUMP = 0x2, IN_DUCK = 0x4, @@ -965,7 +965,7 @@ pub mod cs2_dumper { // Members count: 14 #[repr(u32)] pub enum HitGroup_t { - HITGROUP_INVALID = 0xFFFFFFFFFFFFFFFF, + HITGROUP_INVALID = u32::MAX, HITGROUP_GENERIC = 0x0, HITGROUP_HEAD = 0x1, HITGROUP_CHEST = 0x2, @@ -1086,7 +1086,7 @@ pub mod cs2_dumper { // Members count: 4 #[repr(u32)] pub enum EntitySubclassScope_t { - SUBCLASS_SCOPE_NONE = 0xFFFFFFFFFFFFFFFF, + SUBCLASS_SCOPE_NONE = u32::MAX, SUBCLASS_SCOPE_PRECIPITATION = 0x0, SUBCLASS_SCOPE_PLAYER_WEAPONS = 0x1, SUBCLASS_SCOPE_COUNT = 0x2 @@ -1226,7 +1226,7 @@ pub mod cs2_dumper { // Members count: 27 #[repr(u32)] pub enum RumbleEffect_t { - RUMBLE_INVALID = 0xFFFFFFFFFFFFFFFF, + RUMBLE_INVALID = u32::MAX, RUMBLE_STOP_ALL = 0x0, RUMBLE_PISTOL = 0x1, RUMBLE_357 = 0x2, @@ -1287,7 +1287,7 @@ pub mod cs2_dumper { // Members count: 7 #[repr(u32)] pub enum PlayerConnectedState { - PlayerNeverConnected = 0xFFFFFFFFFFFFFFFF, + PlayerNeverConnected = u32::MAX, PlayerConnected = 0x0, PlayerConnecting = 0x1, PlayerReconnecting = 0x2, @@ -2717,7 +2717,7 @@ pub mod cs2_dumper { pub const m_vecBackBoundsMin: usize = 0xE64; // pub const m_vecBackBoundsMax: usize = 0xE70; // pub const m_bAjarDoorShouldntAlwaysOpen: usize = 0xE7C; // bool - pub const m_hEntityBlocker: usize = 0xE80; // + pub const m_hEntityBlocker: usize = 0xE80; // CHandle } // Parent: CBaseModelEntity // Fields count: 21 @@ -3134,7 +3134,7 @@ pub mod cs2_dumper { pub const m_numCloseAttempts: usize = 0xC48; // int32 pub const m_nPhysicsMaterial: usize = 0xC4C; // CUtlStringToken pub const m_SlaveName: usize = 0xC50; // CUtlSymbolLarge - pub const m_hMaster: usize = 0xC58; // CHandle + pub const m_hMaster: usize = 0xC58; // pub const m_OnBlockedClosing: usize = 0xC60; // CEntityIOOutput pub const m_OnBlockedOpening: usize = 0xC88; // CEntityIOOutput pub const m_OnUnblockedClosing: usize = 0xCB0; // CEntityIOOutput @@ -4464,7 +4464,7 @@ pub mod cs2_dumper { pub const m_OnPostIdleEndSequence: usize = 0x5E0; // CEntityIOOutput pub const m_OnCancelSequence: usize = 0x608; // CEntityIOOutput pub const m_OnCancelFailedSequence: usize = 0x630; // CEntityIOOutput - pub const m_OnScriptEvent: usize = 0x658; // + pub const m_OnScriptEvent: usize = 0x658; // CEntityIOOutput[8] pub const m_matOtherToMain: usize = 0x7A0; // CTransform pub const m_hInteractionMainEntity: usize = 0x7C0; // CHandle pub const m_iPlayerDeathBehavior: usize = 0x7C4; // int32 diff --git a/output/soundsystem.dll.cs b/output/soundsystem.dll.cs index e234079..46c52c0 100644 --- a/output/soundsystem.dll.cs +++ b/output/soundsystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: soundsystem.dll diff --git a/output/soundsystem.dll.hpp b/output/soundsystem.dll.hpp index f71794b..a5e5869 100644 --- a/output/soundsystem.dll.hpp +++ b/output/soundsystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/soundsystem.dll.rs b/output/soundsystem.dll.rs index 88ca996..44b3a2f 100644 --- a/output/soundsystem.dll.rs +++ b/output/soundsystem.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { @@ -23,7 +23,7 @@ pub mod cs2_dumper { // Members count: 10 #[repr(u16)] pub enum VMixFilterType_t { - FILTER_UNKNOWN = 0xFFFFFFFFFFFFFFFF, + FILTER_UNKNOWN = u16::MAX, FILTER_LOWPASS = 0x0, FILTER_HIGHPASS = 0x1, FILTER_BANDPASS = 0x2, diff --git a/output/vphysics2.dll.cs b/output/vphysics2.dll.cs index e7c3ddd..ad4a502 100644 --- a/output/vphysics2.dll.cs +++ b/output/vphysics2.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: vphysics2.dll diff --git a/output/vphysics2.dll.hpp b/output/vphysics2.dll.hpp index bcd86c3..5588086 100644 --- a/output/vphysics2.dll.hpp +++ b/output/vphysics2.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/vphysics2.dll.rs b/output/vphysics2.dll.rs index 9bc333d..26663c4 100644 --- a/output/vphysics2.dll.rs +++ b/output/vphysics2.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/output/worldrenderer.dll.cs b/output/worldrenderer.dll.cs index d28787e..c31141b 100644 --- a/output/worldrenderer.dll.cs +++ b/output/worldrenderer.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC namespace CS2Dumper.Schemas { // Module: worldrenderer.dll diff --git a/output/worldrenderer.dll.hpp b/output/worldrenderer.dll.hpp index 993bd93..804fd5e 100644 --- a/output/worldrenderer.dll.hpp +++ b/output/worldrenderer.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC #pragma once diff --git a/output/worldrenderer.dll.rs b/output/worldrenderer.dll.rs index f6736e3..306a354 100644 --- a/output/worldrenderer.dll.rs +++ b/output/worldrenderer.dll.rs @@ -1,7 +1,7 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-06 17:17:10.780616100 UTC +// 2024-04-07 05:30:39.851724900 UTC -#![allow(non_upper_case_globals, non_camel_case_types, unused)] +#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] pub mod cs2_dumper { pub mod schemas { diff --git a/src/analysis/schemas.rs b/src/analysis/schemas.rs index f2301b2..e6c7ebe 100644 --- a/src/analysis/schemas.rs +++ b/src/analysis/schemas.rs @@ -227,17 +227,10 @@ fn read_enum_binding_members( let enumerator = binding.enumerators.at(i as _).read(process)?; let name = enumerator.name.read_string(process)?.to_string(); - let value = { - let value = unsafe { enumerator.u.ulong } as i64; - - if value == i64::MAX { - -1 - } else { - value - } - }; - - acc.push(EnumMember { name, value }); + acc.push(EnumMember { + name, + value: unsafe { enumerator.u.ulong } as i64, + }); Ok(acc) }) diff --git a/src/output/schemas.rs b/src/output/schemas.rs index f284c71..1f7c6ab 100644 --- a/src/output/schemas.rs +++ b/src/output/schemas.rs @@ -296,7 +296,7 @@ impl CodeGen for SchemaMap { self.write_content(results, indent_size, |fmt| { writeln!( fmt, - "#![allow(non_upper_case_globals, non_camel_case_types, unused)]\n" + "#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)]\n" )?; fmt.block("pub mod cs2_dumper", false, |fmt| { @@ -341,7 +341,15 @@ impl CodeGen for SchemaMap { .members .iter() .map(|member| { - format!("{} = {:#X}", member.name, member.value) + format!( + "{} = {}", + member.name, + if member.value == -1 { + format!("{}::MAX", type_name) + } else { + format!("{:#X}", member.value) + } + ) }) .collect::>() .join(",\n");