Table of Contents

Class DangerTypeExtensions

Namespace
Exiled.API.Extensions
Assembly
Exiled.API.dll

A set of extensions for DangerType.

public static class DangerTypeExtensions
Inheritance
DangerTypeExtensions
Inherited Members

Properties

DangerTypeToType

Gets a dictionary that maps each DangerType to its corresponding Type.

public static ReadOnlyDictionary<DangerType, Type> DangerTypeToType { get; }

Property Value

ReadOnlyDictionary<DangerType, Type>

TypeToDangerType

Gets a dictionary that maps each Type to its corresponding DangerType.

public static ReadOnlyDictionary<Type, DangerType> TypeToDangerType { get; }

Property Value

ReadOnlyDictionary<Type, DangerType>

Methods

GetDangerType(DangerStackBase)

Gets the DangerType of the specified CustomPlayerEffects.Danger.DangerStackBase.

public static DangerType GetDangerType(this DangerStackBase dangerStackBase)

Parameters

dangerStackBase DangerStackBase

The CustomPlayerEffects.Danger.DangerStackBase enum.

Returns

DangerType

The DangerType.

TryGetDangerType(DangerStackBase, out DangerType)

Gets the DangerType of the specified CustomPlayerEffects.Danger.DangerStackBase.

public static bool TryGetDangerType(this DangerStackBase dangerStackBase, out DangerType danger)

Parameters

dangerStackBase DangerStackBase

The CustomPlayerEffects.Danger.DangerStackBase enum.

danger DangerType

The danger type found.

Returns

bool

Whether the danger has been found.

TryGetType(DangerType, out Type)

Gets an instance of Type points to a danger.

public static bool TryGetType(this DangerType danger, out Type type)

Parameters

danger DangerType

The DangerType enum.

type Type

The type found with the corresponding DangerType.

Returns

bool

Whether the type has been found.

Type(DangerType)

Gets an instance of Type points to a danger.

public static Type Type(this DangerType danger)

Parameters

danger DangerType

The DangerType enum.

Returns

Type

The Type.