1
0

DeviceFrequencyPrototype.cs 763 B

1234567891011121314151617181920212223242526
  1. using Robust.Shared.Prototypes;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.DeviceNetwork;
  4. /// <summary>
  5. /// A named device network frequency. Useful for ensuring entity prototypes can communicate with each other.
  6. /// </summary>
  7. [Prototype]
  8. [Serializable, NetSerializable]
  9. public sealed partial class DeviceFrequencyPrototype : IPrototype
  10. {
  11. [IdDataField]
  12. public string ID { get; private set; } = default!;
  13. // TODO Somehow Allow per-station or some other type of named but randomized frequencies?
  14. [DataField("frequency", required: true)]
  15. public uint Frequency;
  16. /// <summary>
  17. /// Optional name for this frequency, for displaying in game.
  18. /// </summary>
  19. [DataField("name")]
  20. public string? Name;
  21. }