mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-11-17 22:20:02 +08:00
36 lines
753 B
Rust
36 lines
753 B
Rust
use std::ffi::c_char;
|
|
|
|
use memflow::prelude::v1::*;
|
|
|
|
#[repr(C)]
|
|
pub struct SchemaMetadataEntryData {
|
|
pub name: Pointer64<ReprCString>,
|
|
pub network_value: Pointer64<SchemaNetworkValue>,
|
|
}
|
|
|
|
unsafe impl Pod for SchemaMetadataEntryData {}
|
|
|
|
#[repr(C)]
|
|
pub struct SchemaNetworkValue {
|
|
pub union_data: SchemaNetworkValueUnion,
|
|
}
|
|
|
|
unsafe impl Pod for SchemaNetworkValue {}
|
|
|
|
#[repr(C)]
|
|
pub union SchemaNetworkValueUnion {
|
|
pub name_ptr: Pointer64<ReprCString>,
|
|
pub int_value: i32,
|
|
pub float_value: f32,
|
|
pub ptr: Pointer64<()>,
|
|
pub var_value: SchemaVarName,
|
|
pub name_value: [c_char; 32],
|
|
}
|
|
|
|
#[derive(Clone, Copy)]
|
|
#[repr(C)]
|
|
pub struct SchemaVarName {
|
|
pub name: Pointer64<ReprCString>,
|
|
pub ty: Pointer64<ReprCString>,
|
|
}
|