GetAllNativeClassesAsString() public method

public GetAllNativeClassesAsString ( ) : List
return List
Exemplo n.º 1
0
 public static void GenerateRegisterClassesForStripping(RuntimeClassRegistry allClasses, TextWriter output)
 {
     output.Write("void RegisterAllClasses() \n{\n");
     allClasses.SynchronizeClasses();
     foreach (string str in allClasses.GetAllNativeClassesAsString())
     {
         output.WriteLine(string.Format("extern int RegisterClass_{0}();\nRegisterClass_{0}();", str));
     }
     output.Write("\n}\n");
 }
 public static void GenerateRegisterClassesForStripping(RuntimeClassRegistry allClasses, TextWriter output)
 {
     output.Write("void RegisterAllClasses() \n{\n");
     allClasses.SynchronizeClasses();
     using (List <string> .Enumerator enumerator = allClasses.GetAllNativeClassesAsString().GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             string current = enumerator.Current;
             output.WriteLine(string.Format("extern int RegisterClass_{0}();\nRegisterClass_{0}();", (object)current));
         }
     }
     output.Write("\n}\n");
 }
        public static void GenerateRegisterModules(RuntimeClassRegistry allClasses, TextWriter output, bool strippingEnabled)
        {
            allClasses.SynchronizeClasses();
            HashSet <string> modulesToRegister = CodeStrippingUtils.GetNativeModulesToRegister(!strippingEnabled ? (HashSet <string>)null : new HashSet <string>((IEnumerable <string>)allClasses.GetAllNativeClassesAsString()));

            modulesToRegister.Add("IMGUI");
            using (HashSet <string> .Enumerator enumerator = modulesToRegister.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    string current = enumerator.Current;
                    output.WriteLine("\textern \"C\" void RegisterModule_" + current + "();");
                }
            }
            output.WriteLine("void RegisterStaticallyLinkedModules()");
            output.WriteLine("{");
            using (HashSet <string> .Enumerator enumerator = modulesToRegister.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    string current = enumerator.Current;
                    output.WriteLine("\tRegisterModule_" + current + "();");
                }
            }
            output.WriteLine("}");
        }
Exemplo n.º 4
0
        public static void GenerateRegisterModules(RuntimeClassRegistry allClasses, TextWriter output, bool strippingEnabled)
        {
            allClasses.SynchronizeClasses();
            HashSet <string> nativeClasses           = !strippingEnabled ? null : new HashSet <string>(allClasses.GetAllNativeClassesAsString());
            HashSet <string> nativeModulesToRegister = CodeStrippingUtils.GetNativeModulesToRegister(nativeClasses);

            nativeModulesToRegister.Add("IMGUI");
            foreach (string str in nativeModulesToRegister)
            {
                output.WriteLine("\textern \"C\" void RegisterModule_" + str + "();");
            }
            output.WriteLine("void RegisterStaticallyLinkedModules()");
            output.WriteLine("{");
            foreach (string str2 in nativeModulesToRegister)
            {
                output.WriteLine("\tRegisterModule_" + str2 + "();");
            }
            output.WriteLine("}");
        }
 public static void GenerateRegisterClassesForStripping(RuntimeClassRegistry allClasses, TextWriter output)
 {
   output.Write("void RegisterAllClasses() \n{\n");
   allClasses.SynchronizeClasses();
   using (List<string>.Enumerator enumerator = allClasses.GetAllNativeClassesAsString().GetEnumerator())
   {
     while (enumerator.MoveNext())
     {
       string current = enumerator.Current;
       output.WriteLine(string.Format("extern int RegisterClass_{0}();\nRegisterClass_{0}();", (object) current));
     }
   }
   output.Write("\n}\n");
 }
 public static void GenerateRegisterModules(RuntimeClassRegistry allClasses, TextWriter output, bool strippingEnabled)
 {
   allClasses.SynchronizeClasses();
   HashSet<string> modulesToRegister = CodeStrippingUtils.GetNativeModulesToRegister(!strippingEnabled ? (HashSet<string>) null : new HashSet<string>((IEnumerable<string>) allClasses.GetAllNativeClassesAsString()));
   modulesToRegister.Add("IMGUI");
   using (HashSet<string>.Enumerator enumerator = modulesToRegister.GetEnumerator())
   {
     while (enumerator.MoveNext())
     {
       string current = enumerator.Current;
       output.WriteLine("\textern \"C\" void RegisterModule_" + current + "();");
     }
   }
   output.WriteLine("void RegisterStaticallyLinkedModules()");
   output.WriteLine("{");
   using (HashSet<string>.Enumerator enumerator = modulesToRegister.GetEnumerator())
   {
     while (enumerator.MoveNext())
     {
       string current = enumerator.Current;
       output.WriteLine("\tRegisterModule_" + current + "();");
     }
   }
   output.WriteLine("}");
 }
		public static void GenerateRegisterClassesForStripping(RuntimeClassRegistry allClasses, TextWriter output)
		{
			output.Write("void RegisterAllClasses() \n{\n");
			allClasses.SynchronizeClasses();
			foreach (string current in allClasses.GetAllNativeClassesAsString())
			{
				output.WriteLine(string.Format("extern int RegisterClass_{0}();\nRegisterClass_{0}();", current));
			}
			output.Write("\n}\n");
		}