Example #1
0
 public void ToNative(IntPtr address)
 {
     using (FStringUnsafe strUnsafe = new FStringUnsafe(ToStringEx()))
     {
         Native_FVariantData.FromStringEx(address, ref strUnsafe.Array);
     }
 }
 /// <summary>
 /// Return debug string describing task
 /// </summary>
 public string GetDebugString()
 {
     using (FStringUnsafe resultUnsafe = new FStringUnsafe())
     {
         Native_UGameplayTask.GetDebugString(Address, ref resultUnsafe.Array);
         return(resultUnsafe.Value);
     }
 }
Example #3
0
 public void FromNative(IntPtr address)
 {
     using (FStringUnsafe resultUnsafe = new FStringUnsafe())
     {
         Native_FVariantData.ToStringEx(address, ref resultUnsafe.Array);
         FromStringEx(resultUnsafe.Value);
     }
 }
Example #4
0
 protected virtual string OnGenerateDebugDescription()
 {
     using (FStringUnsafe resultUnsafe = new FStringUnsafe())
     {
         Native_UUSharpGameplayTask.Base_GenerateDebugDescription(Address, ref resultUnsafe.Array);
         return(resultUnsafe.Value);
     }
 }
Example #5
0
 public string GetDebugDescription()
 {
     using (FStringUnsafe resultUnsafe = new FStringUnsafe())
     {
         Native_FGameplayResourceSet.GetDebugDescription(ref this, ref resultUnsafe.Array);
         return(resultUnsafe.Value);
     }
 }
Example #6
0
 public string GetDisplayName()
 {
     EnsureValid();
     using (FStringUnsafe resultUnsafe = new FStringUnsafe())
     {
         Native_FKey.GetDisplayNameString(ref this, ref resultUnsafe.Array);
         return(resultUnsafe.Value);
     }
 }
Example #7
0
        /// <summary>
        /// Gets the description string of a pending latent action with the specified UUID for a given object.
        /// </summary>
        /// <param name="obj">Object to check.</param>
        /// <param name="uuid">The UUID of the latent action.</param>
        /// <returns>The description of the found pending latent action.</returns>
        public string GetDescription(UObject obj, int uuid)
        {
#if WITH_EDITOR
            using (FStringUnsafe resultUnsafe = new FStringUnsafe())
            {
                Native_FLatentActionManager.GetDescription(Address, obj.Address, uuid, ref resultUnsafe.Array);
                return(resultUnsafe.Value);
            }
#else
            return(null);
#endif
        }
 public void ToNative(IntPtr address)
 {
     Native_FOnlineSession.Set_OwningUserId(address, ref OwningUserId);
     using (FStringUnsafe owningUserNameUnsafe = new FStringUnsafe(OwningUserName))
     {
         Native_FOnlineSession.Set_OwningUserName(address, ref owningUserNameUnsafe.Array);
     }
     SessionSettings.ToNative(Native_FOnlineSession.Get_SessionSettings(address));
     Native_FOnlineSession.Set_SessionInfo(address, ref SessionInfo);
     Native_FOnlineSession.Set_NumOpenPrivateConnections(address, NumOpenPrivateConnections);
     Native_FOnlineSession.Set_NumOpenPublicConnections(address, NumOpenPublicConnections);
 }
        public string GetDebugDescription()
        {
            // TODO: Use #if WITH_EDITOR
            if (!FBuild.WithEditor)
            {
                return(null);
            }

            using (FStringUnsafe resultUnsafe = new FStringUnsafe())
            {
                Native_UGameplayTask.GetDebugDescription(Address, ref resultUnsafe.Array);
                return(resultUnsafe.Value);
            }
        }