Initial commit

This commit is contained in:
gamer147
2023-08-02 19:47:53 -04:00
commit 285a130a81
33 changed files with 1699 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
@using System
@using System.Collections.Generic
@using System.Linq
@using LuckerGame.Entities
@using Sandbox
@using Sandbox.UI
@namespace LuckerGame.UI.HudComponents
@attribute [StyleSheet]
@inherits Panel
<root>
<div class="scoreboard-panel">
@foreach (var player in Luckers)
{
<label>@player.Name</label>
}
</div>
</root>
@code {
private IReadOnlyCollection<Lucker> Luckers => Entity.All.OfType<Lucker>().ToList();
protected override int BuildHash()
{
return HashCode.Combine(Luckers.Select(player => player.Name).ToList());
}
}