* First commit * I'm silly * weh * will this work? * Better design * Fixes! * rider :( * L rider
18 lines
572 B
C#
18 lines
572 B
C#
using Content.Shared.Dataset;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Chat;
|
|
|
|
/// <summary>
|
|
/// Makes the entity speak when triggered. If the item has UseDelay component, the system will respect that cooldown.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class SpeakOnTriggerComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The identifier for the dataset prototype containing messages to be spoken by this entity.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public ProtoId<LocalizedDatasetPrototype> Pack = string.Empty;
|
|
}
|