Class ExitingEnvironmentalHazardEventArgs
Contains all information before a player exits an environmental hazard.
Inheritance
System.Object
ExitingEnvironmentalHazardEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class ExitingEnvironmentalHazardEventArgs : IPlayerEvent, IDeniableEvent, IHazardEvent, IExiledEvent
Constructors
| Improve this Doc View SourceExitingEnvironmentalHazardEventArgs(Player, EnvironmentalHazard, Boolean)
Initializes a new instance of the ExitingEnvironmentalHazardEventArgs class.
Declaration
public ExitingEnvironmentalHazardEventArgs(Player player, EnvironmentalHazard environmentalHazard, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
Hazards.EnvironmentalHazard | environmentalHazard | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceHazard
Declaration
public Hazard Hazard { get; }
Property Value
Type | Description |
---|---|
Hazard |
IsAllowed
Gets or sets a value indicating whether or not the player should be affected by the environmental hazard.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Gets the player who's exiting from the environmental hazard.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |