SpeakOnUseSystem and phrases for figurines (#30455)
* commit 1 * 2 * add more text * apply review * apply review 2 Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
18
Content.Server/Chat/SpeakOnUseComponent.cs
Normal file
18
Content.Server/Chat/SpeakOnUseComponent.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Content.Shared.Dataset;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Chat;
|
||||
|
||||
/// <summary>
|
||||
/// Entity will say the things when activated
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed partial class SpeakOnUseComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The identifier for the dataset prototype containing messages to be spoken by this entity.
|
||||
/// </summary>
|
||||
[DataField(required: true)]
|
||||
public ProtoId<LocalizedDatasetPrototype> Pack { get; private set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user