Update scene and add comments

This commit is contained in:
2024-12-22 06:06:42 -08:00
parent 186c2e186e
commit 3b12326dfd
3 changed files with 414 additions and 369 deletions

View File

@@ -5,10 +5,16 @@ namespace LuckerParty;
/// </summary>
public sealed class NetworkManager : Component, Component.INetworkListener
{
[Property] private GameObject ClientGroup { get; set; }
/// <summary>
/// A GameObject used for organizational grouping of Clients
/// </summary>
[Property]
private GameObject ClientGroup { get; set; }
public void OnActive( Connection channel )
{
ClientGroup ??= new GameObject( Scene.Root );
var gameObject = new GameObject( ClientGroup ) { Name = $"{channel.DisplayName} ({channel.SteamId})" };
gameObject.NetworkSpawn( channel );