mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* dynamic alert sprite
* fix fat cooldowns
(cherry picked from commit d576f5cbbb)
22 lines
550 B
C#
22 lines
550 B
C#
using Content.Shared.Alert;
|
|
using Robust.Client.GameObjects;
|
|
|
|
namespace Content.Client.Alerts;
|
|
|
|
/// <summary>
|
|
/// Event raised on an entity with alerts in order to allow it to update visuals for the alert sprite entity.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public record struct UpdateAlertSpriteEvent
|
|
{
|
|
public Entity<SpriteComponent> SpriteViewEnt;
|
|
|
|
public AlertPrototype Alert;
|
|
|
|
public UpdateAlertSpriteEvent(Entity<SpriteComponent> spriteViewEnt, AlertPrototype alert)
|
|
{
|
|
SpriteViewEnt = spriteViewEnt;
|
|
Alert = alert;
|
|
}
|
|
}
|