Project290.Menus.VolumeControlDisplayEntry.GetVolume C# (CSharp) Method

GetVolume() private method

Gets the volume in the range [0, 10].
private GetVolume ( ) : int
return int
        private int GetVolume()
        {
            if (this.musicVolume)
            {
                return (int)MathHelper.Clamp((float)Math.Round(GameWorld.audio.MusicVolume * 10f), 0, 10);
            }
            else
            {
                return (int)MathHelper.Clamp((float)Math.Round(GameWorld.audio.SoundVolume * 10f), 0, 10);
            }
        }