| | 1 | | using DCL; |
| | 2 | | using DCLServices.PlacesAPIService; |
| | 3 | | using DCLServices.WorldsAPIService; |
| | 4 | |
|
| | 5 | | /// <summary> |
| | 6 | | /// Plugin feature that initialize the ExploreV2 Desktop feature. |
| | 7 | | /// </summary> |
| | 8 | | public class ExploreV2FeatureDesktop : IPlugin |
| | 9 | | { |
| | 10 | | public IExploreV2MenuComponentController exploreV2MenuComponentController; |
| | 11 | |
|
| 0 | 12 | | public ExploreV2FeatureDesktop() |
| | 13 | | { |
| 0 | 14 | | exploreV2MenuComponentController = CreateController(); |
| 0 | 15 | | exploreV2MenuComponentController.Initialize(); |
| 0 | 16 | | } |
| | 17 | |
|
| | 18 | | internal virtual IExploreV2MenuComponentController CreateController() => |
| 0 | 19 | | new ExploreV2MenuComponentControllerDesktop(Environment.i.serviceLocator.Get<IPlacesAPIService>(), |
| | 20 | | Environment.i.serviceLocator.Get<IWorldsAPIService>(), new PlacesAnalytics(), |
| | 21 | | RealmsInfoBridge.i); |
| | 22 | |
|
| | 23 | | public void Dispose() |
| | 24 | | { |
| 0 | 25 | | exploreV2MenuComponentController.Dispose(); |
| 0 | 26 | | } |
| | 27 | | } |