Files
tbd-station-14/Content.Server/Lathe/Components/LatheAnnouncingComponent.cs
2025-04-26 17:45:53 -04:00

24 lines
705 B
C#

using Content.Shared.Radio;
using Robust.Shared.Prototypes;
namespace Content.Server.Lathe.Components;
/// <summary>
/// Causes this entity to announce onto the provided channels when it receives new recipes from its server
/// </summary>
[RegisterComponent]
public sealed partial class LatheAnnouncingComponent : Component
{
/// <summary>
/// Radio channels to broadcast to when a new set of recipes is received
/// </summary>
[DataField(required: true)]
public List<ProtoId<RadioChannelPrototype>> Channels = new();
/// <summary>
/// How many items should be announced in a message before it truncates
/// </summary>
[DataField]
public int MaximumItems = 5;
}