< Summary

Class:DCL.SceneReferences
Assembly:InitialSceneReferences
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/InitialSceneReferences/SceneReferences.cs
Covered lines:12
Uncovered lines:14
Coverable lines:26
Total lines:53
Line coverage:46.1% (12 of 26)
Covered branches:0
Total branches:0

Metrics

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

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    {
 18512        public MouseCatcher mouseCatcher { get; internal set; }
 8813        public GameObject groundVisual { get; internal set; }
 40514        public InputController inputController { get; internal set; }
 40515        public GameObject cursorCanvas { get; internal set; }
 40516        public PlayerAvatarController playerAvatarController { get; internal set; }
 48017        public CameraController cameraController { get; internal set; }
 40518        public UnityEngine.Camera mainCamera { get; internal set; }
 152819        public GameObject bridgeGameObject { get; internal set; }
 11820        public Light environmentLight { get; internal set; }
 11521        public Volume postProcessVolume { get; internal set; }
 50922        public CinemachineFreeLook thirdPersonCamera { get; internal set; }
 46123        public CinemachineVirtualCamera firstPersonCamera { get; internal set; }
 024        public void Dispose() {  }
 25
 26        public void Initialize(MouseCatcher mouseCatcher,
 27            GameObject groundVisual,
 28            InputController inputController,
 29            GameObject cursorCanvas,
 30            PlayerAvatarController playerAvatarController,
 31            CameraController cameraController,
 32            UnityEngine.Camera mainCamera,
 33            GameObject bridgeGameObject,
 34            Light environmentLight,
 35            Volume postProcessVolume,
 36            CinemachineFreeLook thirdPersonCamera,
 37            CinemachineVirtualCamera firstPersonCamera)
 38        {
 039            this.mouseCatcher = mouseCatcher;
 040            this.groundVisual = groundVisual;
 041            this.inputController = inputController;
 042            this.cursorCanvas = cursorCanvas;
 043            this.playerAvatarController = playerAvatarController;
 044            this.cameraController = cameraController;
 045            this.mainCamera = mainCamera;
 046            this.bridgeGameObject = bridgeGameObject;
 047            this.environmentLight = environmentLight;
 048            this.postProcessVolume = postProcessVolume;
 049            this.thirdPersonCamera = thirdPersonCamera;
 050            this.firstPersonCamera = firstPersonCamera;
 051        }
 52    }
 53}