Rejig Device networks (#7380)
This commit is contained in:
26
Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs
Normal file
26
Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.DeviceNetwork;
|
||||
|
||||
/// <summary>
|
||||
/// A named device network frequency. Useful for ensuring entity prototypes can communicate with each other.
|
||||
/// </summary>
|
||||
[Prototype("deviceFrequency")]
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class DeviceFrequencyPrototype : IPrototype
|
||||
{
|
||||
[IdDataFieldAttribute]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
// TODO Somehow Allow per-station or some other type of named but randomized frequencies?
|
||||
[DataField("frequency", required: true)]
|
||||
public uint Frequency;
|
||||
|
||||
/// <summary>
|
||||
/// Optional name for this frequency, for displaying in game.
|
||||
/// </summary>
|
||||
[DataField("name")]
|
||||
public string? Name;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user