Class VoiceLinesEventArgs
Contains all information prior to sending voiceline SCP-3114.
public class VoiceLinesEventArgs : IScp3114Event, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
VoiceLinesEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
VoiceLinesEventArgs(ReferenceHub, VoiceLinesDefinition, bool)
Initializes a new instance of the VoiceLinesEventArgs class.
public VoiceLinesEventArgs(ReferenceHub player, Scp3114VoiceLines.VoiceLinesDefinition voiceLine, bool isAllowed = true)
Parameters
player
ReferenceHubvoiceLine
Scp3114VoiceLines.VoiceLinesDefinitionisAllowed
bool
Properties
IsAllowed
Gets or sets a value indicating whether the event is allowed to continue.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the Player triggering the event.
public Player Player { get; }
Property Value
Scp3114
Gets the Scp3114Role triggering the event.
public Scp3114Role Scp3114 { get; }
Property Value
VoiceLine
Gets or sets the PlayerRoles.PlayableScps.Scp3114.Scp3114VoiceLines.VoiceLinesDefinition.
public Scp3114VoiceLines.VoiceLinesDefinition VoiceLine { get; set; }
Property Value
- Scp3114VoiceLines.VoiceLinesDefinition