/// <summary> /// Parse all redirects out of a given ini file /// </summary> public static bool ReadRedirectsFromIni(string iniName) { using (FStringUnsafe iniNameUnsafe = new FStringUnsafe(iniName)) { return(Native_FCoreRedirects.ReadRedirectsFromIni(ref iniNameUnsafe.Array)); } }
/// <summary> /// Returns list of names it may have been before /// </summary> public static bool FindPreviousNames(ECoreRedirectFlags type, FCoreRedirectObjectName newObjectName, out FCoreRedirectObjectName[] previousNames) { using (TArrayUnsafe <FCoreRedirectObjectName> previousNamesUnsafe = new TArrayUnsafe <FCoreRedirectObjectName>()) { bool result = Native_FCoreRedirects.FindPreviousNames(type, ref newObjectName, previousNamesUnsafe.Address); previousNames = previousNamesUnsafe.ToArray(); return(result); } }
/// <summary> /// Goes from UClass Type to the type flag /// </summary> public static ECoreRedirectFlags GetFlagsForTypeClass(UClass typeClass) { return(Native_FCoreRedirects.GetFlagsForTypeClass(typeClass.Address)); }
/// <summary> /// Goes from the containing package and name of the type to the type flag /// </summary> public static ECoreRedirectFlags GetFlagsForTypeName(FName packageName, FName typeName) { return(Native_FCoreRedirects.GetFlagsForTypeName(ref packageName, ref typeName)); }
/// <summary> /// Returns true if this has ever been initialized from ini /// </summary> public static bool IsInitialized() { return(Native_FCoreRedirects.IsInitialized()); }
/// <summary> /// Removes this as a missing name /// </summary> public static bool RemoveKnownMissing(ECoreRedirectFlags type, FCoreRedirectObjectName objectName) { return(Native_FCoreRedirects.RemoveKnownMissing(type, ref objectName)); }
/// <summary> /// Returns a redirected version of the object name. If there are no valid redirects, it will return the original name /// </summary> public static FCoreRedirectObjectName GetRedirectedName(ECoreRedirectFlags type, FCoreRedirectObjectName oldObjectName) { return(Native_FCoreRedirects.GetRedirectedName(type, ref oldObjectName)); }