Exemple #1
0
 /// <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));
     }
 }
Exemple #2
0
 /// <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);
     }
 }
Exemple #3
0
 /// <summary>
 /// Goes from UClass Type to the type flag
 /// </summary>
 public static ECoreRedirectFlags GetFlagsForTypeClass(UClass typeClass)
 {
     return(Native_FCoreRedirects.GetFlagsForTypeClass(typeClass.Address));
 }
Exemple #4
0
 /// <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));
 }
Exemple #5
0
 /// <summary>
 /// Returns true if this has ever been initialized from ini
 /// </summary>
 public static bool IsInitialized()
 {
     return(Native_FCoreRedirects.IsInitialized());
 }
Exemple #6
0
 /// <summary>
 /// Removes this as a missing name
 /// </summary>
 public static bool RemoveKnownMissing(ECoreRedirectFlags type, FCoreRedirectObjectName objectName)
 {
     return(Native_FCoreRedirects.RemoveKnownMissing(type, ref objectName));
 }
Exemple #7
0
 /// <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));
 }