| | 1 | | using DCL.Controllers; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// Context related to all the systems involved in the execution of decentraland scenes. |
| | 8 | | /// </summary> |
| | 9 | | [System.Obsolete("This is kept for retrocompatibilty and will be removed in the future. Use Environment.i.serviceLoc |
| | 10 | | public class WorldRuntimeContext |
| | 11 | | { |
| | 12 | | private ServiceLocator serviceLocator; |
| 7933 | 13 | | public IWorldState state => serviceLocator.Get<IWorldState>(); |
| 3830 | 14 | | public ISceneController sceneController => serviceLocator.Get<ISceneController>(); |
| 0 | 15 | | public IPointerEventsController pointerEventsController => serviceLocator.Get<IPointerEventsController>(); |
| 1785 | 16 | | public ISceneBoundsChecker sceneBoundsChecker => serviceLocator.Get<ISceneBoundsChecker>(); |
| 799 | 17 | | public IWorldBlockersController blockersController => serviceLocator.Get<IWorldBlockersController>(); |
| 1069 | 18 | | public IRuntimeComponentFactory componentFactory => serviceLocator.Get<IRuntimeComponentFactory>(); |
| | 19 | |
|
| 0 | 20 | | public WorldRuntimeContext (ServiceLocator serviceLocator) |
| | 21 | | { |
| 0 | 22 | | this.serviceLocator = serviceLocator; |
| 0 | 23 | | } |
| | 24 | | } |
| | 25 | | } |