< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Dispose()0%110100%
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    {
 19812        public MouseCatcher mouseCatcher { get; internal set; }
 15213        public GameObject groundVisual { get; internal set; }
 62614        public GameObject biwCameraParent { get; internal set; }
 60515        public InputController inputController { get; internal set; }
 63416        public GameObject cursorCanvas { get; internal set; }
 15117        public GameObject biwBridgeGameObject { get; set; }
 59918        public PlayerAvatarController playerAvatarController { get; internal set; }
 79519        public CameraController cameraController { get; internal set; }
 70620        public UnityEngine.Camera mainCamera { get; internal set; }
 78721        public GameObject bridgeGameObject { get; internal set; }
 17322        public Light environmentLight { get; internal set; }
 17023        public Volume postProcessVolume { get; internal set; }
 69524        public CinemachineFreeLook thirdPersonCamera { get; internal set; }
 64725        public CinemachineVirtualCamera firstPersonCamera { get; internal 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        {
 043            this.mouseCatcher = mouseCatcher;
 044            this.groundVisual = groundVisual;
 045            this.biwCameraParent = biwCameraParent;
 046            this.inputController = inputController;
 047            this.cursorCanvas = cursorCanvas;
 048            this.biwBridgeGameObject = BIWBridgeGameObject;
 049            this.playerAvatarController = playerAvatarController;
 050            this.cameraController = cameraController;
 051            this.mainCamera = mainCamera;
 052            this.bridgeGameObject = bridgeGameObject;
 053            this.environmentLight = environmentLight;
 054            this.postProcessVolume = postProcessVolume;
 055            this.thirdPersonCamera = thirdPersonCamera;
 056            this.firstPersonCamera = firstPersonCamera;
 057        }
 58    }
 59}