GeneralStationRecord.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using Robust.Shared.Enums;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.StationRecords;
  4. /// <summary>
  5. /// General station record. Indicates the crewmember's name and job.
  6. /// </summary>
  7. [Serializable, NetSerializable]
  8. public sealed record GeneralStationRecord
  9. {
  10. /// <summary>
  11. /// Name tied to this station record.
  12. /// </summary>
  13. [DataField]
  14. public string Name = string.Empty;
  15. /// <summary>
  16. /// Age of the person that this station record represents.
  17. /// </summary>
  18. [DataField]
  19. public int Age;
  20. /// <summary>
  21. /// Job title tied to this station record.
  22. /// </summary>
  23. [DataField]
  24. public string JobTitle = string.Empty;
  25. /// <summary>
  26. /// Job icon tied to this station record.
  27. /// </summary>
  28. [DataField]
  29. public string JobIcon = string.Empty;
  30. [DataField]
  31. public string JobPrototype = string.Empty;
  32. /// <summary>
  33. /// Species tied to this station record.
  34. /// </summary>
  35. [DataField]
  36. public string Species = string.Empty;
  37. /// <summary>
  38. /// Gender identity tied to this station record.
  39. /// </summary>
  40. /// <remarks>Sex should be placed in a medical record, not a general record.</remarks>
  41. [DataField]
  42. public Gender Gender = Gender.Epicene;
  43. /// <summary>
  44. /// The priority to display this record at.
  45. /// This is taken from the 'weight' of a job prototype,
  46. /// usually.
  47. /// </summary>
  48. [DataField]
  49. public int DisplayPriority;
  50. /// <summary>
  51. /// Fingerprint of the person.
  52. /// </summary>
  53. [DataField]
  54. public string? Fingerprint;
  55. /// <summary>
  56. /// DNA of the person.
  57. /// </summary>
  58. [DataField]
  59. public string? DNA;
  60. }