Class DamageHandlerBase
A wrapper to easily manipulate the behavior of PlayerStatsSystem.DamageHandlerBase.
Inherited Members
Namespace: Exiled.API.Features.DamageHandlers
Assembly: Exiled.API.dll
Syntax
public abstract class DamageHandlerBase
Constructors
| Improve this Doc View SourceDamageHandlerBase()
Initializes a new instance of the DamageHandlerBase class.
Declaration
protected DamageHandlerBase()
DamageHandlerBase(DamageHandlerBase)
Initializes a new instance of the DamageHandlerBase class.
Declaration
protected DamageHandlerBase(DamageHandlerBase baseHandler)
Parameters
Type | Name | Description |
---|---|---|
PlayerStatsSystem.DamageHandlerBase | baseHandler | The base PlayerStatsSystem.DamageHandlerBase. |
Properties
| Improve this Doc View SourceBase
Gets or sets the base PlayerStatsSystem.DamageHandlerBase.
Declaration
public DamageHandlerBase Base { get; protected set; }
Property Value
Type | Description |
---|---|
PlayerStatsSystem.DamageHandlerBase |
CassieDeathAnnouncement
Gets or sets the DamageHandlerBase.CassieAnnouncement belonging to this DamageHandler instance.
Declaration
public virtual DamageHandlerBase.CassieAnnouncement CassieDeathAnnouncement { get; protected set; }
Property Value
Type | Description |
---|---|
DamageHandlerBase.CassieAnnouncement |
DeathTranslation
Gets the PlayerStatsSystem.DeathTranslation.
Declaration
public virtual DeathTranslation DeathTranslation { get; }
Property Value
Type | Description |
---|---|
PlayerStatsSystem.DeathTranslation |
ServerLogsText
Gets the text to show in the server logs.
Declaration
public virtual string ServerLogsText { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets or sets the DamageType for the damage handler.
Declaration
public virtual DamageType Type { get; protected set; }
Property Value
Type | Description |
---|---|
DamageType |
Methods
| Improve this Doc View SourceApplyDamage(Player)
Applies the damage to the specified Player.
Declaration
public abstract DamageHandlerBase.Action ApplyDamage(Player player)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The Player to damage. |
Returns
Type | Description |
---|---|
DamageHandlerBase.Action | The DamageHandlerBase.Action of the call to this method. |
As<T>()
Unsafely casts the damage handler to the specified PlayerStatsSystem.DamageHandlerBase type.
Declaration
public T As<T>()
where T : DamageHandlerBase
Returns
Type | Description |
---|---|
T | A PlayerStatsSystem.DamageHandlerBase object. |
Type Parameters
Name | Description |
---|---|
T | The specified PlayerStatsSystem.DamageHandlerBase type. |
BaseAs<T>()
Unsafely casts the damage handler to the specified DamageHandlerBase type.
Declaration
public T BaseAs<T>()
where T : DamageHandlerBase
Returns
Type | Description |
---|---|
T | A DamageHandlerBase object. |
Type Parameters
Name | Description |
---|---|
T | The specified DamageHandlerBase type. |
BaseIs<T>(out T)
Safely casts the damage handler to the specified DamageHandlerBase type.
Declaration
public bool BaseIs<T>(out T param)
where T : DamageHandlerBase
Parameters
Type | Name | Description |
---|---|---|
T | param | The casted DamageHandlerBase. |
Returns
Type | Description |
---|---|
System.Boolean | A DamageHandlerBase object. |
Type Parameters
Name | Description |
---|---|
T | The specified DamageHandlerBase type. |
Is<T>(out T)
Safely casts the damage handler to the specified PlayerStatsSystem.DamageHandlerBase type.
Declaration
public bool Is<T>(out T param)
where T : DamageHandlerBase
Parameters
Type | Name | Description |
---|---|---|
T | param | The casted PlayerStatsSystem.DamageHandlerBase. |
Returns
Type | Description |
---|---|
System.Boolean | A PlayerStatsSystem.DamageHandlerBase object. |
Type Parameters
Name | Description |
---|---|
T | The specified PlayerStatsSystem.DamageHandlerBase type. |
ProcessDamage(Player)
Computes and processes the damage.
Declaration
public virtual void ProcessDamage(Player player)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The Player to damage. |
Operators
| Improve this Doc View SourceImplicit(DamageHandlerBase to DamageHandlerBase)
Implicitly converts the given DamageHandlerBase instance to a PlayerStatsSystem.DamageHandlerBase object.
Declaration
public static implicit operator DamageHandlerBase(DamageHandlerBase damageHandlerBase)
Parameters
Type | Name | Description |
---|---|---|
DamageHandlerBase | damageHandlerBase | The DamageHandlerBase instance. |
Returns
Type | Description |
---|---|
PlayerStatsSystem.DamageHandlerBase |