aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui/phase/PhaseInfo.razor
blob: 74bf237cae902616828a055574adda328bca5516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@using Sandbox;
@using Sandbox.UI;

@namespace MurderGame
@inherits Panel
@attribute [StyleSheet]

<div>
	@GetPhase().Title
</div>

@code
{
	public BasePhase GetPhase()
	{
		return MurderGame.Instance.CurrentPhase;
	}

	protected override int BuildHash()
	{
		return GetPhase().GetHashCode();
	}
}