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
TypeToDangerType
Gets a dictionary that maps each Type to its corresponding DangerType.
public static ReadOnlyDictionary<Type, DangerType> TypeToDangerType { get; }
Property Value
Methods
GetDangerType(DangerStackBase)
Gets the DangerType of the specified CustomPlayerEffects.Danger.DangerStackBase.
public static DangerType GetDangerType(this DangerStackBase dangerStackBase)
Parameters
dangerStackBase
DangerStackBaseThe 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
DangerStackBaseThe CustomPlayerEffects.Danger.DangerStackBase enum.
danger
DangerTypeThe 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
DangerTypeThe DangerType enum.
type
TypeThe 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
DangerTypeThe DangerType enum.