Table of Contents

Class PlayerAided

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

Invoked when a player uses a consumable item on another player.

public sealed class PlayerAided : CancellablePlayerEvent, IPlayerEvent, ICancellable, IActionLoggableEvent
Inheritance
PlayerAided
Implements
Inherited Members

Properties

BleedStateChanged

public required bool BleedStateChanged { get; init; }

Property Value

bool

BrokenBonesStateChanged

public required bool BrokenBonesStateChanged { get; init; }

Property Value

bool

ExperienceChange

public required int ExperienceChange { get; init; }

Property Value

int

FoodChange

public required int FoodChange { get; init; }

Property Value

int

HealthChange

The amount of health added to Player.

public required int HealthChange { get; init; }

Property Value

int

InfectionChange

public required int InfectionChange { get; init; }

Property Value

int

IsEffectiveRevive

If this aid revived Player and if the medic was awarded points. This will be false if the player recently revived the medic already.

public required bool IsEffectiveRevive { get; init; }

Property Value

bool

IsRevive

If this aid revived Player.

public required bool IsRevive { get; init; }

Property Value

bool

Item

The item used to aid.

public required IAssetLink<ItemConsumeableAsset> Item { get; init; }

Property Value

IAssetLink<ItemConsumeableAsset>

Medic

The player who aided Player.

public required WarfarePlayer Medic { get; init; }

Property Value

WarfarePlayer

StaminaChange

public required int StaminaChange { get; init; }

Property Value

int

WarmthChange

public required int WarmthChange { get; init; }

Property Value

int

WaterChange

public required int WaterChange { get; init; }

Property Value

int

Methods

GetActionLogEntry(IServiceProvider, ref ActionLogEntry[]?)

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

Parameters

serviceProvider IServiceProvider
multipleEntries ActionLogEntry[]

Returns

ActionLogEntry