Class NPCVoiceCatalog
Provides stable identifiers for the supported base-game NPC voices.
public static class NPCVoiceCatalog
- Inheritance
-
NPCVoiceCatalog
- Inherited Members
Properties
All
Gets every supported voice definition.
public static IReadOnlyList<NPCVoiceDefinition> All { get; }
Property Value
Cold
Gets the cold voice.
public static NPCVoiceDefinition Cold { get; }
Property Value
Crackhead
Gets the crackhead voice.
public static NPCVoiceDefinition Crackhead { get; }
Property Value
Female1
Gets the first female voice.
public static NPCVoiceDefinition Female1 { get; }
Property Value
Female2
Gets the second female voice.
public static NPCVoiceDefinition Female2 { get; }
Property Value
Goblin
Gets the goblin voice.
public static NPCVoiceDefinition Goblin { get; }
Property Value
Hippie
Gets the hippie voice.
public static NPCVoiceDefinition Hippie { get; }
Property Value
Joel
Gets the Joel voice.
public static NPCVoiceDefinition Joel { get; }
Property Value
Monotone
Gets the monotone voice.
public static NPCVoiceDefinition Monotone { get; }
Property Value
Redneck
Gets the redneck voice.
public static NPCVoiceDefinition Redneck { get; }
Property Value
Timid
Gets the timid voice.
public static NPCVoiceDefinition Timid { get; }
Property Value
Tyler
Gets the Tyler voice.
public static NPCVoiceDefinition Tyler { get; }
Property Value
Methods
Get(string)
Gets a voice by its stable identifier.
public static NPCVoiceDefinition Get(string identifier)
Parameters
identifierstringThe case-insensitive voice identifier.
Returns
- NPCVoiceDefinition
The matching voice definition.
Exceptions
- ArgumentException
Thrown when the identifier is missing or unsupported.
TryGet(string, out NPCVoiceDefinition?)
Attempts to get a voice by its stable identifier.
public static bool TryGet(string identifier, out NPCVoiceDefinition? definition)
Parameters
identifierstringThe case-insensitive voice identifier.
definitionNPCVoiceDefinitionThe matching definition, or
nullwhen no match exists.
Returns
- bool
truewhen the identifier is supported; otherwise,false.