< Summary

Class:DCL.SettingsCommon.SettingsControllers.SpecificControllers.AvatarSFXVolumeControlController
Assembly:SettingsControllers
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/SettingsControllers/SpecificControllers/AvatarSFXVolumeControlController.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:16
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetStoredValue()0%110100%
UpdateSetting(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/SettingsControllers/SpecificControllers/AvatarSFXVolumeControlController.cs

#LineLine coverage
 1using DCL.SettingsCommon.SettingsControllers.BaseControllers;
 2using UnityEngine;
 3
 4namespace DCL.SettingsCommon.SettingsControllers.SpecificControllers
 5{
 6    [CreateAssetMenu(menuName = "Settings/Controllers/Controls/Avatar SFX Volume", fileName = "AvatarSFXVolumeControlCon
 7    public class AvatarSFXVolumeControlController : SliderSettingsControlController
 8    {
 29        public override object GetStoredValue() { return currentAudioSettings.avatarSFXVolume * 100; }
 10
 11        public override void UpdateSetting(object newValue) {
 212            currentAudioSettings.avatarSFXVolume = (float)newValue * 0.01f;
 213            Settings.i.ApplyAvatarSFXVolume();
 214        }
 15    }
 16}