< Summary

Class:DCL.SceneReferences
Assembly:InitialSceneReferences
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/InitialSceneReferences/SceneReferences.cs
Covered lines:9
Uncovered lines:21
Coverable lines:30
Total lines:59
Line coverage:30% (9 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    {
 3412        public MouseCatcher mouseCatcher { get; internal set; }
 013        public GameObject groundVisual { get; internal set; }
 3414        public GameObject biwCameraParent { get; internal set; }
 1415        public InputController inputController { get; internal set; }
 3416        public GameObject cursorCanvas { get; internal set; }
 9517        public GameObject biwBridgeGameObject { get; set; }
 3418        public PlayerAvatarController playerAvatarController { get; internal set; }
 7719        public CameraController cameraController { get; internal set; }
 15020        public UnityEngine.Camera mainCamera { get; internal set; }
 021        public GameObject bridgeGameObject { get; internal set; }
 022        public Light environmentLight { get; internal set; }
 023        public Volume postProcessVolume { get; internal set; }
 024        public CinemachineFreeLook thirdPersonCamera { get; internal set; }
 025        public CinemachineVirtualCamera firstPersonCamera { get; internal set; }
 10226        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}