-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDynamicWorldContainer.cs
More file actions
1421 lines (1267 loc) · 70.5 KB
/
Copy pathDynamicWorldContainer.cs
File metadata and controls
1421 lines (1267 loc) · 70.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using Arch.Core;
using CommunicationData.URLHelpers;
using Cysharp.Threading.Tasks;
using DCL.ApplicationBlocklistGuard;
using DCL.AssetsProvision;
using DCL.Audio;
using DCL.AvatarRendering.Emotes;
using DCL.AvatarRendering.Emotes.Equipped;
using DCL.AvatarRendering.Wearables;
using DCL.AvatarRendering.Wearables.Equipped;
using DCL.AvatarRendering.Wearables.Helpers;
using DCL.AvatarRendering.Wearables.ThirdParty;
using DCL.Backpack.BackpackBus;
using DCL.BadgesAPIService;
using DCL.Browser;
using DCL.CharacterPreview;
using DCL.Chat.ChatServices;
using DCL.Chat.Commands;
using DCL.Chat.History;
using DCL.Chat.MessageBus;
using DCL.ChatArea;
using DCL.Clipboard;
using DCL.Communities;
using DCL.SpringBones;
using DCL.Communities.CommunitiesCard.Members;
using DCL.Communities.CommunitiesDataProvider;
using DCL.DebugUtilities;
using DCL.Diagnostics;
using DCL.Donations;
using DCL.EventsApi;
using DCL.FeatureFlags;
using DCL.Friends;
using DCL.Friends.Passport;
using DCL.Friends.UserBlocking;
using DCL.Input;
using DCL.InWorldCamera;
using DCL.InWorldCamera.CameraReelStorageService;
using DCL.LOD.Systems;
using DCL.MapRenderer;
using DCL.Multiplayer.Connections.Archipelago.AdapterAddress.Current;
using DCL.Multiplayer.Connections.Archipelago.Rooms;
using DCL.Multiplayer.Connections.Archipelago.Rooms.Chat;
using DCL.Multiplayer.Connections.DecentralandUrls;
using DCL.Multiplayer.Connections.GateKeeper.Meta;
using DCL.Multiplayer.Connections.GateKeeper.Rooms;
using DCL.Multiplayer.Connections.GateKeeper.Rooms.Options;
using DCL.Multiplayer.Connections.Messaging.Hubs;
using DCL.Multiplayer.Connections.Pools;
using DCL.Multiplayer.Connections.RoomHubs;
using DCL.Multiplayer.Connections.Rooms.Connective;
using DCL.Multiplayer.Connections.Rooms.Status;
using DCL.Multiplayer.Connections.Systems.Throughput;
using DCL.Multiplayer.Connectivity;
using DCL.Multiplayer.Emotes;
using DCL.Multiplayer.HealthChecks;
using DCL.Multiplayer.Movement;
using DCL.Multiplayer.Movement.Systems;
using DCL.Multiplayer.Profiles.BroadcastProfiles;
using DCL.Multiplayer.Profiles.Entities;
using DCL.Multiplayer.Profiles.Poses;
using DCL.Multiplayer.Profiles.RemoteAnnouncements;
using DCL.Multiplayer.Profiles.RemoteProfiles;
using DCL.Multiplayer.Profiles.Tables;
using DCL.Multiplayer.SDK.Systems.GlobalWorld;
using DCL.Navmap;
using DCL.NftInfoAPIService;
using DCL.Notifications;
using DCL.Optimization.Pools;
using DCL.PerformanceAndDiagnostics.Analytics;
using DCL.PlacesAPIService;
using DCL.PluginSystem;
using DCL.PluginSystem.Global;
using DCL.Profiles;
using DCL.Profiles.Self;
using DCL.RealmNavigation;
using DCL.Rendering.GPUInstancing.Systems;
using DCL.RuntimeDeepLink;
using DCL.SceneLoadingScreens.LoadingScreen;
using DCL.SkyBox;
using DCL.SocialService;
using DCL.UI;
using DCL.UI.ConfirmationDialog;
using DCL.UI.InputFieldFormatting;
using DCL.UI.MainUI;
using DCL.UI.ProfileElements;
using DCL.UI.Profiles.Helpers;
using DCL.Prefs;
using DCL.UserInAppInitializationFlow;
using DCL.Utilities;
using DCL.Utilities.Extensions;
using DCL.VoiceChat;
using DCL.VoiceChat.Nearby;
using DCL.VoiceChat.Nearby.MutePersistence;
using DCL.Web3.Identities;
using ECS.Prioritization.Components;
using ECS.SceneLifeCycle;
using ECS.SceneLifeCycle.CurrentScene;
using ECS.SceneLifeCycle.Realm;
using Global.AppArgs;
using Global.Dynamic.ChatCommands;
using Global.Dynamic.RealmUrl;
using Global.Versioning;
using DCL.LiveKit.Public;
using LiveKit.Internal.FFIClients.Pools;
using LiveKit.Internal.FFIClients.Pools.Memory;
using MVC;
using MVC.PopupsController.PopupCloser;
using SceneRunner.Debugging.Hub;
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using DCL.MapRenderer.MapLayers.HomeMarker;
using DCL.Backpack.Gifting.Services;
using DCL.Backpack.Gifting.Services.PendingTransfers;
using DCL.Backpack.Gifting.Services.SnapshotEquipped;
using DCL.Chat;
using DCL.NotificationsBus;
using DCL.PluginSystem.SmartWearables;
using DCL.Optimization.AdaptivePerformance.Systems;
using DCL.PluginSystem.World;
using DCL.SDKComponents.AvatarLocomotion;
using DCL.PerformanceAndDiagnostics.Analytics.DecoratorBased;
using DCL.PrivateWorlds;
using DCL.Translation;
using System.Diagnostics.CodeAnalysis;
using UnityEngine;
using UnityEngine.Audio;
using UnityEngine.EventSystems;
using UnityEngine.Pool;
using Utility;
using Utility.Ownership;
using Utility.PriorityQueue;
using MultiplayerPlugin = DCL.PluginSystem.Global.MultiplayerPlugin;
using Object = UnityEngine.Object;
namespace Global.Dynamic
{
public class DynamicWorldContainer : DCLWorldContainer<DynamicWorldSettings>
{
private readonly IChatMessagesBus chatMessagesBus;
private readonly IChatHistory chatHistory;
private readonly IProfileBroadcast profileBroadcast;
private readonly SocialServicesContainer socialServicesContainer;
private readonly ISelfProfile selfProfile;
private readonly BannedNotificationHandler bannedNotificationHandler;
private readonly ProfileRepositoryWrapper profileRepositoryWrapper;
private readonly JoinedCommunitiesVoiceLiveTracker joinedCommunitiesVoiceLiveTracker;
public IMVCManager MvcManager { get; }
public IGlobalRealmController RealmController { get; }
public IRealmNavigator RealmNavigator { get; }
public GlobalWorldFactory GlobalWorldFactory { get; }
public IReadOnlyList<IDCLGlobalPlugin> GlobalPlugins { get; }
public IProfileRepository ProfileRepository { get; }
public IUserInAppInitializationFlow UserInAppInAppInitializationFlow { get; }
public IMessagePipesHub MessagePipesHub { get; }
public IRemoteMetadata RemoteMetadata { get; }
public IRoomHub RoomHub { get; }
public ISystemClipboard SystemClipboard { get; }
public IChatHistory ChatHistory => chatHistory;
private DynamicWorldContainer(
IMVCManager mvcManager,
IGlobalRealmController realmController,
IRealmNavigator realmNavigator,
GlobalWorldFactory globalWorldFactory,
IReadOnlyList<IDCLGlobalPlugin> globalPlugins,
IProfileRepository profileRepository,
IUserInAppInitializationFlow userInAppInAppInitializationFlow,
IChatMessagesBus chatMessagesBus,
IChatHistory chatHistory,
IMessagePipesHub messagePipesHub,
IRemoteMetadata remoteMetadata,
IProfileBroadcast profileBroadcast,
IRoomHub roomHub,
SocialServicesContainer socialServicesContainer,
ISelfProfile selfProfile,
ISystemClipboard systemClipboard,
BannedNotificationHandler bannedNotificationHandler,
ProfileRepositoryWrapper profileRepositoryWrapper,
JoinedCommunitiesVoiceLiveTracker joinedCommunitiesVoiceLiveTracker)
{
MvcManager = mvcManager;
RealmController = realmController;
RealmNavigator = realmNavigator;
GlobalWorldFactory = globalWorldFactory;
GlobalPlugins = globalPlugins;
ProfileRepository = profileRepository;
UserInAppInAppInitializationFlow = userInAppInAppInitializationFlow;
MessagePipesHub = messagePipesHub;
RemoteMetadata = remoteMetadata;
RoomHub = roomHub;
SystemClipboard = systemClipboard;
this.chatMessagesBus = chatMessagesBus;
this.chatHistory = chatHistory;
this.profileBroadcast = profileBroadcast;
this.socialServicesContainer = socialServicesContainer;
this.selfProfile = selfProfile;
this.bannedNotificationHandler = bannedNotificationHandler;
this.profileRepositoryWrapper = profileRepositoryWrapper;
this.joinedCommunitiesVoiceLiveTracker = joinedCommunitiesVoiceLiveTracker;
}
public override void Dispose()
{
bannedNotificationHandler.Dispose();
chatMessagesBus.Dispose();
profileBroadcast.Dispose();
MessagePipesHub.Dispose();
socialServicesContainer.Dispose();
selfProfile.Dispose();
profileRepositoryWrapper.Dispose();
joinedCommunitiesVoiceLiveTracker.Dispose();
}
[SuppressMessage("ReSharper", "MethodHasAsyncOverloadWithCancellation")]
public static async UniTask<(DynamicWorldContainer? container, bool success)> CreateAsync(
BootstrapContainer bootstrapContainer,
DynamicWorldDependencies dynamicWorldDependencies,
DynamicWorldParams dynamicWorldParams,
AudioClipConfig backgroundMusic,
World globalWorld,
Entity playerEntity,
IAppArgs appArgs,
ICoroutineRunner coroutineRunner,
DCLVersion dclVersion,
RealmUrls realmUrls,
CancellationToken ct)
{
DynamicSettings dynamicSettings = dynamicWorldDependencies.DynamicSettings;
StaticContainer staticContainer = dynamicWorldDependencies.StaticContainer;
IWeb3IdentityCache identityCache = dynamicWorldDependencies.Web3IdentityCache;
IAssetsProvisioner assetsProvisioner = dynamicWorldDependencies.AssetsProvisioner;
IDebugContainerBuilder debugBuilder = dynamicWorldDependencies.DebugContainerBuilder;
var explorePanelNavmapBus = new ObjectProxy<INavmapBus>();
INavmapBus sharedNavmapCommandBus = new SharedNavmapBus(explorePanelNavmapBus);
// If we have many undesired delays when using the third-party providers, it might be useful to cache it at app's bootstrap
// So far, the chance of using it is quite low, so it's preferable to do it lazy avoiding extra requests & memory allocations
IThirdPartyNftProviderSource thirdPartyNftProviderSource = new RealmThirdPartyNftProviderSource(staticContainer.WebRequestsContainer.WebRequestController,
bootstrapContainer.DecentralandUrlsSource);
var placesAPIService = new PlacesAPIService(new PlacesAPIClient(staticContainer.WebRequestsContainer.WebRequestController, bootstrapContainer.DecentralandUrlsSource));
var eventsApiService = new HttpEventsApiService(staticContainer.WebRequestsContainer.WebRequestController, bootstrapContainer.DecentralandUrlsSource);
var mapPathEventBus = new MapPathEventBus();
NotificationsBusController.Initialize(new NotificationsBusController());
DefaultTexturesContainer defaultTexturesContainer = null!;
LODContainer lodContainer = null!;
IOnlineUsersProvider baseUserProvider = new ArchipelagoHttpOnlineUsersProvider(staticContainer.WebRequestsContainer.WebRequestController,
URLAddress.FromString(bootstrapContainer.DecentralandUrlsSource.Url(DecentralandUrl.RemotePeers)));
var onlineUsersProvider = new WorldInfoOnlineUsersProviderDecorator(
baseUserProvider,
staticContainer.WebRequestsContainer.WebRequestController,
URLAddress.FromString(bootstrapContainer.DecentralandUrlsSource.Url(DecentralandUrl.RemotePeersWorld)));
async UniTask InitializeContainersAsync(IPluginSettingsContainer settingsContainer, CancellationToken ct)
{
// Init other containers
defaultTexturesContainer =
await DefaultTexturesContainer
.CreateAsync(
settingsContainer,
assetsProvisioner,
appArgs,
ct
)
.ThrowOnFail();
lodContainer =
await LODContainer
.CreateAsync(
assetsProvisioner,
staticContainer,
settingsContainer,
staticContainer.RealmData,
defaultTexturesContainer.TextureArrayContainerFactory,
debugBuilder,
dynamicWorldParams.EnableLOD,
staticContainer.GPUInstancingService,
ct
)
.ThrowOnFail();
}
try { await InitializeContainersAsync(dynamicWorldDependencies.SettingsContainer, ct); }
catch (Exception) { return (null, false); }
CursorSettings cursorSettings = (await assetsProvisioner.ProvideMainAssetAsync(dynamicSettings.CursorSettings, ct)).Value;
ProvidedAsset<Texture2D> normalCursorAsset = await assetsProvisioner.ProvideMainAssetAsync(cursorSettings.NormalCursor, ct);
ProvidedAsset<Texture2D> interactionCursorAsset = await assetsProvisioner.ProvideMainAssetAsync(cursorSettings.InteractionCursor, ct);
var unityEventSystem = new UnityEventSystem(EventSystem.current.EnsureNotNull());
var dclCursor = new DCLCursor(normalCursorAsset.Value, interactionCursorAsset.Value, cursorSettings.NormalCursorHotspot, cursorSettings.InteractionCursorHotspot);
staticContainer.QualityContainer.AddDebugViews(debugBuilder);
var realmSamplingData = new RealmSamplingData();
ExposedGlobalDataContainer exposedGlobalDataContainer = staticContainer.ExposedGlobalDataContainer;
PopupCloserView popupCloserView = Object.Instantiate((await assetsProvisioner.ProvideMainAssetAsync(dynamicSettings.PopupCloserView, CancellationToken.None)).Value.GetComponent<PopupCloserView>()).EnsureNotNull();
MainUIView mainUIView = Object.Instantiate((await assetsProvisioner.ProvideMainAssetAsync(dynamicSettings.MainUIView, CancellationToken.None)).Value.GetComponent<MainUIView>()).EnsureNotNull();
var coreMvcManager = new MVCManager(new WindowStackManager(), new CancellationTokenSource(), popupCloserView);
var supportRequestService = new SupportRequestService(bootstrapContainer.WebBrowser);
IMVCManager mvcManager = dynamicWorldParams.EnableAnalytics
? new MVCManagerAnalyticsDecorator(coreMvcManager, bootstrapContainer.Analytics.Controller, supportRequestService)
: coreMvcManager;
var loadingScreenTimeout = new LoadingScreenTimeout();
ILoadingScreen loadingScreen = new LoadingScreen(mvcManager, loadingScreenTimeout);
var nftInfoAPIClient = new OpenSeaAPIClient(staticContainer.WebRequestsContainer.WebRequestController, bootstrapContainer.DecentralandUrlsSource);
var wearableCatalog = new WearableStorage();
var trimmedWearableCatalog = new TrimmedWearableStorage();
var trimmedEmoteCatalog = new TrimmedEmoteStorage();
var characterPreviewFactory = new CharacterPreviewFactory(staticContainer.ComponentsContainer.ComponentPoolsRegistry, appArgs);
IWebBrowser webBrowser = bootstrapContainer.WebBrowser;
ISystemClipboard clipboard = new UnityClipboard();
ChatSharedAreaEventBus chatSharedAreaEventBus = new ChatSharedAreaEventBus();
GalleryEventBus galleryEventBus = new GalleryEventBus();
static IMultiPool MultiPoolFactory() =>
new DCLMultiPool();
var memoryPool = new ArrayMemoryPool(ArrayPool<byte>.Shared!);
var builderDTOsURL = URLDomain.FromString(bootstrapContainer.DecentralandUrlsSource.Url(DecentralandUrl.BuilderApiDtos));
var builderContentURL = URLDomain.FromString(bootstrapContainer.DecentralandUrlsSource.Url(DecentralandUrl.BuilderApiContent));
IEmoteStorage emotesCache = staticContainer.EmoteStorage;
staticContainer.CacheCleaner.Register(trimmedEmoteCatalog);
var equippedWearables = new EquippedWearables();
var equippedEmotes = new EquippedEmotes();
var selfEmotes = new List<URN>();
ParseParamsForcedEmotes(bootstrapContainer.AppArgs, ref selfEmotes);
ParseDebugForcedEmotes(bootstrapContainer.DebugSettings.EmotesToAddToUserProfile, ref selfEmotes);
IProfileRepository profilesRepository = staticContainer.ProfilesContainer.Repository;
IProfileCache profileCache = staticContainer.ProfilesContainer.Cache;
var selfProfile = new SelfProfile(profilesRepository, identityCache, equippedWearables, wearableCatalog,
emotesCache, equippedEmotes, selfEmotes, profileCache, globalWorld, playerEntity);
IGiftingPersistence giftingPersistence = new PlayerPrefsGiftingPersistence();
IPendingTransferService pendingTransferService = new PendingTransferService(giftingPersistence);
IAvatarEquippedStatusProvider equippedStatusProvider = new AvatarEquippedStatusProvider(selfProfile);
var communitiesDataProvider = new CommunitiesDataProvider(staticContainer.WebRequestsContainer.WebRequestController, bootstrapContainer.DecentralandUrlsSource, identityCache);
var communityMembershipChecker = new CommunityMembershipCheckerAdapter(communitiesDataProvider);
IWorldPermissionsService worldPermissionsService = new WorldPermissionsService(staticContainer.WebRequestsContainer.WebRequestController,
bootstrapContainer.DecentralandUrlsSource,
identityCache,
communityMembershipChecker);
IEmoteProvider emoteProvider = new ApplicationParamsEmoteProvider(appArgs,
new EcsEmoteProvider(globalWorld, identityCache), builderDTOsURL.Value);
var wearablesProvider = new ApplicationParametersWearablesProvider(appArgs,
new ECSWearablesProvider(identityCache, globalWorld), builderDTOsURL.Value);
//TODO should be unified with LaunchMode
bool localSceneDevelopment = !string.IsNullOrEmpty(dynamicWorldParams.LocalSceneDevelopmentRealm);
var teleportController = new TeleportController(staticContainer.SceneReadinessReportQueue);
var realmContainer = RealmContainer.Create(
staticContainer,
identityCache,
dynamicWorldParams.StaticLoadPositions,
debugBuilder,
loadingScreenTimeout,
loadingScreen,
localSceneDevelopment,
bootstrapContainer.DecentralandUrlsSource,
appArgs,
teleportController,
bootstrapContainer.Environment,
worldPermissionsService);
var terrainContainer = TerrainContainer.Create(staticContainer, realmContainer, dynamicWorldParams.EnableLandscape, localSceneDevelopment);
SceneRoomLogMetaDataSource playSceneMetaDataSource = new SceneRoomMetaDataSource(staticContainer.RealmData, staticContainer.CharacterContainer.Transform, globalWorld, dynamicWorldParams.IsolateScenesCommunication, bootstrapContainer.DecentralandUrlsSource).WithLog();
SceneRoomLogMetaDataSource localDevelopmentMetaDataSource = new LocalSceneDevelopmentSceneRoomMetaDataSource(staticContainer.WebRequestsContainer.WebRequestController).WithLog();
var gateKeeperSceneRoomOptions = new GateKeeperSceneRoomOptions(staticContainer.LaunchMode,
bootstrapContainer.DecentralandUrlsSource,
playSceneMetaDataSource,
localDevelopmentMetaDataSource,
appArgs,
staticContainer.RealmData);
IGateKeeperSceneRoom gateKeeperSceneRoom = new GateKeeperSceneRoom(staticContainer.WebRequestsContainer.WebRequestController,
gateKeeperSceneRoomOptions).AsActivatable();
var currentAdapterAddress = ICurrentAdapterAddress.NewDefault(staticContainer.RealmData);
var archipelagoIslandRoom = IArchipelagoIslandRoom.NewDefault(
identityCache,
MultiPoolFactory(),
new ArrayMemoryPool(),
staticContainer.CharacterContainer.CharacterObject,
currentAdapterAddress,
staticContainer.WebRequestsContainer.WebRequestController,
staticContainer.RealmData
);
var reloadSceneController = new ECSReloadScene(staticContainer.ScenesCache, globalWorld, playerEntity, localSceneDevelopment, staticContainer.CacheCleaner);
var chatRoom = new ChatConnectiveRoom(staticContainer.WebRequestsContainer.WebRequestController, URLAddress.FromString(bootstrapContainer.DecentralandUrlsSource.Url(DecentralandUrl.ChatAdapter)));
var voiceChatRoom = new VoiceChatActivatableConnectiveRoom();
IRoomHub roomHub = new RoomHub(
localSceneDevelopment ? IConnectiveRoom.Null.INSTANCE : archipelagoIslandRoom,
gateKeeperSceneRoom,
chatRoom,
voiceChatRoom
);
var islandThroughputBunch = new ThroughputBufferBunch(new ThroughputBuffer(), new ThroughputBuffer());
var sceneThroughputBunch = new ThroughputBufferBunch(new ThroughputBuffer(), new ThroughputBuffer());
var chatThroughputBunch = new ThroughputBufferBunch(new ThroughputBuffer(), new ThroughputBuffer());
var messagePipesHub = new MessagePipesHub(roomHub, MultiPoolFactory(), memoryPool, islandThroughputBunch, sceneThroughputBunch, chatThroughputBunch);
var remoteMetadata = new DebounceRemoteMetadata(new RemoteMetadata(roomHub, staticContainer.RealmData, bootstrapContainer.DecentralandUrlsSource));
var remoteAnnouncements = new RemoteAnnouncements(messagePipesHub);
var remoteProfiles = new RemoteProfiles(profilesRepository, remoteMetadata);
var roomsStatus = new RoomsStatus(
roomHub,
//override allowed only in Editor
Application.isEditor
? new LinkedBox<(bool use, LKConnectionQuality quality)>(
() => (bootstrapContainer.DebugSettings.OverrideConnectionQuality, bootstrapContainer.DebugSettings.ConnectionQuality)
)
: new Box<(bool use, LKConnectionQuality quality)>((false, LKConnectionQuality.QualityExcellent))
);
var entityParticipantTable = new EntityParticipantTable();
staticContainer.EntityParticipantTableProxy.SetObject(entityParticipantTable);
var queuePoolFullMovementMessage = new ObjectPool<SimplePriorityQueue<NetworkMovementMessage>>(
() => new SimplePriorityQueue<NetworkMovementMessage>(),
actionOnRelease: queue => queue.Clear()
);
var remoteEntities = new RemoteEntities(
entityParticipantTable,
staticContainer.ComponentsContainer.ComponentPoolsRegistry,
queuePoolFullMovementMessage,
staticContainer.EntityCollidersGlobalCache
);
var worldAccessGate = new PrivateWorldAccessHandler(worldPermissionsService, mvcManager, staticContainer.RealmData);
var realmNavigatorContainer = RealmNavigationContainer.Create
(staticContainer, bootstrapContainer, lodContainer, realmContainer, remoteEntities, remoteAnnouncements, remoteProfiles, globalWorld, roomHub, terrainContainer.Landscape, exposedGlobalDataContainer, loadingScreen, placesAPIService, worldAccessGate);
IHealthCheck livekitHealthCheck = bootstrapContainer.DebugSettings.EnableEmulateNoLivekitConnection
? new IHealthCheck.AlwaysFails()
: new StartLiveKitRooms(roomHub);
livekitHealthCheck = dynamicWorldParams.EnableAnalytics
? livekitHealthCheck.WithFailAnalytics(bootstrapContainer.Analytics.Controller)
: livekitHealthCheck;
bool includeCameraReel = FeaturesRegistry.Instance.IsEnabled(FeatureId.CAMERA_REEL);
bool includeFriends = FeaturesRegistry.Instance.IsEnabled(FeatureId.FRIENDS);
bool includeMarketplaceCredits = FeaturesRegistry.Instance.IsEnabled(FeatureId.MARKETPLACE_CREDITS);
bool includeBannedUsersFromScene = FeaturesRegistry.Instance.IsEnabled(FeatureId.BANNED_USERS_FROM_SCENE);
CommunitiesFeatureAccess.Initialize(new CommunitiesFeatureAccess(identityCache, appArgs));
bool includeCommunities = await CommunitiesFeatureAccess.Instance.IsUserAllowedToUseTheFeatureAsync(ct, ignoreAllowedList: true, cacheResult: false);
var chatHistory = new ChatHistory();
IEventBus emotesEventBus = new EventBus(true);
var emoteWheelShortcutHandler = new EmoteWheelShortcutHandler(emotesEventBus);
var moderationDataProvider = new ModerationDataProvider(staticContainer.WebRequestsContainer.WebRequestController, bootstrapContainer.DecentralandUrlsSource);
var bannedNotificationHandler = new BannedNotificationHandler(
staticContainer.WebRequestsContainer.WebRequestController,
bootstrapContainer.DecentralandUrlsSource,
bootstrapContainer.IdentityCache!,
moderationDataProvider,
mvcManager,
bootstrapContainer.WebBrowser);
var initializationFlowContainer = InitializationFlowContainer.Create(staticContainer,
bootstrapContainer,
realmContainer,
realmNavigatorContainer,
terrainContainer,
loadingScreen,
livekitHealthCheck,
mvcManager,
selfProfile,
dynamicWorldParams,
appArgs,
backgroundMusic,
roomHub,
localSceneDevelopment,
staticContainer.CharacterContainer,
moderationDataProvider);
IRealmNavigator realmNavigator = realmNavigatorContainer.RealmNavigator;
HomePlaceEventBus homePlaceEventBus = new HomePlaceEventBus();
ChatEventBus chatEventBus = new ChatEventBus();
MapRendererContainer? mapRendererContainer =
await MapRendererContainer
.CreateAsync(
dynamicWorldDependencies.SettingsContainer,
staticContainer,
bootstrapContainer.DecentralandUrlsSource,
assetsProvisioner,
placesAPIService,
eventsApiService,
mapPathEventBus,
staticContainer.MapPinsEventBus,
realmNavigator,
staticContainer.RealmData,
sharedNavmapCommandBus,
onlineUsersProvider,
identityCache,
homePlaceEventBus,
chatEventBus,
ct
);
var worldInfoHub = new LocationBasedWorldInfoHub(
new WorldInfoHub(staticContainer.SingletonSharedDependencies.SceneMapping),
staticContainer.CharacterContainer.CharacterObject
);
dynamicWorldDependencies.WorldInfoTool.Initialize(worldInfoHub);
var characterDataPropagationUtility = new CharacterDataPropagationUtility(staticContainer.ComponentsContainer.ComponentPoolsRegistry.AddComponentPool<SDKProfile>());
var currentSceneInfo = new CurrentSceneInfo();
var chatTeleporter = new ChatTeleporter(realmNavigator, new ChatEnvironmentValidator(bootstrapContainer.Environment), bootstrapContainer.DecentralandUrlsSource);
var reloadSceneChatCommand = new ReloadSceneChatCommand(reloadSceneController, globalWorld, playerEntity, staticContainer.ScenesCache, teleportController, localSceneDevelopment);
var chatMessageFactory = new ChatMessageFactory(profileCache, identityCache);
// LEGACY HACK — do not add new consumers. Kept only for Settings group + ExplorePanelPlugin; pass `userBlockingCache` directly instead. See ObjectProxy<T>.
var userBlockingCacheProxy = new ObjectProxy<IUserBlockingCache>();
IFriendsEventBus friendsEventBus = new DefaultFriendsEventBus();
IUserBlockingCache userBlockingCache = FeaturesRegistry.Instance.IsEnabled(FeatureId.FRIENDS_USER_BLOCKING)
? new UserBlockingCache(friendsEventBus)
: new NullUserBlockingCache();
userBlockingCacheProxy.SetObject(userBlockingCache);
var currentChannelService = new CurrentChannelService();
var chatCommands = new List<IChatCommand>
{
new GoToChatCommand(chatTeleporter, staticContainer.WebRequestsContainer.WebRequestController, bootstrapContainer.DecentralandUrlsSource),
new GoToLocalChatCommand(chatTeleporter),
new DebugPanelChatCommand(debugBuilder),
new ShowEntityChatCommand(worldInfoHub),
reloadSceneChatCommand,
new LoadPortableExperienceChatCommand(staticContainer.PortableExperiencesController),
new KillPortableExperienceChatCommand(staticContainer.PortableExperiencesController, staticContainer.SmartWearableCache),
new VersionChatCommand(dclVersion),
new SupportChatCommand(supportRequestService),
new RoomsChatCommand(roomHub),
new LogsChatCommand(),
new SceneAdminsChatCommand(),
new AppArgsCommand(appArgs),
new LogMatrixChatCommand((RuntimeReportsHandlingSettings)bootstrapContainer.DiagnosticsContainer.Settings),
new AnrSimulateChatCommand(),
#if UNITY_STANDALONE_WIN
new AnrDumpChatCommand(),
#endif
};
chatCommands.Add(new HelpChatCommand(chatCommands, appArgs));
IChatMessagesBus coreChatMessageBus = new MultiplayerChatMessagesBus(messagePipesHub, chatMessageFactory, userBlockingCache, bootstrapContainer.Environment, identityCache, roomHub)
.WithSelfResend(identityCache, chatMessageFactory)
.WithIgnoreSymbols()
.WithCommands(chatCommands, staticContainer.LoadingStatus)
.WithDebugPanel(debugBuilder);
IChatMessagesBus chatMessagesBus = dynamicWorldParams.EnableAnalytics
? new ChatMessagesBusAnalyticsDecorator(coreChatMessageBus, bootstrapContainer.Analytics.Controller, profileCache, selfProfile)
: coreChatMessageBus;
IDonationsService donationsService;
if (FeaturesRegistry.Instance.IsEnabled(FeatureId.DONATIONS))
{
IDonationsService coreDonationsService = new DonationsService(staticContainer.ScenesCache, staticContainer.EthereumApi,
staticContainer.WebRequestsContainer.WebRequestController, staticContainer.RealmData,
placesAPIService, bootstrapContainer.Environment,
bootstrapContainer.DecentralandUrlsSource, localSceneDevelopment);
donationsService = dynamicWorldParams.EnableAnalytics ? new DonationsServiceAnalyticsDecorator(coreDonationsService, bootstrapContainer.Analytics.Controller) : coreDonationsService;
}
else
donationsService = new DonationsServiceDisabled();
var coreBackpackEventBus = new BackpackEventBus();
ISocialServiceEventBus socialServiceEventBus = new SocialServiceEventBus();
var socialServiceContainer = new SocialServicesContainer(bootstrapContainer.DecentralandUrlsSource, identityCache, socialServiceEventBus, appArgs);
var voiceChatContainer = new VoiceChatContainer(
socialServiceContainer.socialServicesRPC,
socialServiceEventBus,
roomHub,
identityCache,
staticContainer.WebRequestsContainer.WebRequestController,
staticContainer.ScenesCache,
realmNavigator,
staticContainer.RealmData,
bootstrapContainer.DecentralandUrlsSource,
chatEventBus,
currentChannelService
);
ChatOpener.Initialize(new ChatOpener(chatEventBus, mvcManager));
IBackpackEventBus backpackEventBus = dynamicWorldParams.EnableAnalytics
? new BackpackEventBusAnalyticsDecorator(coreBackpackEventBus, bootstrapContainer.Analytics.Controller)
: coreBackpackEventBus;
var profileBroadcast = new DebounceProfileBroadcast(
new ProfileBroadcast(messagePipesHub, selfProfile)
);
var multiplayerEmotesMessageBus = new MultiplayerEmotesMessageBus(messagePipesHub, dynamicSettings.MultiplayerDebugSettings, userBlockingCache);
// Configure proxies for scene-side masked emote system
staticContainer.EmotesMessageBusProxy.SetObject(multiplayerEmotesMessageBus);
var characterPreviewEventBus = new CharacterPreviewEventBus();
var upscaleController = new UpscalingController(mvcManager);
AudioMixer generalAudioMixer = (await assetsProvisioner.ProvideMainAssetAsync(dynamicSettings.GeneralAudioMixer, ct)).Value;
var audioMixerVolumesController = new AudioMixerVolumesController(generalAudioMixer);
var multiplayerMovementMessageBus = new MultiplayerMovementMessageBus(messagePipesHub, entityParticipantTable, globalWorld);
var badgesAPIClient = new BadgesAPIClient(staticContainer.WebRequestsContainer.WebRequestController, bootstrapContainer.DecentralandUrlsSource);
ICameraReelImagesMetadataDatabase cameraReelImagesMetadataDatabase = new CameraReelImagesMetadataRemoteDatabase(staticContainer.WebRequestsContainer.WebRequestController, bootstrapContainer.DecentralandUrlsSource);
ICameraReelScreenshotsStorage cameraReelScreenshotsStorage = new CameraReelS3BucketScreenshotsStorage(staticContainer.WebRequestsContainer.WebRequestController);
var cameraReelStorageService = new CameraReelRemoteStorageService(cameraReelImagesMetadataDatabase, cameraReelScreenshotsStorage, identityCache.Identity?.Address);
GoogleUserCalendar userCalendar = new GoogleUserCalendar(webBrowser);
var clipboardManager = new ClipboardManager(clipboard);
ITextFormatter hyperlinkTextFormatter = new HyperlinkTextFormatter(profileCache, selfProfile);
NotificationsRequestController notificationsRequestController = new (staticContainer.WebRequestsContainer.WebRequestController, bootstrapContainer.DecentralandUrlsSource, identityCache);
var friendServiceProxy = new ObjectProxy<IFriendsService>();
var friendOnlineStatusCacheProxy = new ObjectProxy<FriendsConnectivityStatusTracker>();
var friendsCacheProxy = new ObjectProxy<FriendsCache>();
ISpriteCache thumbnailCache = new SpriteCache(staticContainer.WebRequestsContainer.WebRequestController);
var profileRepositoryWrapper = new ProfileRepositoryWrapper(profilesRepository, profileCache, thumbnailCache, identityCache);
GetProfileThumbnailCommand.Initialize(new GetProfileThumbnailCommand(profileRepositoryWrapper));
var communitiesEventBus = new CommunitiesEventBus();
var profileChangesBus = new ProfileChangesBus();
var translationSettings = new PlayerPrefsTranslationSettings();
GenericUserProfileContextMenuSettings genericUserProfileContextMenuSettingsSo = (await assetsProvisioner.ProvideMainAssetAsync(dynamicSettings.GenericUserProfileContextMenuSettings, ct)).Value;
CommunityVoiceChatContextMenuConfiguration communityVoiceChatContextMenuSettingsSo = (await assetsProvisioner.ProvideMainAssetAsync(dynamicSettings.CommunityVoiceChatContextMenuSettings, ct)).Value;
var communitiesDataService = new CommunityDataService(chatHistory,
mvcManager,
communitiesEventBus,
communitiesDataProvider,
identityCache);
var joinedCommunitiesVoiceLiveTracker = new JoinedCommunitiesVoiceLiveTracker(
voiceChatContainer.VoiceChatOrchestrator,
communitiesDataService);
// Local scene development scenes are excluded from deeplink runtime handling logic
if (appArgs.HasFlag(AppArgsFlags.LOCAL_SCENE) == false)
{
DeepLinkHandle deepLinkHandleImplementation = new DeepLinkHandle(dynamicWorldParams.StartParcel, chatTeleporter, ct, communitiesDataService);
deepLinkHandleImplementation.StartListenForDeepLinksAsync(ct).Forget();
}
var passportBridge = new MVCPassportBridge(mvcManager);
NearbyMuteService? nearbyMuteService = FeaturesRegistry.Instance.IsEnabled(FeatureId.NEARBY_VOICE_CHAT)
? new NearbyMuteService(
new NearbyMuteCache(),
new RestNearbyMuteRepository(
staticContainer.WebRequestsContainer.WebRequestController,
bootstrapContainer.DecentralandUrlsSource))
: null;
NearbyVoiceChatStateModel? nearbyStateModel = FeaturesRegistry.Instance.IsEnabled(FeatureId.NEARBY_VOICE_CHAT)
? new NearbyVoiceChatStateModel(
DCLPlayerPrefs.GetBool(DCLPrefKeys.NEARBY_VOICE_CHAT_DISABLED)
? NearbyVoiceChatState.DISABLED
: NearbyVoiceChatState.IDLE)
: null;
IMVCManagerMenusAccessFacade menusAccessFacade = new MVCManagerMenusAccessFacade(
mvcManager,
profileCache,
friendServiceProxy,
chatEventBus,
genericUserProfileContextMenuSettingsSo,
bootstrapContainer.Analytics.Controller,
onlineUsersProvider,
realmNavigator,
friendOnlineStatusCacheProxy,
profilesRepository,
communityVoiceChatContextMenuSettingsSo,
voiceChatContainer.VoiceChatOrchestrator,
includeCommunities,
communitiesDataProvider,
bootstrapContainer.WebBrowser,
bootstrapContainer.DecentralandUrlsSource,
selfProfile,
nearbyMuteService);
ViewDependencies.Initialize(new ViewDependencies(
unityEventSystem,
menusAccessFacade,
clipboardManager,
dclCursor,
new ContextMenuOpener(mvcManager),
identityCache,
new ConfirmationDialogOpener(mvcManager)));
var realmNftNamesProvider = new RealmNftNamesProvider(staticContainer.WebRequestsContainer.WebRequestController,
bootstrapContainer.DecentralandUrlsSource);
var thumbnailProvider = new ECSThumbnailProvider(bootstrapContainer.DecentralandUrlsSource, globalWorld);
var bannedSceneController = new ECSBannedScene(staticContainer.ScenesCache, globalWorld, playerEntity);
var springBoneSimulationSettings = new SpringBoneSimulationSettings();
var globalPlugins = new List<IDCLGlobalPlugin>
{
new ResourceUnloadingPlugin(staticContainer.SingletonSharedDependencies.MemoryBudget, staticContainer.CacheCleaner, staticContainer.SceneLoadingLimit),
new AdaptivePerformancePlugin(staticContainer.Profiler, staticContainer.LoadingStatus),
new LightSourceDebugPlugin(staticContainer.DebugContainerBuilder, globalWorld),
new MultiplayerPlugin(
assetsProvisioner,
archipelagoIslandRoom,
gateKeeperSceneRoom,
chatRoom,
roomHub,
roomsStatus,
profilesRepository,
profileBroadcast,
debugBuilder,
staticContainer.LoadingStatus,
entityParticipantTable,
messagePipesHub,
remoteMetadata,
remoteAnnouncements,
remoteProfiles,
staticContainer.CharacterContainer.CharacterObject,
staticContainer.RealmData,
remoteEntities,
staticContainer.ScenesCache,
emotesCache,
characterDataPropagationUtility,
staticContainer.ComponentsContainer.ComponentPoolsRegistry,
islandThroughputBunch,
sceneThroughputBunch,
voiceChatRoom),
staticContainer.ProfilesContainer.CreatePlugin(),
new WorldInfoPlugin(worldInfoHub, debugBuilder, chatHistory),
new CharacterMotionPlugin(staticContainer.CharacterContainer.CharacterObject, debugBuilder, staticContainer.ComponentsContainer.ComponentPoolsRegistry,
staticContainer.SceneReadinessReportQueue, terrainContainer.Landscape, staticContainer.ScenesCache, assetsProvisioner, identityCache, friendsCacheProxy),
new InputPlugin(dclCursor, unityEventSystem, assetsProvisioner, multiplayerEmotesMessageBus, emoteWheelShortcutHandler, mvcManager),
new GlobalInteractionPlugin(assetsProvisioner, staticContainer.EntityCollidersGlobalCache, exposedGlobalDataContainer.GlobalInputEvents, unityEventSystem, staticContainer.ScenesCache, mvcManager, menusAccessFacade, exposedGlobalDataContainer.ExposedCameraData.CameraEntityProxy),
new CharacterCameraPlugin(assetsProvisioner, realmSamplingData, exposedGlobalDataContainer.ExposedCameraData, debugBuilder, dynamicWorldDependencies.CommandLineArgs),
new WearablePlugin(
staticContainer.WebRequestsContainer.WebRequestController,
staticContainer.RealmData,
bootstrapContainer.DecentralandUrlsSource,
staticContainer.CacheCleaner,
wearableCatalog,
trimmedWearableCatalog,
bootstrapContainer.Analytics.EntitiesAnalytics,
builderContentURL.Value),
new EmotePlugin(
staticContainer.WebRequestsContainer.WebRequestController,
emotesCache,
staticContainer.RealmData,
multiplayerEmotesMessageBus,
debugBuilder,
assetsProvisioner,
selfProfile,
mvcManager,
staticContainer.CacheCleaner,
entityParticipantTable,
dclCursor,
staticContainer.InputBlock,
globalWorld,
playerEntity,
builderContentURL.Value,
thumbnailProvider,
staticContainer.ScenesCache,
bootstrapContainer.DecentralandUrlsSource,
bootstrapContainer.Analytics.EntitiesAnalytics,
emotesEventBus,
trimmedEmoteCatalog,
staticContainer.EmotesContainer.EmotePlayer),
new ProfilingPlugin(staticContainer.Profiler, staticContainer.RealmData,
staticContainer.SingletonSharedDependencies.MemoryBudget, debugBuilder,
staticContainer.ScenesCache, dclVersion, dynamicSettings.AdaptivePhysicsSettings,
staticContainer.SceneLoadingLimit, appArgs, staticContainer.LoadingStatus),
#if UNITY_EDITOR
new RenderingSystemPlugin(debugBuilder),
#endif
new AvatarPlugin(
staticContainer.ComponentsContainer.ComponentPoolsRegistry,
assetsProvisioner,
staticContainer.SingletonSharedDependencies.FrameTimeBudget,
staticContainer.SingletonSharedDependencies.MemoryBudget,
staticContainer.QualityContainer.RendererFeaturesCache,
staticContainer.RealmData,
staticContainer.MainPlayerAvatarBaseProxy,
debugBuilder,
staticContainer.CacheCleaner,
dynamicSettings.NametagsData,
defaultTexturesContainer.TextureArrayContainerFactory,
wearableCatalog,
userBlockingCache,
includeBannedUsersFromScene),
new MainUIPlugin(mvcManager, mainUIView, includeFriends),
new ProfilePlugin(profilesRepository, profileCache, staticContainer.CacheCleaner),
new MapRendererPlugin(mapRendererContainer.MapRenderer),
new SidebarPlugin(
assetsProvisioner,
mvcManager,
mainUIView,
notificationsRequestController,
identityCache,
profilesRepository,
staticContainer.WebRequestsContainer.WebRequestController,
webBrowser,
dynamicWorldDependencies.CompositeWeb3Provider,
initializationFlowContainer.InitializationFlow,
profileCache,
globalWorld,
playerEntity,
chatHistory,
profileRepositoryWrapper,
profileChangesBus,
selfProfile,
staticContainer.RealmData,
staticContainer.SceneRestrictionBusController,
bootstrapContainer.DecentralandUrlsSource,
passportBridge,
chatEventBus,
eventsApiService,
staticContainer.SmartWearableCache,
supportRequestService,
joinedCommunitiesVoiceLiveTracker),
new ErrorPopupPlugin(mvcManager, assetsProvisioner),
new PrivateWorldsPlugin(
mvcManager,
assetsProvisioner,
roomHub,
worldPermissionsService,
worldAccessGate,
staticContainer.InputBlock,
staticContainer.RealmData,
realmNavigator,
chatHistory),
new MinimapPlugin(
mainUIView.MinimapView.EnsureNotNull(),
mapRendererContainer.MapRenderer,
mvcManager,
placesAPIService,
staticContainer.RealmData,
realmNavigator,
staticContainer.ScenesCache,
mapPathEventBus,
staticContainer.SceneRestrictionBusController,
dynamicWorldParams.StartParcel.Peek(),
clipboard,
bootstrapContainer.DecentralandUrlsSource,
chatMessagesBus,
reloadSceneChatCommand,
roomHub,
staticContainer.LoadingStatus,
includeBannedUsersFromScene,
homePlaceEventBus,
donationsService),
new ChatPlugin(
mvcManager,
menusAccessFacade,
chatMessagesBus,
chatEventBus,
chatHistory,
entityParticipantTable,
dynamicSettings.NametagsData,
mainUIView,
staticContainer.InputBlock,
globalWorld,
playerEntity,
roomHub,
assetsProvisioner,
hyperlinkTextFormatter,
profileCache,
chatEventBus,
identityCache,
staticContainer.LoadingStatus,
userBlockingCache,
socialServiceContainer.socialServicesRPC,
friendsEventBus,
chatMessageFactory,
profileRepositoryWrapper,
friendServiceProxy,
communitiesDataProvider,
communitiesDataService,
thumbnailCache,
communitiesEventBus,
voiceChatContainer.VoiceChatOrchestrator,
mainUIView.SidebarView.unreadMessagesButton.transform,
translationSettings,
staticContainer.WebRequestsContainer.WebRequestController,
bootstrapContainer.DecentralandUrlsSource,
chatSharedAreaEventBus,
messagePipesHub,
bootstrapContainer.Environment,
bootstrapContainer.Analytics.Controller,
currentChannelService),
new ExplorePanelPlugin(
chatEventBus,
assetsProvisioner,
mvcManager,
mapRendererContainer,
placesAPIService,
staticContainer.WebRequestsContainer.WebRequestController,
identityCache,
cameraReelStorageService,
cameraReelStorageService,
clipboard,
bootstrapContainer.DecentralandUrlsSource,
wearableCatalog,
characterPreviewFactory,
profilesRepository,
dynamicWorldDependencies.CompositeWeb3Provider,
initializationFlowContainer.InitializationFlow,
selfProfile,
equippedWearables,
equippedEmotes,
webBrowser,
emotesCache,
staticContainer.RealmData,
profileCache,
characterPreviewEventBus,
mapPathEventBus,
backpackEventBus,
thirdPartyNftProviderSource,
wearablesProvider,
dclCursor,
staticContainer.InputBlock,
emoteProvider,
globalWorld,
playerEntity,
chatMessagesBus,
staticContainer.MemoryCap,