Class ChangingEmotionEventArgs
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
ReferenceHubnewEmotionPresetType
EmotionPresetTypeoldEmotionPresetType
EmotionPresetTypeisAllowed
bool
Properties
IsAllowed
Gets or sets a value indicating whether the event is allowed to continue.
public bool IsAllowed { get; set; }
Property Value
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; }