SingularityLevelChangedEvent.cs 839 B

12345678910111213141516171819202122232425262728293031
  1. using Content.Shared.Singularity.Components;
  2. namespace Content.Shared.Singularity.Events;
  3. /// <summary>
  4. /// An event raised whenever a singularity changes its level.
  5. /// </summary>
  6. public sealed class SingularityLevelChangedEvent : EntityEventArgs
  7. {
  8. /// <summary>
  9. /// The new level of the singularity.
  10. /// </summary>
  11. public readonly byte NewValue;
  12. /// <summary>
  13. /// The previous level of the singularity.
  14. /// </summary>
  15. public readonly byte OldValue;
  16. /// <summary>
  17. /// The singularity that just changed level.
  18. /// </summary>
  19. public readonly SingularityComponent Singularity;
  20. public SingularityLevelChangedEvent(byte newValue, byte oldValue, SingularityComponent singularity)
  21. {
  22. NewValue = newValue;
  23. OldValue = oldValue;
  24. Singularity = singularity;
  25. }
  26. }