| | 1 | | using System.Collections.Generic; |
| | 2 | | using DCL; |
| | 3 | | using DCL.Components.Interfaces; |
| | 4 | | using Environment = DCL.Environment; |
| | 5 | |
|
| | 6 | | namespace DCLPlugins.UIRefresherPlugin |
| | 7 | | { |
| | 8 | | public class UIRefresherPlugin : IPlugin |
| | 9 | | { |
| | 10 | | private readonly UIRefresherController controller; |
| | 11 | |
|
| 51 | 12 | | public UIRefresherPlugin() |
| | 13 | | { |
| 51 | 14 | | controller = new UIRefresherController(Environment.i.platform.updateEventHandler, |
| | 15 | | CommonScriptableObjects.sceneID, |
| | 16 | | DataStore.i.HUDs.dirtyShapes); |
| 51 | 17 | | } |
| | 18 | |
|
| | 19 | | public void Dispose() |
| | 20 | | { |
| 51 | 21 | | DataStore.i.HUDs.dirtyShapes.Set(new Dictionary<string, Queue<IUIRefreshable>>()); |
| 51 | 22 | | controller.Dispose(); |
| 51 | 23 | | } |
| | 24 | | } |
| | 25 | |
|
| | 26 | | } |