< Summary

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

Metrics

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

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;
 2234613        public IWorldState state => serviceLocator.Get<IWorldState>();
 306014        public ISceneController sceneController => serviceLocator.Get<ISceneController>();
 233415        public ISceneBoundsChecker sceneBoundsChecker => serviceLocator.Get<ISceneBoundsChecker>();
 54416        public IWorldBlockersController blockersController => serviceLocator.Get<IWorldBlockersController>();
 175117        public IRuntimeComponentFactory componentFactory => serviceLocator.Get<IRuntimeComponentFactory>();
 618        public ITeleportController teleportController => serviceLocator.Get<ITeleportController>();
 19
 20
 71521        public WorldRuntimeContext (ServiceLocator serviceLocator)
 22        {
 71523            this.serviceLocator = serviceLocator;
 71524        }
 25    }
 26}