< Summary

Class:DCL.SceneReferences
Assembly:InitialSceneReferences
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/InitialSceneReferences/SceneReferences.cs
Covered lines:24
Uncovered lines:6
Coverable lines:30
Total lines:60
Line coverage:80% (24 of 30)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/InitialSceneReferences/SceneReferences.cs

#LineLine coverage
 1using System.Data.Common;
 2using Cinemachine;
 3using DCL.Camera;
 4using DCL.Helpers;
 5using UnityEngine;
 6using UnityEngine.Rendering;
 7
 8namespace DCL
 9{
 10    public class SceneReferences : Singleton<SceneReferences>, ISceneReferences
 11    {
 3512        public MouseCatcher mouseCatcher { get; private set; }
 013        public GameObject groundVisual { get; private set; }
 3514        public GameObject biwCameraParent { get; private set; }
 1415        public InputController inputController { get; private set; }
 3516        public GameObject cursorCanvas { get; private set; }
 9117        public GameObject biwBridgeGameObject { get; private set; }
 3518        public PlayerAvatarController playerAvatarController { get; private set; }
 7919        public CameraController cameraController { get; private set; }
 8320        public UnityEngine.Camera mainCamera { get; private set; }
 021        public GameObject bridgeGameObject { get; private set; }
 022        public Light environmentLight { get; private set; }
 023        public Volume postProcessVolume { get; private set; }
 024        public CinemachineFreeLook thirdPersonCamera { get; private set; }
 025        public CinemachineVirtualCamera firstPersonCamera { get; private set; }
 10326        public void Dispose() {  }
 27
 28        public void Initialize(MouseCatcher mouseCatcher,
 29            GameObject groundVisual,
 30            GameObject biwCameraParent,
 31            InputController inputController,
 32            GameObject cursorCanvas,
 33            GameObject BIWBridgeGameObject,
 34            PlayerAvatarController playerAvatarController,
 35            CameraController cameraController,
 36            UnityEngine.Camera mainCamera,
 37            GameObject bridgeGameObject,
 38            Light environmentLight,
 39            Volume postProcessVolume,
 40            CinemachineFreeLook thirdPersonCamera,
 41            CinemachineVirtualCamera firstPersonCamera)
 42        {
 10443            this.mouseCatcher = mouseCatcher;
 10444            this.groundVisual = groundVisual;
 10445            this.biwCameraParent = biwCameraParent;
 10446            this.inputController = inputController;
 10447            this.cursorCanvas = cursorCanvas;
 10448            this.biwBridgeGameObject = BIWBridgeGameObject;
 10449            this.playerAvatarController = playerAvatarController;
 10450            this.cameraController = cameraController;
 10451            this.mainCamera = mainCamera;
 10452            this.bridgeGameObject = bridgeGameObject;
 10453            this.environmentLight = environmentLight;
 10454            this.postProcessVolume = postProcessVolume;
 10455            this.thirdPersonCamera = thirdPersonCamera;
 10456            this.firstPersonCamera = firstPersonCamera;
 10457        }
 58    }
 59
 60}