Class TemporaryHazard
Represents temporary hazard.
Inheritance
System.Object
TemporaryHazard
Implements
IWrapper<Hazards.EnvironmentalHazard>
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.API.Features.Hazards
Assembly: Exiled.API.dll
Syntax
public class TemporaryHazard : Hazard, IWrapper<EnvironmentalHazard>
Constructors
| Improve this Doc View SourceTemporaryHazard(TemporaryHazard)
Initializes a new instance of the TemporaryHazard class.
Declaration
public TemporaryHazard(TemporaryHazard hazard)
Parameters
Type | Name | Description |
---|---|---|
Hazards.TemporaryHazard | hazard | The Hazards.TemporaryHazard instance. |
Properties
| Improve this Doc View SourceBase
Gets the Hazards.TemporaryHazard.
Declaration
public TemporaryHazard Base { get; }
Property Value
Type | Description |
---|---|
Hazards.TemporaryHazard |
Duration
Gets or sets elapsed time which has spend after creating.
Declaration
public float Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
IsDestroyed
Gets or sets a value indicating whether or not hazard is destroyed.
Declaration
public bool IsDestroyed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TotalDuration
Gets the total duration before hazard gets destroyed.
Declaration
public float TotalDuration { get; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceDestroy()
Destroys this hazard.
Declaration
public void Destroy()