Files
tbd-station-14/Content.Shared/Damage/Components/SlowOnDamageComponent.cs
2022-05-13 17:59:03 +10:00

18 lines
656 B
C#

using Content.Shared.FixedPoint;
using Robust.Shared.GameStates;
namespace Content.Shared.Damage.Components
{
// TODO It'd be nice if this could be a destructible threshold, but on the other hand,
// that doesn't really work with events at all, and
[RegisterComponent, NetworkedComponent]
public sealed class SlowOnDamageComponent : Component
{
/// <summary>
/// Damage -> movespeed dictionary. This is -damage-, not -health-.
/// </summary>
[DataField("speedModifierThresholds", required: true)]
public readonly Dictionary<FixedPoint2, float> SpeedModifierThresholds = default!;
}
}