Add chatty lathes (#34959)
This commit is contained in:
committed by
GitHub
parent
be5bbd4dc3
commit
5d38ae56de
17
Content.Server/Lathe/Components/LatheAnnouncingComponent.cs
Normal file
17
Content.Server/Lathe/Components/LatheAnnouncingComponent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user