/// <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); }
/// <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); } }
/// <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); } }
/// <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)); } }
/// <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); } }
/// <summary> /// Returns true if all names have valid characters /// </summary> public bool HasValidCharacters() { return(Native_FCoreRedirectObjectName.HasValidCharacters(ref this)); }
/// <summary> /// Returns true if this refers to an actual object /// </summary> public bool IsValid() { return(Native_FCoreRedirectObjectName.IsValid(ref this)); }
/// <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)); }
/// <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)); }
/// <summary> /// Sets back to invalid state /// </summary> public void Reset() { Native_FCoreRedirectObjectName.Reset(ref this); }