mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-10-08 02:00:02 +08:00
Rename some schema struct fields
This commit is contained in:
@@ -5,9 +5,9 @@ use super::{SchemaMetadataEntryData, SchemaType};
|
||||
#[derive(Pod)]
|
||||
#[repr(C)]
|
||||
pub struct SchemaClassFieldData {
|
||||
pub name: Pointer64<ReprCString>, // 0x0000
|
||||
pub schema_type: Pointer64<SchemaType>, // 0x0008
|
||||
pub single_inheritance_offset: i32, // 0x0010
|
||||
pub static_metadata_count: i32, // 0x0014
|
||||
pub static_metadata: Pointer64<SchemaMetadataEntryData>, // 0x0018
|
||||
pub name: Pointer64<ReprCString>, // 0x0000
|
||||
pub schema_type: Pointer64<SchemaType>, // 0x0008
|
||||
pub single_inheritance_offset: i32, // 0x0010
|
||||
pub metadata_count: i32, // 0x0014
|
||||
pub metadata: Pointer64<SchemaMetadataEntryData>, // 0x0018
|
||||
}
|
||||
|
@@ -1,6 +1,9 @@
|
||||
use memflow::prelude::v1::*;
|
||||
|
||||
use super::*;
|
||||
use super::{
|
||||
SchemaBaseClassInfoData, SchemaClassFieldData, SchemaMetadataEntryData, SchemaStaticFieldData,
|
||||
SchemaSystemTypeScope, SchemaType,
|
||||
};
|
||||
|
||||
pub type SchemaClassBinding = SchemaClassInfoData;
|
||||
|
||||
@@ -12,13 +15,13 @@ pub struct SchemaClassInfoData {
|
||||
pub name: Pointer64<ReprCString>, // 0x0008
|
||||
pub module_name: Pointer64<ReprCString>, // 0x0010
|
||||
pub size: i32, // 0x0018
|
||||
pub field_count: u16, // 0x001C
|
||||
pub static_field_count: u16, // 0x001E
|
||||
pub static_metadata_count: u16, // 0x0020
|
||||
pub alignment: u8, // 0x0022
|
||||
pub base_class_count: u8, // 0x0023
|
||||
pub multiple_inheritance_depth: u16, // 0x0024
|
||||
pub single_inheritance_depth: u16, // 0x0026
|
||||
pub fields_count: i16, // 0x001C
|
||||
pub static_fields_count: i16, // 0x001E
|
||||
pub static_metadata_count: i16, // 0x0020
|
||||
pub align_of: u8, // 0x0022
|
||||
pub has_base_class: u8, // 0x0023
|
||||
pub total_class_size: i16, // 0x0024
|
||||
pub derived_class_size: i16, // 0x0026
|
||||
pub fields: Pointer64<[SchemaClassFieldData]>, // 0x0028
|
||||
pub static_fields: Pointer64<[SchemaStaticFieldData]>, // 0x0030
|
||||
pub base_classes: Pointer64<SchemaBaseClassInfoData>, // 0x0038
|
||||
|
@@ -12,9 +12,9 @@ pub struct SchemaEnumInfoData {
|
||||
pub name: Pointer64<ReprCString>, // 0x0008
|
||||
pub module_name: Pointer64<ReprCString>, // 0x0010
|
||||
pub size: u8, // 0x0018
|
||||
pub alignment: u8, // 0x0019
|
||||
pub flags: u16, // 0x001A
|
||||
pub enumerator_count: u16, // 0x001C
|
||||
pub align_of: u8, // 0x0019
|
||||
pad_001a: [u8; 0x2], // 0x001A
|
||||
pub enumerators_count: u16, // 0x001C
|
||||
pub static_metadata_count: u16, // 0x001E
|
||||
pub enumerators: Pointer64<[SchemaEnumeratorInfoData]>, // 0x0020
|
||||
pub static_metadata: Pointer64<SchemaMetadataEntryData>, // 0x0028
|
||||
|
@@ -5,11 +5,11 @@ use super::SchemaMetadataEntryData;
|
||||
#[derive(Pod)]
|
||||
#[repr(C)]
|
||||
pub struct SchemaEnumeratorInfoData {
|
||||
pub name: Pointer64<ReprCString>, // 0x0000
|
||||
pub value: SchemaEnumeratorInfoDataUnion, // 0x0008
|
||||
pub static_metadata_count: i32, // 0x0010
|
||||
pad_0014: [u8; 0x4], // 0x0014
|
||||
pub static_metadata: Pointer64<SchemaMetadataEntryData>, // 0x0018
|
||||
pub name: Pointer64<ReprCString>, // 0x0000
|
||||
pub value: SchemaEnumeratorInfoDataUnion, // 0x0008
|
||||
pub metadata_count: i32, // 0x0010
|
||||
pad_0014: [u8; 0x4], // 0x0014
|
||||
pub metadata: Pointer64<SchemaMetadataEntryData>, // 0x0018
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
|
@@ -5,8 +5,8 @@ use memflow::prelude::v1::*;
|
||||
#[derive(Pod)]
|
||||
#[repr(C)]
|
||||
pub struct SchemaMetadataEntryData {
|
||||
pub name: Pointer64<ReprCString>, // 0x0000
|
||||
pub data: Pointer64<SchemaNetworkValue>, // 0x0008
|
||||
pub name: Pointer64<ReprCString>, // 0x0000
|
||||
pub network_value: Pointer64<SchemaNetworkValue>, // 0x0008
|
||||
}
|
||||
|
||||
#[derive(Pod)]
|
||||
|
@@ -5,10 +5,10 @@ use super::{SchemaMetadataEntryData, SchemaType};
|
||||
#[derive(Pod)]
|
||||
#[repr(C)]
|
||||
pub struct SchemaStaticFieldData {
|
||||
pub name: Pointer64<ReprCString>, // 0x0000
|
||||
pub type_: Pointer64<SchemaType>, // 0x0008
|
||||
pub instance: Pointer64<()>, // 0x0010
|
||||
pub static_metadata_count: i32, // 0x0018
|
||||
pad_001c: [u8; 0x4], // 0x001C
|
||||
pub static_metadata: Pointer64<SchemaMetadataEntryData>, // 0x0020
|
||||
pub name: Pointer64<ReprCString>, // 0x0000
|
||||
pub type_: Pointer64<SchemaType>, // 0x0008
|
||||
pub instance: Pointer64<()>, // 0x0010
|
||||
pub metadata_count: i32, // 0x0018
|
||||
pad_001c: [u8; 0x4], // 0x001C
|
||||
pub metadata: Pointer64<SchemaMetadataEntryData>, // 0x0020
|
||||
}
|
||||
|
@@ -10,6 +10,6 @@ pub struct SchemaSystem {
|
||||
pad_0000: [u8; 0x188], // 0x0000
|
||||
pub type_scopes: UtlVector<Pointer64<SchemaSystemTypeScope>>, // 0x0188
|
||||
pad_0198: [u8; 0x120], // 0x0198
|
||||
pub num_registrations: u32, // 0x02B8
|
||||
pub num_registrations: i32, // 0x02B8
|
||||
pad_02bc: [u8; 0xAC], // 0x02BC
|
||||
}
|
||||
|
Reference in New Issue
Block a user