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
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user