1
0

ExamineSystemMessages.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using Content.Shared.Verbs;
  2. using Robust.Shared.Serialization;
  3. using Robust.Shared.Utility;
  4. namespace Content.Shared.Examine
  5. {
  6. public static class ExamineSystemMessages
  7. {
  8. [Serializable, NetSerializable]
  9. public sealed class RequestExamineInfoMessage : EntityEventArgs
  10. {
  11. public readonly NetEntity NetEntity;
  12. public readonly int Id;
  13. public readonly bool GetVerbs;
  14. public RequestExamineInfoMessage(NetEntity netEntity, int id, bool getVerbs=false)
  15. {
  16. NetEntity = netEntity;
  17. Id = id;
  18. GetVerbs = getVerbs;
  19. }
  20. }
  21. [Serializable, NetSerializable]
  22. public sealed class ExamineInfoResponseMessage : EntityEventArgs
  23. {
  24. public readonly NetEntity EntityUid;
  25. public readonly int Id;
  26. public readonly FormattedMessage Message;
  27. public List<Verb>? Verbs;
  28. public readonly bool CenterAtCursor;
  29. public readonly bool OpenAtOldTooltip;
  30. public readonly bool KnowTarget;
  31. public ExamineInfoResponseMessage(NetEntity entityUid, int id, FormattedMessage message, List<Verb>? verbs=null,
  32. bool centerAtCursor=true, bool openAtOldTooltip=true, bool knowTarget = true)
  33. {
  34. EntityUid = entityUid;
  35. Id = id;
  36. Message = message;
  37. Verbs = verbs;
  38. CenterAtCursor = centerAtCursor;
  39. OpenAtOldTooltip = openAtOldTooltip;
  40. KnowTarget = knowTarget;
  41. }
  42. }
  43. }
  44. }