Adds generic damage visualizer to the game (#4893)

This commit is contained in:
Flipp Syder
2021-10-29 01:04:24 -07:00
committed by GitHub
parent 87701b50c6
commit 91b4ce6f24
67 changed files with 1021 additions and 117 deletions

View File

@@ -1,19 +0,0 @@
using Content.Shared.Damage;
using Robust.Shared.GameObjects;
namespace Content.Server.Window
{
public class WindowSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<WindowComponent, DamageChangedEvent>(UpdateVisuals);
}
public void UpdateVisuals(EntityUid _, WindowComponent component, DamageChangedEvent args)
{
component.UpdateVisuals(args.Damageable.TotalDamage);
}
}
}