DamagePopupComponent.cs 777 B

12345678910111213141516171819202122232425
  1. using Content.Server.Damage.Systems;
  2. namespace Content.Server.Damage.Components;
  3. [RegisterComponent, Access(typeof(DamagePopupSystem))]
  4. public sealed partial class DamagePopupComponent : Component
  5. {
  6. /// <summary>
  7. /// Bool that will be used to determine if the popup type can be changed with a left click.
  8. /// </summary>
  9. [DataField("allowTypeChange")] [ViewVariables(VVAccess.ReadWrite)]
  10. public bool AllowTypeChange = false;
  11. /// <summary>
  12. /// Enum that will be used to determine the type of damage popup displayed.
  13. /// </summary>
  14. [DataField("damagePopupType")] [ViewVariables(VVAccess.ReadWrite)]
  15. public DamagePopupType Type = DamagePopupType.Combined;
  16. }
  17. public enum DamagePopupType
  18. {
  19. Combined,
  20. Total,
  21. Delta,
  22. Hit,
  23. };