GetAllStrippableModules() private static method

private static GetAllStrippableModules ( ) : HashSet
return HashSet
Ejemplo n.º 1
0
 public static HashSet <string> GetNativeModulesToRegister(HashSet <string> nativeClasses)
 {
     if (nativeClasses == null)
     {
         return(CodeStrippingUtils.GetAllStrippableModules());
     }
     return(CodeStrippingUtils.GetRequiredStrippableModules(nativeClasses));
 }
Ejemplo n.º 2
0
 public static HashSet <string> GetNativeModulesToRegister(HashSet <UnityType> nativeClasses, StrippingInfo strippingInfo)
 {
     return((nativeClasses != null) ? CodeStrippingUtils.GetRequiredStrippableModules(nativeClasses, strippingInfo) : CodeStrippingUtils.GetAllStrippableModules());
 }
Ejemplo n.º 3
0
        public static void WriteModuleAndClassRegistrationFile(string strippedAssemblyDir, string outputDir, RuntimeClassRegistry rcr)
        {
            HashSet <string> hashSet = (PlayerSettings.strippingLevel != StrippingLevel.Disabled) ? CodeStrippingUtils.GenerateNativeClassList(rcr, strippedAssemblyDir, CodeStrippingUtils.GetUserAssemblies(strippedAssemblyDir)) : null;

            if (hashSet != null)
            {
                CodeStrippingUtils.ExcludeModuleManagers(ref hashSet);
            }
            HashSet <string> nativeModules = (hashSet != null) ? CodeStrippingUtils.GetRequiredStrippableModules(hashSet) : CodeStrippingUtils.GetAllStrippableModules();
            string           file          = Path.Combine(outputDir, "UnityClassRegistration.cpp");

            CodeStrippingUtils.WriteModuleAndClassRegistrationFile(file, nativeModules, hashSet);
        }