chore: bumped engine version

This commit is contained in:
2025-11-13 20:24:46 +03:00
parent 25caeefb8b
commit 1a1e6fe4c8
3 changed files with 8 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ using Engine.Systems.Network;
namespace Server;
public class PongEndpoints : Behaviour, IFirstFrameUpdate
public class PongEndpoints : Behaviour, IFirstFrameUpdate, ILastFrameUpdate
{
private INetworkCommunicatorServer? server = null!;
@@ -35,5 +35,5 @@ public class PongEndpoints : Behaviour, IFirstFrameUpdate
private IResult GetStats() => Results.Json(new { Count = server?.Connections.Count ?? 0 });
public void FirstActiveFrame() => server = Universe.FindRequiredBehaviour<INetworkCommunicatorServer>();
protected override void OnExitedUniverse(IUniverse universe) => server = null;
public void LastActiveFrame() => server = null;
}