< Summary

Class:DCL.SettingsCommon.QualitySettingsData
Assembly:Settings
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/QualitySettingsData.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:22
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/QualitySettingsData.cs

#LineLine coverage
 1using UnityEngine;
 2
 3namespace DCL.SettingsCommon
 4{
 5    [CreateAssetMenu(fileName = "QualitySettings", menuName = "QualitySettings")]
 6    public class QualitySettingsData : ScriptableObject
 7    {
 8        [SerializeField] int defaultPresetIndex = 0;
 9        [SerializeField] QualitySettings[] settings = null;
 10
 011        public QualitySettings this[int i] { get { return settings[i]; } }
 12
 013        public int Length { get { return settings.Length; } }
 14
 015        public QualitySettings defaultPreset { get { return settings[defaultPresetIndex]; } }
 16
 017        public int defaultIndex { get { return defaultPresetIndex; } }
 18
 019        public void Set(QualitySettings[] newSettings) { settings = newSettings; }
 20    }
 21
 22}