Add per player mutes
This commit is contained in:
@@ -27,6 +27,8 @@ namespace OpenRA.Network
|
||||
readonly Dictionary<int, (int SyncHash, ulong DefeatState)> syncForFrame = new Dictionary<int, (int, ulong)>();
|
||||
|
||||
public Session LobbyInfo = new Session();
|
||||
|
||||
/// <summary> Null when watching a replay </summary>
|
||||
public Session.Client LocalClient => LobbyInfo.ClientWithIndex(Connection.LocalClientId);
|
||||
public World World;
|
||||
public int OrderQueueLength => pendingOrders.Count > 0 ? pendingOrders.Min(q => q.Value.Count) : 0;
|
||||
|
||||
@@ -21,6 +21,8 @@ namespace OpenRA
|
||||
static readonly string SystemMessageLabel;
|
||||
|
||||
public static long ChatDisabledUntil { get; internal set; }
|
||||
public static readonly Dictionary<int, bool> MutedPlayers = new Dictionary<int, bool>();
|
||||
|
||||
static readonly List<TextNotification> NotificationsCache = new List<TextNotification>();
|
||||
public static IReadOnlyList<TextNotification> Notifications => NotificationsCache;
|
||||
|
||||
@@ -94,6 +96,7 @@ namespace OpenRA
|
||||
public static void Clear()
|
||||
{
|
||||
NotificationsCache.Clear();
|
||||
MutedPlayers.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user