コード例 #1
0
 internal virtual void GetLifetimeReplicatedPropsInternal(IntPtr arrayAddress)
 {
     using (TArrayUnsafeRef <FLifetimeProperty> lifetimePropsUnsafe = new TArrayUnsafeRef <FLifetimeProperty>(arrayAddress))
     {
         FLifetimePropertyCollection lifetimeProps = new FLifetimePropertyCollection(Address, lifetimePropsUnsafe);
         GetLifetimeReplicatedProps(lifetimeProps);
     }
 }
コード例 #2
0
ファイル: VTableHacks.cs プロジェクト: zwywilliam/USharp
        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);
            }
        }
コード例 #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);
            }
        }
コード例 #4
0
ファイル: UObject.cs プロジェクト: OCEAN623/USharp
 /// <summary>
 /// Returns properties that are replicated for the lifetime of the actor channel
 /// </summary>
 public virtual void GetLifetimeReplicatedProps(FLifetimePropertyCollection lifetimeProps)
 {
 }
コード例 #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);
 }