Files
tbd-station-14/Content.Server/Vocalization/Components/DatasetVocalizerComponent.cs
Tayrtahn ecbff409b6 Replace AdvertiseComponent with DatasetVocalizerComponent (#38887)
* 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
2025-07-10 11:12:24 -07:00

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;
}