Redirects :h to department radio channel for headsets (#13026)
This commit is contained in:
@@ -2,6 +2,7 @@ using Content.Server.Radio.EntitySystems;
|
||||
using Content.Shared.Inventory;
|
||||
using Content.Shared.Radio;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Radio.Components;
|
||||
|
||||
@@ -15,6 +16,15 @@ public sealed class HeadsetComponent : Component
|
||||
[DataField("channels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<RadioChannelPrototype>))]
|
||||
public readonly HashSet<string> Channels = new() { "Common" };
|
||||
|
||||
// Maybe make the defaultChannel an actual channel type some day, and use that for parsing messages
|
||||
// [DataField("defaultChannel", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<RadioChannelPrototype>))]
|
||||
// public readonly HashSet<string> defaultChannel = new();
|
||||
|
||||
|
||||
|
||||
[DataField("defaultChannel", customTypeSerializer: typeof(PrototypeIdSerializer<RadioChannelPrototype>))]
|
||||
public readonly string? defaultChannel;
|
||||
|
||||
[DataField("enabled")]
|
||||
public bool Enabled = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user