C# Class UnityEditor.MonoAOTRegistration

Mostra file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
BuildReferencedTypeList ( AssemblyDefinition assemblies ) : HashSet
GenerateRegisterClasses ( HashSet allClasses, TextWriter output ) : void
GenerateRegisterClassesForStripping ( HashSet nativeClassesAndBaseClasses, TextWriter output ) : void
GenerateRegisterInternalCalls ( AssemblyDefinition assemblies, TextWriter output ) : void
GenerateRegisterModules ( HashSet nativeClasses, HashSet nativeModules, TextWriter output, bool strippingEnabled ) : void
ResolveDefinedNativeClassesFromMono ( AssemblyDefinition assemblies, RuntimeClassRegistry res ) : void
ResolveReferencedUnityEngineClassesFromMono ( AssemblyDefinition assemblies, AssemblyDefinition unityEngine, RuntimeClassRegistry res ) : void
WriteCPlusPlusFileForStaticAOTModuleRegistration ( BuildTarget buildTarget, string file, CrossCompileOptions crossCompileOptions, bool advancedLic, string targetDevice, bool stripping, RuntimeClassRegistry usedClassRegistry, UnityEditor.AssemblyReferenceChecker checker, string stagingAreaDataManaged ) : void

Private Methods

Method Description
BuildNativeMethodList ( AssemblyDefinition assemblies ) : ArrayList
ExtractNativeMethodsFromTypes ( ICollection types, ArrayList res ) : void
GenerateInternalCallMethod ( Mono.Cecil.TypeDefinition typeDefinition, Mono.Cecil.MethodDefinition method, TextWriter output ) : void
GenerateRegisterInternalCallsForTypes ( IEnumerable types, TextWriter output ) : void

Method Details

BuildReferencedTypeList() public static method

public static BuildReferencedTypeList ( AssemblyDefinition assemblies ) : HashSet
assemblies Mono.Cecil.AssemblyDefinition
return HashSet

GenerateRegisterClasses() public static method

public static GenerateRegisterClasses ( HashSet allClasses, TextWriter output ) : void
allClasses HashSet
output System.IO.TextWriter
return void

GenerateRegisterClassesForStripping() public static method

public static GenerateRegisterClassesForStripping ( HashSet nativeClassesAndBaseClasses, TextWriter output ) : void
nativeClassesAndBaseClasses HashSet
output System.IO.TextWriter
return void

GenerateRegisterInternalCalls() public static method

public static GenerateRegisterInternalCalls ( AssemblyDefinition assemblies, TextWriter output ) : void
assemblies Mono.Cecil.AssemblyDefinition
output System.IO.TextWriter
return void

GenerateRegisterModules() public static method

public static GenerateRegisterModules ( HashSet nativeClasses, HashSet nativeModules, TextWriter output, bool strippingEnabled ) : void
nativeClasses HashSet
nativeModules HashSet
output System.IO.TextWriter
strippingEnabled bool
return void

ResolveDefinedNativeClassesFromMono() public static method

public static ResolveDefinedNativeClassesFromMono ( AssemblyDefinition assemblies, RuntimeClassRegistry res ) : void
assemblies Mono.Cecil.AssemblyDefinition
res RuntimeClassRegistry
return void

ResolveReferencedUnityEngineClassesFromMono() public static method

public static ResolveReferencedUnityEngineClassesFromMono ( AssemblyDefinition assemblies, AssemblyDefinition unityEngine, RuntimeClassRegistry res ) : void
assemblies Mono.Cecil.AssemblyDefinition
unityEngine Mono.Cecil.AssemblyDefinition
res RuntimeClassRegistry
return void

WriteCPlusPlusFileForStaticAOTModuleRegistration() public static method

public static WriteCPlusPlusFileForStaticAOTModuleRegistration ( BuildTarget buildTarget, string file, CrossCompileOptions crossCompileOptions, bool advancedLic, string targetDevice, bool stripping, RuntimeClassRegistry usedClassRegistry, UnityEditor.AssemblyReferenceChecker checker, string stagingAreaDataManaged ) : void
buildTarget BuildTarget
file string
crossCompileOptions CrossCompileOptions
advancedLic bool
targetDevice string
stripping bool
usedClassRegistry RuntimeClassRegistry
checker UnityEditor.AssemblyReferenceChecker
stagingAreaDataManaged string
return void