Update trivial components to use auto comp states (#20539)
This commit is contained in:
@@ -6,11 +6,12 @@ namespace Content.Shared.Alert;
|
||||
/// Handles the icons on the right side of the screen.
|
||||
/// Should only be used for player-controlled entities.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[NetworkedComponent]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
|
||||
public sealed partial class AlertsComponent : Component
|
||||
{
|
||||
[ViewVariables] public Dictionary<AlertKey, AlertState> Alerts = new();
|
||||
[ViewVariables]
|
||||
[AutoNetworkedField]
|
||||
public Dictionary<AlertKey, AlertState> Alerts = new();
|
||||
|
||||
public override bool SendOnlyToOwner => true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user