< Summary

Class:DCL.PluginSystemFactory
Assembly:PluginSystem
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/PluginSystem/PluginSystemFactory.cs
Covered lines:0
Uncovered lines:29
Coverable lines:29
Total lines:59
Line coverage:0% (0 of 29)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Create()0%7562700%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/PluginSystem/PluginSystemFactory.cs

#LineLine coverage
 1using DCL.ECS7;
 2using DCL.Emotes;
 3using DCL.EmotesWheel;
 4using DCL.EquippedEmotes;
 5using DCL.ExperiencesViewer;
 6using DCL.Helpers;
 7using DCL.Skybox;
 8using DCL.Tutorial;
 9using DCLPlugins.UIRefresherPlugin;
 10
 11namespace DCL
 12{
 13    public static class PluginSystemFactory
 14    {
 15        public static PluginSystem Create()
 16        {
 017            var pluginSystem = new PluginSystem();
 18
 19            // Ideally the Plugin class itself should be a really small entry point with a parameterless constructor
 20            // the heavy lifting should be done by another class (following the Humble Object Pattern)
 21
 022            pluginSystem.Register<DebugPluginFeature>(() => new DebugPluginFeature());
 023            pluginSystem.Register<ShortcutsFeature>(() => new ShortcutsFeature());
 024            pluginSystem.Register<ExploreV2Feature>(() => new ExploreV2Feature());
 025            pluginSystem.Register<DebugShapesBoundingBoxDisplayer>(() => new DebugShapesBoundingBoxDisplayer());
 026            pluginSystem.Register<TransactionFeature>(() => new TransactionFeature());
 027            pluginSystem.Register<PreviewMenuPlugin>(() => new PreviewMenuPlugin());
 028            pluginSystem.Register<SkyboxController>(() => new SkyboxController());
 029            pluginSystem.Register<GotoPanelPlugin>(() => new GotoPanelPlugin());
 030            pluginSystem.Register<ExperiencesViewerFeature>(() => new ExperiencesViewerFeature());
 031            pluginSystem.Register<EmoteAnimationsPlugin>(() => new EmoteAnimationsPlugin());
 032            pluginSystem.Register<EquippedEmotesInitializerPlugin>(() => new EquippedEmotesInitializerPlugin());
 033            pluginSystem.Register<EmotesWheelUIPlugin>(() => new EmotesWheelUIPlugin());
 034            pluginSystem.Register<NFTShapePlugin>(() => new NFTShapePlugin());
 035            pluginSystem.Register<UUIDEventsPlugin>(() => new UUIDEventsPlugin());
 036            pluginSystem.Register<UIComponentsPlugin>(() => new UIComponentsPlugin());
 037            pluginSystem.Register<CoreComponentsPlugin>(() => new CoreComponentsPlugin());
 038            pluginSystem.Register<PlacesAndEventsFeature>(() => new PlacesAndEventsFeature());
 039            pluginSystem.Register<AvatarModifierAreaFeedbackPlugin>(() => new AvatarModifierAreaFeedbackPlugin());
 040            pluginSystem.Register<SpawnPointsDisplayerPlugin>(() => new SpawnPointsDisplayerPlugin());
 041            pluginSystem.Register<UIRefresherPlugin>(() => new UIRefresherPlugin());
 42
 043            pluginSystem.RegisterWithFlag<BuilderInWorldPlugin>(() => new BuilderInWorldPlugin(), "builder_in_world");
 044            pluginSystem.RegisterWithFlag<TutorialController>(() => new TutorialController(), "tutorial");
 045            pluginSystem.RegisterWithFlag<TextureCompressionTogglePlugin>(() => new TextureCompressionTogglePlugin(), "p
 046            pluginSystem.RegisterWithFlag<ECS7Plugin>(() => new ECS7Plugin(), "ecs7");
 047            pluginSystem.RegisterWithFlag<BlurFeature>(() => new BlurFeature(), "ui_blur");
 048            pluginSystem.Register<FriendsNotificationPlugin>(() => new FriendsNotificationPlugin(new DefaultPlayerPrefs(
 49                FriendsController.i,
 50                NotificationScriptableObjects.pendingFriendRequests,
 51                NotificationScriptableObjects.newApprovedFriends,
 52                DataStore.i));
 53
 054            pluginSystem.SetFeatureFlagsData(DataStore.i.featureFlags.flags);
 55
 056            return pluginSystem;
 57        }
 58    }
 59}

Methods/Properties

Create()