BundleManifestsController.static.cs 1013 B

12345678910111213141516171819
  1. namespace XGame.Editor.Build.AssetBundles
  2. {
  3. internal partial class BundleManifestsController
  4. {
  5. public static BundleManifestsController Creat(BundleContext context)
  6. {
  7. var shaderCollector = new ShaderBundleCollector(context);
  8. var atlasCollector = new AtlasBundleCollector(context);
  9. var packerCollector = new PackerBundleCollector(context, atlasCollector);
  10. var depCollector = new DepBundleCollector(context);
  11. var sceneCollector = new SceneBundleCollector(context);
  12. var bundleCollector = new AssetBundleCollector(context, shaderCollector, atlasCollector, packerCollector, depCollector, sceneCollector);
  13. var depsController = new BundleDepsController(context);
  14. var sceneController = new SceneManifestController(sceneCollector);
  15. var controller = new BundleManifestsController(context, bundleCollector, depsController, sceneController);
  16. return controller;
  17. }
  18. }
  19. }