internal virtual void GetLifetimeReplicatedPropsInternal(IntPtr arrayAddress) { using (TArrayUnsafeRef <FLifetimeProperty> lifetimePropsUnsafe = new TArrayUnsafeRef <FLifetimeProperty>(arrayAddress)) { FLifetimePropertyCollection lifetimeProps = new FLifetimePropertyCollection(Address, lifetimePropsUnsafe); GetLifetimeReplicatedProps(lifetimeProps); } }
private static void OnGetLifetimeReplicatedProps(IntPtr address, IntPtr arrayAddress) { UObject obj = GCHelper.Find(address); IntPtr original = repProps.GetOriginal(obj); Native_VTableHacks.CallOriginal_GetLifetimeReplicatedProps(original, address, arrayAddress); using (TArrayUnsafeRef <FLifetimeProperty> lifetimePropsUnsafe = new TArrayUnsafeRef <FLifetimeProperty>(arrayAddress)) { FLifetimePropertyCollection lifetimeProps = new FLifetimePropertyCollection(address, lifetimePropsUnsafe); obj.GetLifetimeReplicatedProps(lifetimeProps); } }
private static void OnGetLifetimeReplicatedProps(IntPtr address, IntPtr arrayAddress) { try { UObject obj = GCHelper.Find(address); GetLifetimeReplicatedPropsDel_ThisCall original = repProps.GetOriginal <GetLifetimeReplicatedPropsDel_ThisCall>(obj); original(address, arrayAddress); //Native_VTableHacks.CallOriginal_GetLifetimeReplicatedProps(original, address, arrayAddress); using (TArrayUnsafeRef <FLifetimeProperty> lifetimePropsUnsafe = new TArrayUnsafeRef <FLifetimeProperty>(arrayAddress)) { FLifetimePropertyCollection lifetimeProps = new FLifetimePropertyCollection(address, lifetimePropsUnsafe); obj.GetLifetimeReplicatedProps(lifetimeProps); } } catch (Exception e) { LogCallbackException(nameof(OnGetLifetimeReplicatedProps), e); } }
/// <summary> /// Returns properties that are replicated for the lifetime of the actor channel /// </summary> public virtual void GetLifetimeReplicatedProps(FLifetimePropertyCollection lifetimeProps) { }
/// <summary> /// Returns properties that are replicated for the lifetime of the actor channel /// </summary> public virtual void GetLifetimeReplicatedProps(FLifetimePropertyCollection lifetimeProps) { getLifetimeReplicatedPropsRedirect .Resolve(VTableHacks.GetLifetimeReplicatedProps, this) .Invoke(Address, lifetimeProps.Address); }