aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui/phase/PhaseInfo.razor
blob: 7c95da5890a089f524dc0740ad68de1ccef47ae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@namespace MurderGame
@using Sandbox.UI
@inherits Sandbox.UI.Panel
@attribute [StyleSheet]

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

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

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