aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui/phase/PhaseInfo.razor
blob: 4509259ab3eeee00ebbb89d6988ca9668adc708b (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();
    }
}