1
0

PointingEvents.cs 881 B

123456789101112131415161718192021222324252627282930313233
  1. using Robust.Shared.Serialization;
  2. namespace Content.Shared.Pointing;
  3. // TODO just make pointing properly predicted?
  4. // So true
  5. /// <summary>
  6. /// Event raised when someone runs the client-side pointing verb.
  7. /// </summary>
  8. [Serializable, NetSerializable]
  9. public sealed class PointingAttemptEvent : EntityEventArgs
  10. {
  11. public NetEntity Target;
  12. public PointingAttemptEvent(NetEntity target)
  13. {
  14. Target = target;
  15. }
  16. }
  17. /// <summary>
  18. /// Raised on the entity who is pointing after they point at something.
  19. /// </summary>
  20. /// <param name="Pointed"></param>
  21. [ByRefEvent]
  22. public readonly record struct AfterPointedAtEvent(EntityUid Pointed);
  23. /// <summary>
  24. /// Raised on an entity after they are pointed at by another entity.
  25. /// </summary>
  26. /// <param name="Pointer"></param>
  27. [ByRefEvent]
  28. public readonly record struct AfterGotPointedAtEvent(EntityUid Pointer);