Skip to content

Commit

Permalink
Removed IsEnetConnectionBool
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicgraphics committed Apr 5, 2024
1 parent 2b6ce65 commit 17c3760
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public interface IPlayer
string PlatformUserId { get; set; }

uint? ENetPeerId { get; set; }
bool IsENetConnection { get;}

RollingAverage Latency { get; }
long SyncTime { get; }
Expand Down
2 changes: 1 addition & 1 deletion BeatTogether.DedicatedServer.Kernel/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 17c3760

Please sign in to comment.