removes ipopulatedefaultvalues (#10103) + update submodule
Co-authored-by: Paul Ritter <ritter.paul1@gmail.com>
This commit is contained in:
@@ -9,9 +9,9 @@ namespace Content.Shared.Alert;
|
||||
/// falls back to the id.
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public struct AlertKey :IPopulateDefaultValues
|
||||
public struct AlertKey
|
||||
{
|
||||
public AlertType? AlertType { get; private set; }
|
||||
public AlertType? AlertType { get; private set; } = Alert.AlertType.Error;
|
||||
public readonly AlertCategory? AlertCategory;
|
||||
|
||||
/// NOTE: if the alert has a category you must pass the category for this to work
|
||||
@@ -46,11 +46,6 @@ public struct AlertKey :IPopulateDefaultValues
|
||||
return AlertType.GetHashCode();
|
||||
}
|
||||
|
||||
public void PopulateDefaultValues()
|
||||
{
|
||||
AlertType = Alert.AlertType.Error;
|
||||
}
|
||||
|
||||
/// <param name="category">alert category, must not be null</param>
|
||||
/// <returns>An alert key for the provided alert category. This must only be used for
|
||||
/// queries and never storage, as it is lacking an alert type.</returns>
|
||||
|
||||
Reference in New Issue
Block a user