Ejemplo n.º 1
0
 public static void Clear()
 {
     gatheredUnrealTypes = false;
     Assemblies.Clear();
     AssembliesManagedTypes.Clear();
     AssembliesNativeTypes.Clear();
     AssemblySerializedModuleInfo.Clear();
     processedAssemblies.Clear();
     All.Clear();
     Managed.Clear();
     Native.Clear();
     AllByPath.Clear();
     ManagedByPath.Clear();
     NativeByPath.Clear();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Loads the underlying native type info for generated types (types tagged with UMetaPath)
        /// This loads the class address/properties/functions/offsets
        /// </summary>
        internal static void LoadNative(Assembly assembly)
        {
            // Clear NativeReflectionCached just in case it is holding onto old values.
            NativeReflectionCached.Clear();

            Dictionary <Type, UMetaPathAttribute> nativeTypes;

            if (AssembliesNativeTypes.TryGetValue(assembly, out nativeTypes))
            {
                foreach (KeyValuePair <Type, UMetaPathAttribute> type in nativeTypes)
                {
                    LoadNative(type.Key, type.Value);
                }
            }
        }