< 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    {
 11812        public MouseCatcher mouseCatcher { get; internal set; }
 8713        public GameObject groundVisual { get; internal set; }
 41914        public InputController inputController { get; internal set; }
 41915        public GameObject cursorCanvas { get; internal set; }
 41916        public PlayerAvatarController playerAvatarController { get; internal set; }
 49417        public CameraController cameraController { get; internal set; }
 41918        public UnityEngine.Camera mainCamera { get; internal set; }
 153519        public GameObject bridgeGameObject { get; internal set; }
 11720        public Light environmentLight { get; internal set; }
 11421        public Volume postProcessVolume { get; internal set; }
 52322        public CinemachineFreeLook thirdPersonCamera { get; internal set; }
 47523        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}