Visualize melee weapon cooldowns in HUD.

This commit is contained in:
Pieter-Jan Briers
2019-11-12 01:43:11 +01:00
parent 7198a7c78d
commit 841bb101c5
20 changed files with 279 additions and 10 deletions

View File

@@ -0,0 +1,17 @@
using Content.Client.UserInterface;
using NUnit.Framework;
namespace Content.Tests.Client.UserInterface
{
[TestFixture]
public class HandsGuiTest
{
[Test]
public void TestCalculateCooldownLevel()
{
Assert.AreEqual(HandsGui.CalculateCooldownLevel(0.5f), 4);
Assert.AreEqual(HandsGui.CalculateCooldownLevel(1), 8);
Assert.AreEqual(HandsGui.CalculateCooldownLevel(0), 0);
}
}
}