Пример #1
0
        /// <summary>
        /// Returns the name used as the key into the acceleration map
        /// </summary>
        public FName GetSearchKey(ECoreRedirectFlags type)
        {
            FName result;

            Native_FCoreRedirectObjectName.GetSearchKey(ref this, type, out result);
            return(result);
        }
Пример #2
0
 /// <summary>
 /// Construct from a path string, this handles full paths with packages, or partial paths without
 /// </summary>
 public FCoreRedirectObjectName(string str)
 {
     using (FStringUnsafe strUnsafe = new FStringUnsafe(str))
     {
         Native_FCoreRedirectObjectName.CtorString(ref strUnsafe.Array, out this);
     }
 }
Пример #3
0
 /// <summary>
 /// Turn it back into an FString
 /// </summary>
 public static string CombineNames(FName name, FName outer, FName package)
 {
     using (FStringUnsafe resultUnsafe = new FStringUnsafe())
     {
         Native_FCoreRedirectObjectName.CombineNames(ref name, ref outer, ref package, ref resultUnsafe.Array);
         return(resultUnsafe.Value);
     }
 }
Пример #4
0
 /// <summary>
 /// Expand OldName/NewName as needed
 /// </summary>
 public static bool ExpandNames(string fullString, out FName name, out FName outer, out FName package)
 {
     using (FStringUnsafe fullStringUnsafe = new FStringUnsafe(fullString))
     {
         name = outer = package = FName.None;
         return(Native_FCoreRedirectObjectName.ExpandNames(ref fullStringUnsafe.Array, ref name, ref outer, ref package));
     }
 }
Пример #5
0
 /// <summary>
 /// Creates FString version
 /// </summary>
 public override string ToString()
 {
     using (FStringUnsafe resultUnsafe = new FStringUnsafe())
     {
         Native_FCoreRedirectObjectName.ToString(ref this, ref resultUnsafe.Array);
         return(resultUnsafe.Value);
     }
 }
Пример #6
0
 /// <summary>
 /// Returns true if all names have valid characters
 /// </summary>
 public bool HasValidCharacters()
 {
     return(Native_FCoreRedirectObjectName.HasValidCharacters(ref this));
 }
Пример #7
0
 /// <summary>
 /// Returns true if this refers to an actual object
 /// </summary>
 public bool IsValid()
 {
     return(Native_FCoreRedirectObjectName.IsValid(ref this));
 }
Пример #8
0
 /// <summary>
 /// Returns integer of degree of match. 0 if doesn't match at all, higher integer for better matches
 /// </summary>
 public int MatchScore(FCoreRedirectObjectName other)
 {
     return(Native_FCoreRedirectObjectName.MatchScore(ref this, ref other));
 }
Пример #9
0
 /// <summary>
 /// Returns integer of degree of match. 0 if doesn't match at all, higher integer for better matches
 /// </summary>
 public bool Matches(FCoreRedirectObjectName other, bool checkSubstring = false)
 {
     return(Native_FCoreRedirectObjectName.Matches(ref this, ref other, checkSubstring));
 }
Пример #10
0
 /// <summary>
 /// Sets back to invalid state
 /// </summary>
 public void Reset()
 {
     Native_FCoreRedirectObjectName.Reset(ref this);
 }