Class SpeechComponent
Component required for entities to be able to speak. (TODO: Entities can speak fine without this, this only forbids them speak if they have it and enabled is false.)
Contains the option to let entities make noise when speaking, change speech verbs, datafields for the sounds in question, and relevant AudioParams.
Inheritance
System.Object
SpeechComponent
Assembly: Content.Shared.dll
Syntax
public sealed class SpeechComponent : Component
Fields
|
Improve this Doc
View Source
AudioParams
Declaration
public AudioParams AudioParams
Field Value
Type |
Description |
Robust.Shared.Audio.AudioParams |
|
|
Improve this Doc
View Source
Enabled
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LastTimeSoundPlayed
Declaration
public TimeSpan LastTimeSoundPlayed
Field Value
Type |
Description |
TimeSpan |
|
|
Improve this Doc
View Source
SpeechSounds
Declaration
public ProtoId<SpeechSoundsPrototype>? SpeechSounds
Field Value
|
Improve this Doc
View Source
SpeechVerb
What speech verb prototype should be used by default for displaying this entity's messages?
Declaration
public ProtoId<SpeechVerbPrototype> SpeechVerb
Field Value
|
Improve this Doc
View Source
SuffixSpeechVerbs
A mapping from chat suffixes loc strings to speech verb prototypes that should be conditionally used.
For things like '?' changing to 'asks' or '!!' making text bold and changing to 'yells'. Can be overridden if necessary.
Declaration
public Dictionary<string, ProtoId<SpeechVerbPrototype>> SuffixSpeechVerbs
Field Value
Type |
Description |
Dictionary<System.String, Robust.Shared.Prototypes.ProtoId<SpeechVerbPrototype>> |
|
Properties
|
Improve this Doc
View Source
SoundCooldownTime
Declaration
public float SoundCooldownTime { get; set; }
Property Value
Type |
Description |
System.Single |
|