1
0

Events.cs 756 B

12345678910111213141516171819202122232425
  1. using Robust.Shared.Serialization;
  2. namespace Content.Shared.Guidebook;
  3. /// <summary>
  4. /// Raised by the client on GuidebookDataSystem Initialize to request a
  5. /// full set of guidebook data from the server.
  6. /// </summary>
  7. [Serializable, NetSerializable]
  8. public sealed class RequestGuidebookDataEvent : EntityEventArgs { }
  9. /// <summary>
  10. /// Raised by the server at a specific client in response to <see cref="RequestGuidebookDataEvent"/>.
  11. /// Also raised by the server at ALL clients when prototype data is hot-reloaded.
  12. /// </summary>
  13. [Serializable, NetSerializable]
  14. public sealed class UpdateGuidebookDataEvent : EntityEventArgs
  15. {
  16. public GuidebookData Data;
  17. public UpdateGuidebookDataEvent(GuidebookData data)
  18. {
  19. Data = data;
  20. }
  21. }