diff --git a/BeatTogether.DedicatedServer.Kernel/Abstractions/IPlayer.cs b/BeatTogether.DedicatedServer.Kernel/Abstractions/IPlayer.cs index dcc4c0d..dd6299c 100644 --- a/BeatTogether.DedicatedServer.Kernel/Abstractions/IPlayer.cs +++ b/BeatTogether.DedicatedServer.Kernel/Abstractions/IPlayer.cs @@ -23,7 +23,6 @@ public interface IPlayer string PlatformUserId { get; set; } uint? ENetPeerId { get; set; } - bool IsENetConnection { get;} RollingAverage Latency { get; } long SyncTime { get; } diff --git a/BeatTogether.DedicatedServer.Kernel/Player.cs b/BeatTogether.DedicatedServer.Kernel/Player.cs index 0482dd8..b5e89b4 100644 --- a/BeatTogether.DedicatedServer.Kernel/Player.cs +++ b/BeatTogether.DedicatedServer.Kernel/Player.cs @@ -20,7 +20,7 @@ public sealed class Player : IPlayer public string PlayerSessionId { get; } public uint? ENetPeerId { get; set; } - public bool IsENetConnection => true; //ENetPeerId.HasValue; + public RollingAverage Latency { get; } = new(30); public long SyncTime => Math.Min(Instance.RunTime - Latency.CurrentAverage - _syncTimeOffset,