1
0

SharedCharacterInfoSystem.cs 911 B

1234567891011121314151617181920212223242526272829303132
  1. using Content.Shared.Objectives;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.CharacterInfo;
  4. [Serializable, NetSerializable]
  5. public sealed class RequestCharacterInfoEvent : EntityEventArgs
  6. {
  7. public readonly NetEntity NetEntity;
  8. public RequestCharacterInfoEvent(NetEntity netEntity)
  9. {
  10. NetEntity = netEntity;
  11. }
  12. }
  13. [Serializable, NetSerializable]
  14. public sealed class CharacterInfoEvent : EntityEventArgs
  15. {
  16. public readonly NetEntity NetEntity;
  17. public readonly string JobTitle;
  18. public readonly Dictionary<string, List<ObjectiveInfo>> Objectives;
  19. public readonly string? Briefing;
  20. public CharacterInfoEvent(NetEntity netEntity, string jobTitle, Dictionary<string, List<ObjectiveInfo>> objectives, string? briefing)
  21. {
  22. NetEntity = netEntity;
  23. JobTitle = jobTitle;
  24. Objectives = objectives;
  25. Briefing = briefing;
  26. }
  27. }