| | 1 | | using DCL.Bots; |
| | 2 | | using DCL.Rendering; |
| | 3 | |
|
| | 4 | | namespace DCL |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// Context related to specific platform handling. |
| | 8 | | /// Memory, rendering, input, IO and debug systems belong here. |
| | 9 | | /// </summary> |
| | 10 | | [System.Obsolete("This is kept for retrocompatibilty and will be removed in the future. Use Environment.i.serviceLoc |
| | 11 | | public class PlatformContext |
| | 12 | | { |
| | 13 | | public ServiceLocator serviceLocator; |
| 170 | 14 | | public IMemoryManager memoryManager => serviceLocator.Get<IMemoryManager>(); |
| 1136 | 15 | | public ICullingController cullingController => serviceLocator.Get<ICullingController>(); |
| 945 | 16 | | public IParcelScenesCleaner parcelScenesCleaner => serviceLocator.Get<IParcelScenesCleaner>(); |
| 1 | 17 | | public IClipboard clipboard => serviceLocator.Get<IClipboard>(); |
| 18966 | 18 | | public IPhysicsSyncController physicsSyncController => serviceLocator.Get<IPhysicsSyncController>(); |
| 415 | 19 | | public IWebRequestController webRequest => serviceLocator.Get<IWebRequestController>(); |
| 610 | 20 | | public IServiceProviders serviceProviders => serviceLocator.Get<IServiceProviders>(); |
| 0 | 21 | | public IIdleChecker idleChecker => serviceLocator.Get<IIdleChecker>(); |
| 0 | 22 | | public IAvatarsLODController avatarsLODController => serviceLocator.Get<IAvatarsLODController>(); |
| 0 | 23 | | public IFeatureFlagController featureFlagController => serviceLocator.Get<IFeatureFlagController>(); |
| 5906 | 24 | | public IUpdateEventHandler updateEventHandler => serviceLocator.Get<IUpdateEventHandler>(); |
| | 25 | |
|
| 0 | 26 | | public PlatformContext (ServiceLocator serviceLocator) |
| | 27 | | { |
| 0 | 28 | | this.serviceLocator = serviceLocator; |
| 0 | 29 | | } |
| | 30 | | } |
| | 31 | | } |