< Summary

Class:DCL.WorldRuntimeContext
Assembly:Environment
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Environment/WorldRuntimeContext.cs
Covered lines:5
Uncovered lines:4
Coverable lines:9
Total lines:25
Line coverage:55.5% (5 of 9)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
WorldRuntimeContext(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Environment/WorldRuntimeContext.cs

#LineLine coverage
 1using DCL.Controllers;
 2using UnityEngine;
 3
 4namespace 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;
 793313        public IWorldState state => serviceLocator.Get<IWorldState>();
 383014        public ISceneController sceneController => serviceLocator.Get<ISceneController>();
 015        public IPointerEventsController pointerEventsController => serviceLocator.Get<IPointerEventsController>();
 178516        public ISceneBoundsChecker sceneBoundsChecker => serviceLocator.Get<ISceneBoundsChecker>();
 79917        public IWorldBlockersController blockersController => serviceLocator.Get<IWorldBlockersController>();
 106918        public IRuntimeComponentFactory componentFactory => serviceLocator.Get<IRuntimeComponentFactory>();
 19
 020        public WorldRuntimeContext (ServiceLocator serviceLocator)
 21        {
 022            this.serviceLocator = serviceLocator;
 023        }
 24    }
 25}