Table of Contents

Struct PluginActiveEnchantment

Namespace
AcDream.Plugin.Abstractions
Assembly
AcDream.Plugin.Abstractions.dll

One enchantment currently in force.

public readonly record struct PluginActiveEnchantment : IEquatable<PluginActiveEnchantment>
Implements
Inherited Members

Constructors

PluginActiveEnchantment(uint, uint, int, double)

One enchantment currently in force.

public PluginActiveEnchantment(uint SpellId, uint Family, int Tier, double SecondsRemaining)

Parameters

SpellId uint

The spell that placed it.

Family uint

The spell's family, so a caller can tell which effects would replace each other. 0 when the client has no description of the spell.

Tier int

The spell's rank within its family, or 0 when the client has no description of the spell.

SecondsRemaining double

The enchantment's duration in seconds, as the client last recorded it.

Properties

Family

The spell's family, so a caller can tell which effects would replace each other. 0 when the client has no description of the spell.

public uint Family { get; init; }

Property Value

uint

SecondsRemaining

The enchantment's duration in seconds, as the client last recorded it.

public double SecondsRemaining { get; init; }

Property Value

double

SpellId

The spell that placed it.

public uint SpellId { get; init; }

Property Value

uint

Tier

The spell's rank within its family, or 0 when the client has no description of the spell.

public int Tier { get; init; }

Property Value

int