| | 1 | | using DCL.Tutorial; |
| | 2 | |
|
| | 3 | | namespace DCL |
| | 4 | | { |
| | 5 | | public static class PluginSystemFactory |
| | 6 | | { |
| | 7 | | public static PluginSystem Create() |
| | 8 | | { |
| 125 | 9 | | var pluginSystem = new PluginSystem(); |
| | 10 | |
|
| 250 | 11 | | pluginSystem.Register(() => new DebugPluginFeature()); |
| 250 | 12 | | pluginSystem.Register(() => new ShortcutsFeature()); |
| 125 | 13 | | pluginSystem.RegisterWithFlag(() => new BuilderInWorldPlugin(), "builder_in_world"); |
| 125 | 14 | | pluginSystem.RegisterWithFlag(() => new TutorialController(), "tutorial"); |
| 125 | 15 | | pluginSystem.RegisterWithFlag(() => new ExploreV2Feature(), "explorev2"); |
| | 16 | |
|
| 125 | 17 | | pluginSystem.SetFeatureFlagsData(DataStore.i.featureFlags.flags); |
| | 18 | |
|
| 125 | 19 | | return pluginSystem; |
| | 20 | | } |
| | 21 | | } |
| | 22 | | } |