Refactors, Introduce GameManager, Lobby work, Docs

This commit is contained in:
2024-12-23 03:15:16 -08:00
parent 299752bd75
commit 0fffa21ff1
10 changed files with 170 additions and 31 deletions

View File

@@ -1,27 +1,20 @@
@namespace LuckerParty.UI
@using System
@inherits PanelComponent
@namespace LuckerParty.UI
<root>
<div class="title">Hello, @_name</div>
<div class="title">This is the Lobby</div>
</root>
@code
{
private string _name;
protected override void OnAwake()
{
base.OnAwake();
_name = GameObject.GetComponent<Client>().Connection.DisplayName;
}
public List<Client> Clients { get; set; }
/// <summary>
/// the hash determines if the system should be rebuilt. If it changes, it will be rebuilt
/// </summary>
protected override int BuildHash()
{
return HashCode.Combine( _name );
return HashCode.Combine( Clients );
}
}