6
StarHorizon_Public/Content.Server/Lathe/Components/LatheAnnouncingComponent.cs
2026-01-24 12:49:55 +03: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;
}