Table of Contents

Class PlayerInjured

Namespace
Uncreated.Warfare.Events.Models.Players
Assembly
Uncreated.Warfare.dll

Handles a player being injured.

[EventModel(EventSynchronizationContext.Pure)]
public class PlayerInjured : PlayerEvent, IPlayerEvent, IActionLoggableEvent
Inheritance
PlayerInjured
Implements
Inherited Members

Constructors

PlayerInjured(in DamagePlayerParameters)

public PlayerInjured(in DamagePlayerParameters parameters)

Parameters

parameters DamagePlayerParameters

Properties

Instigator

The player that instigated the damage.

public required WarfarePlayer? Instigator { get; init; }

Property Value

WarfarePlayer

Parameters

Mutable properties for how players are damaged to get injured.

public ref readonly DamagePlayerParameters Parameters { get; }

Property Value

DamagePlayerParameters

Methods

GetActionLogEntry(IServiceProvider, ref ActionLogEntry[]?)

public ActionLogEntry GetActionLogEntry(IServiceProvider serviceProvider, ref ActionLogEntry[]? multipleEntries)

Parameters

serviceProvider IServiceProvider
multipleEntries ActionLogEntry[]

Returns

ActionLogEntry