Add transient notifications pool

This commit is contained in:
Ivaylo Draganov
2022-04-29 15:01:33 +03:00
committed by Paul Chote
parent e22b6de4e8
commit a1e6ac85dc
5 changed files with 17 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ using OpenRA.Primitives;
namespace OpenRA
{
public enum TextNotificationPool { System, Chat, Mission, Feedback }
public enum TextNotificationPool { System, Chat, Mission, Feedback, Transients }
public class TextNotification : IEquatable<TextNotification>
{
@@ -37,7 +37,7 @@ namespace OpenRA
public bool CanIncrementOnDuplicate()
{
return Pool == TextNotificationPool.Feedback || Pool == TextNotificationPool.System;
return Pool == TextNotificationPool.Feedback || Pool == TextNotificationPool.System || Pool == TextNotificationPool.Transients;
}
public static bool operator ==(TextNotification me, TextNotification other) { return me.GetHashCode() == other.GetHashCode(); }