Table of Contents

Class ChangingEmotionEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all the information before the player's emotion changes.

public class ChangingEmotionEventArgs : IDeniableEvent, IPlayerEvent, IExiledEvent
Inheritance
ChangingEmotionEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ChangingEmotionEventArgs(ReferenceHub, EmotionPresetType, EmotionPresetType, bool)

Initializes a new instance of the ChangingEmotionEventArgs class.

public ChangingEmotionEventArgs(ReferenceHub hub, EmotionPresetType newEmotionPresetType, EmotionPresetType oldEmotionPresetType, bool isAllowed = true)

Parameters

hub ReferenceHub
newEmotionPresetType EmotionPresetType
oldEmotionPresetType EmotionPresetType
isAllowed bool

Properties

IsAllowed

Gets or sets a value indicating whether the event is allowed to continue.

public bool IsAllowed { get; set; }

Property Value

bool

NewEmotionPresetType

Gets or sets the new player's emotion.

public EmotionPresetType NewEmotionPresetType { get; set; }

Property Value

EmotionPresetType

OldEmotionPresetType

Gets the old player's emotion.

public EmotionPresetType OldEmotionPresetType { get; }

Property Value

EmotionPresetType

Player

Gets the Player triggering the event.

public Player Player { get; }

Property Value

Player