| | 1 | | using AvatarSystem; |
| | 2 | | using DCL; |
| | 3 | | using DCL.ProfanityFiltering; |
| | 4 | | using DCL.Social.Friends; |
| | 5 | | using DCl.Social.Passports; |
| | 6 | | using DCL.Social.Passports; |
| | 7 | | using DCLServices.Lambdas.LandsService; |
| | 8 | | using DCLServices.Lambdas.NamesService; |
| | 9 | | using SocialFeaturesAnalytics; |
| | 10 | | using UnityEngine; |
| | 11 | |
|
| | 12 | | public class PlayerPassportPlugin : IPlugin |
| | 13 | | { |
| | 14 | | private readonly PlayerPassportHUDController passportController; |
| | 15 | |
|
| 0 | 16 | | public PlayerPassportPlugin() |
| | 17 | | { |
| 0 | 18 | | PlayerPassportReferenceContainer referenceContainer = Object.Instantiate(Resources.Load<GameObject>("PlayerPassp |
| | 19 | |
|
| 0 | 20 | | passportController = new PlayerPassportHUDController( |
| | 21 | | referenceContainer.PassportView, |
| | 22 | | new PassportPlayerInfoComponentController( |
| | 23 | | Resources.Load<StringVariable>("CurrentPlayerInfoCardId"), |
| | 24 | | referenceContainer.PlayerInfoView, |
| | 25 | | DataStore.i, |
| | 26 | | Environment.i.serviceLocator.Get<IProfanityFilter>(), |
| | 27 | | FriendsController.i, |
| | 28 | | new UserProfileWebInterfaceBridge(), |
| | 29 | | new SocialAnalytics( |
| | 30 | | Environment.i.platform.serviceProviders.analytics, |
| | 31 | | new UserProfileWebInterfaceBridge()), |
| | 32 | | Environment.i.platform.clipboard, |
| | 33 | | new WebInterfacePassportApiBridge()), |
| | 34 | | new PassportPlayerPreviewComponentController( |
| | 35 | | referenceContainer.PlayerPreviewView, |
| | 36 | | new SocialAnalytics( |
| | 37 | | Environment.i.platform.serviceProviders.analytics, |
| | 38 | | new UserProfileWebInterfaceBridge())), |
| | 39 | | new PassportNavigationComponentController( |
| | 40 | | referenceContainer.PassportNavigationView, |
| | 41 | | Environment.i.serviceLocator.Get<IProfanityFilter>(), |
| | 42 | | new WearableItemResolver(), |
| | 43 | | new WearablesCatalogControllerBridge(), |
| | 44 | | Environment.i.serviceLocator.Get<IEmotesCatalogService>(), |
| | 45 | | Environment.i.serviceLocator.Get<INamesService>(), |
| | 46 | | Environment.i.serviceLocator.Get<ILandsService>(), |
| | 47 | | new UserProfileWebInterfaceBridge(), |
| | 48 | | DataStore.i), |
| | 49 | | Resources.Load<StringVariable>("CurrentPlayerInfoCardId"), |
| | 50 | | new UserProfileWebInterfaceBridge(), |
| | 51 | | new WebInterfacePassportApiBridge(), |
| | 52 | | new SocialAnalytics( |
| | 53 | | Environment.i.platform.serviceProviders.analytics, |
| | 54 | | new UserProfileWebInterfaceBridge()), |
| | 55 | | DataStore.i, |
| | 56 | | SceneReferences.i.mouseCatcher, |
| | 57 | | CommonScriptableObjects.playerInfoCardVisibleState); |
| 0 | 58 | | } |
| | 59 | |
|
| | 60 | | public void Dispose() |
| | 61 | | { |
| 0 | 62 | | passportController?.Dispose(); |
| 0 | 63 | | } |
| | 64 | | } |