Search Results for

    Show / Hide Table of Contents

    Class TemporaryHazard

    Represents temporary hazard.

    Inheritance
    System.Object
    TypeCastObject<Hazard>
    Hazard
    TemporaryHazard
    AmnesticCloudHazard
    TantrumHazard
    Implements
    IWrapper<Hazards.EnvironmentalHazard>
    Inherited Members
    Hazard.List
    Hazard.AffectedPlayers
    Hazard.MaxDistance
    Hazard.MaxHeightDistance
    Hazard.IsActive
    Hazard.PositionOffset
    Hazard.Room
    Hazard.Position
    Hazard.Get(EnvironmentalHazard)
    Hazard.Get(Room)
    Hazard.Get(GameObject)
    Hazard.Get(Func<Hazard, Boolean>)
    Hazard.IsInArea(Player)
    TypeCastObject<Hazard>.Cast<TObject>()
    TypeCastObject<Hazard>.Cast<TObject>(TObject)
    TypeCastObject<Hazard>.As<TObject>()
    TypeCastObject<Hazard>.Is<TObject>(TObject)
    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 Source

    TemporaryHazard(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 Source

    Base

    Gets the Hazards.TemporaryHazard.

    Declaration
    public TemporaryHazard Base { get; }
    Property Value
    Type Description
    Hazards.TemporaryHazard
    | Improve this Doc View Source

    Duration

    Gets or sets elapsed time which has spend after creating.

    Declaration
    public float Duration { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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 Source

    Destroy()

    Destroys this hazard.

    Declaration
    public void Destroy()

    Implements

    IWrapper<T>

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX