Ejemplo n.º 1
0
 internal virtual void GetLifetimeReplicatedPropsInternal(IntPtr arrayAddress)
 {
     using (TArrayUnsafeRef <FLifetimeProperty> lifetimePropsUnsafe = new TArrayUnsafeRef <FLifetimeProperty>(arrayAddress))
     {
         FLifetimePropertyCollection lifetimeProps = new FLifetimePropertyCollection(Address, lifetimePropsUnsafe);
         GetLifetimeReplicatedProps(lifetimeProps);
     }
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Returns properties that are replicated for the lifetime of the actor channel
 /// </summary>
 public virtual void GetLifetimeReplicatedProps(FLifetimePropertyCollection lifetimeProps)
 {
 }
Ejemplo n.º 5
0
 /// <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);
 }