mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
IPlayerManager refactor (#4518)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using JetBrains.Annotations;
|
||||
using Prometheus;
|
||||
using Robust.Server.Player;
|
||||
@@ -15,6 +14,7 @@ using Robust.Shared.IoC;
|
||||
using Robust.Shared.Log;
|
||||
using Robust.Shared.Network;
|
||||
using Robust.Shared.Network.Messages;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Replays;
|
||||
using Robust.Shared.Timing;
|
||||
@@ -131,7 +131,7 @@ namespace Robust.Server.GameObjects
|
||||
|
||||
private readonly PriorityQueue<MsgEntity> _queue = new(new MessageSequenceComparer());
|
||||
|
||||
private readonly Dictionary<IPlayerSession, uint> _lastProcessedSequencesCmd =
|
||||
private readonly Dictionary<ICommonSession, uint> _lastProcessedSequencesCmd =
|
||||
new();
|
||||
|
||||
private bool _logLateMsgs;
|
||||
@@ -162,7 +162,7 @@ namespace Robust.Server.GameObjects
|
||||
EntitiesCount.Set(Entities.Count);
|
||||
}
|
||||
|
||||
public uint GetLastMessageSequence(IPlayerSession session)
|
||||
public uint GetLastMessageSequence(ICommonSession session)
|
||||
{
|
||||
return _lastProcessedSequencesCmd[session];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user