| | 1 | | using DCL; |
| | 2 | | using DCL.LoadingScreen; |
| | 3 | |
|
| | 4 | | namespace DCLPlugins.LoadingScreenPlugin |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// Plugin controller for the decoupled Loading Screen |
| | 8 | | /// </summary> |
| | 9 | | public class LoadingScreenPlugin : IPlugin |
| | 10 | | { |
| | 11 | | private readonly LoadingScreenController loadingScreenController; |
| | 12 | | private readonly DataStoreRef<DataStore_LoadingScreen> dataStoreLoadingScreen; |
| | 13 | |
|
| 0 | 14 | | public LoadingScreenPlugin() |
| | 15 | | { |
| 0 | 16 | | dataStoreLoadingScreen.Ref.decoupledLoadingHUD.visible.Set(true); |
| 0 | 17 | | loadingScreenController = new LoadingScreenController(LoadingScreenView.Create(), Environment.i.world.sceneC |
| | 18 | | DataStore.i.common, dataStoreLoadingScreen.Ref, DataStore.i.realm); |
| 0 | 19 | | } |
| | 20 | |
|
| | 21 | | public void Dispose() => |
| 0 | 22 | | loadingScreenController.Dispose(); |
| | 23 | | } |
| | 24 | | } |