| | 1 | | using DCL.Controllers; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL |
| | 5 | | { |
| | 6 | | public static class WorldRuntimeContextFactory |
| | 7 | | { |
| | 8 | | public static WorldRuntimeContext CreateDefault() |
| | 9 | | { |
| 666 | 10 | | return CreateDefault(null); |
| | 11 | | } |
| | 12 | | public static WorldRuntimeContext CreateDefault(IPoolableComponentFactory poolableComponentFactory) |
| | 13 | | { |
| 666 | 14 | | return new WorldRuntimeContext( |
| | 15 | | state: new WorldState(), |
| | 16 | | sceneController: new SceneController(), |
| | 17 | | pointerEventsController: new PointerEventsController(), |
| | 18 | | sceneBoundsChecker: new SceneBoundsChecker(), |
| | 19 | | blockersController: new WorldBlockersController(), |
| | 20 | | componentFactory: new RuntimeComponentFactory(poolableComponentFactory)); |
| | 21 | | } |
| | 22 | | } |
| | 23 | | } |