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
SpellIduintThe spell that placed it.
FamilyuintThe spell's family, so a caller can tell which effects would replace each other. 0 when the client has no description of the spell.
TierintThe spell's rank within its family, or 0 when the client has no description of the spell.
SecondsRemainingdoubleThe 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
SecondsRemaining
The enchantment's duration in seconds, as the client last recorded it.
public double SecondsRemaining { get; init; }
Property Value
SpellId
The spell that placed it.
public uint SpellId { get; init; }
Property Value
Tier
The spell's rank within its family, or 0 when the client has no description of the spell.
public int Tier { get; init; }