Predicted armor (#20560)

This commit is contained in:
Nemanja
2023-09-28 06:48:50 -04:00
committed by GitHub
parent 9ad551e3dd
commit b052e0f242
7 changed files with 135 additions and 124 deletions

View File

@@ -0,0 +1,25 @@
using Content.Shared.Damage;
using Robust.Shared.GameStates;
using Robust.Shared.Utility;
namespace Content.Shared.Armor;
/// <summary>
/// Used for clothing that reduces damage when worn.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedArmorSystem))]
public sealed partial class ArmorComponent : Component
{
/// <summary>
/// The damage reduction
/// </summary>
[DataField(required: true)]
public DamageModifierSet Modifiers = default!;
}
/// <summary>
/// Event raised on an armor entity to get additional examine text relating to its armor.
/// </summary>
/// <param name="Msg"></param>
[ByRefEvent]
public record struct ArmorExamineEvent(FormattedMessage Msg);