* Replace AdvertiseComponent with DatasetVocalizerComponent * No vocalizing while broken or without power * Kill AdvertiseComponent/System * This really shouldn't be here * xmldoc for VocalizerRequiresPowerComponent * TryIndex -> Index
19 lines
577 B
C#
19 lines
577 B
C#
using Content.Shared.Dataset;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Vocalization.Components;
|
|
|
|
/// <summary>
|
|
/// A simple message provider for <see cref="VocalizationSystem"/> that randomly selects
|
|
/// messages from a <see cref="LocalizedDatasetPrototype"/>.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class DatasetVocalizerComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// ID of the <see cref="LocalizedDatasetPrototype"/> that will provide messages.
|
|
/// </summary>
|
|
[DataField]
|
|
public ProtoId<LocalizedDatasetPrototype> Dataset;
|
|
}
|