Table of Contents

Class TemporaryHazard

Namespace
Exiled.API.Features.Hazards
Assembly
Exiled.API.dll

Represents temporary hazard.

public class TemporaryHazard : Hazard, IWrapper<EnvironmentalHazard>
Inheritance
TemporaryHazard
Implements
IWrapper<EnvironmentalHazard>
Derived
Inherited Members
Extension Methods

Constructors

TemporaryHazard(TemporaryHazard)

Initializes a new instance of the TemporaryHazard class.

public TemporaryHazard(TemporaryHazard hazard)

Parameters

hazard TemporaryHazard

The Hazards.TemporaryHazard instance.

Properties

Base

Gets the Hazards.TemporaryHazard.

public TemporaryHazard Base { get; }

Property Value

TemporaryHazard

Duration

Gets or sets elapsed time which has spend after creating.

public float Duration { get; set; }

Property Value

float

IsDestroyed

Gets or sets a value indicating whether hazard is destroyed.

public bool IsDestroyed { get; set; }

Property Value

bool

TotalDuration

Gets the total duration before hazard gets destroyed.

public float TotalDuration { get; }

Property Value

float

Methods

Destroy()

Destroys this hazard.

public void Destroy()