diff --git a/src/global_tables/objects.rs b/src/global_tables/objects.rs index 99e475a..883f34d 100644 --- a/src/global_tables/objects.rs +++ b/src/global_tables/objects.rs @@ -56,6 +56,10 @@ where pub fn get_object(&self) -> &Option { &self.object } + + pub fn serial_number(&self) -> u32 { + self.sn + } } #[repr(C)] diff --git a/src/helper_types.rs b/src/helper_types.rs index 93462dc..0f1f751 100644 --- a/src/helper_types.rs +++ b/src/helper_types.rs @@ -2,33 +2,6 @@ use std::marker::PhantomData; use crate::{fname::FName, tarray::FString}; -#[repr(C)] -#[derive(Debug)] -pub struct TWeakObjectPtr { - object_index: u32, - serial_number: u32, - phantom: PhantomData, -} - -#[repr(C)] -#[derive(Debug)] -pub struct TPersistentObjectPtr { - weak: TWeakObjectPtr, - tag_at_last_test: u32, - object_id: P, -} - -pub type TLazyObjectPtr = TPersistentObjectPtr; -pub type TAssetPtr = TPersistentObjectPtr; -pub type TSoftObjectPtr = TPersistentObjectPtr; - -#[repr(C)] -#[derive(Debug)] -pub struct FSoftObjectPath { - asset_path_name: FName, - sub_path_string: FString, -} - #[repr(C)] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct TEnumAsByte {