< 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:3
Coverable lines:8
Total lines:24
Line coverage:62.5% (5 of 8)
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;
 881513        public IWorldState state => serviceLocator.Get<IWorldState>();
 412114        public ISceneController sceneController => serviceLocator.Get<ISceneController>();
 389915        public ISceneBoundsChecker sceneBoundsChecker => serviceLocator.Get<ISceneBoundsChecker>();
 83716        public IWorldBlockersController blockersController => serviceLocator.Get<IWorldBlockersController>();
 227217        public IRuntimeComponentFactory componentFactory => serviceLocator.Get<IRuntimeComponentFactory>();
 18
 019        public WorldRuntimeContext (ServiceLocator serviceLocator)
 20        {
 021            this.serviceLocator = serviceLocator;
 022        }
 23    }
 24}