Пример #1
0
 internal static void Initialize()
 {
     if (!PlatformFolders.IsVirtualFileSystemInitialized)
     {
         PlatformFolders.ApplicationDataSubDirectory = typeof(Module).Assembly.GetName().Name;
     }
     AssemblyRegistry.Register(typeof(Module).Assembly, AssemblyCommonCategories.Assets);
     AssetQuantumRegistry.RegisterAssembly(typeof(Module).Assembly);
     RuntimeHelpers.RunModuleConstructor(typeof(Asset).Module.ModuleHandle);
 }
Пример #2
0
 public static void Initialize()
 {
     RuntimeHelpers.RunModuleConstructor(typeof(SpriteFontAsset).Module.ModuleHandle);
     RuntimeHelpers.RunModuleConstructor(typeof(MaterialKeys).Module.ModuleHandle);
     RuntimeHelpers.RunModuleConstructor(typeof(Model).Module.ModuleHandle);
     RuntimeHelpers.RunModuleConstructor(typeof(PrefabAsset).Module.ModuleHandle);
     AssemblyRegistry.Register(typeof(Module).Assembly, AssemblyCommonCategories.Assets);
     // We need access to the AssetQuantumRegistry from the SessionTemplateGenerator so for now we register graph types in the module initializer.
     AssetQuantumRegistry.RegisterAssembly(typeof(Module).Assembly);
     // Register default template
     XenkoTemplates.Register();
     // Initialize translation
     TranslationManager.Instance.RegisterProvider(new GettextTranslationProvider());
 }
Пример #3
0
 internal static void Initialize()
 {
     AssemblyRegistry.Register(typeof(Module).Assembly, AssemblyCommonCategories.Assets);
     AssetQuantumRegistry.RegisterAssembly(typeof(Module).Assembly);
     RuntimeHelpers.RunModuleConstructor(typeof(Asset).Module.ModuleHandle);
 }