using Content.Shared.Damage.Systems; using Robust.Shared.GameStates; using Robust.Shared.Serialization; namespace Content.Shared.Damage.Components; /// /// An entity with this component will show a popup indicating the amount of damage taken. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(DamagePopupSystem))] public sealed partial class DamagePopupComponent : Component { /// /// Bool that will be used to determine if the popup type can be changed with a left click. /// [DataField, AutoNetworkedField] public bool AllowTypeChange; /// /// Enum that will be used to determine the type of damage popup displayed. /// [DataField("damagePopupType"), AutoNetworkedField] public DamagePopupType Type = DamagePopupType.Combined; } [Serializable, NetSerializable] public enum DamagePopupType : byte { Combined, Total, Delta, Hit, };