Struct PluginTrackedEnchantment
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
One spell effect the client believes is currently running on a target, with the time left before it lapses.
public readonly record struct PluginTrackedEnchantment : IEquatable<PluginTrackedEnchantment>
- Implements
- Inherited Members
Constructors
PluginTrackedEnchantment(uint, uint, uint, int, bool, double)
One spell effect the client believes is currently running on a target, with the time left before it lapses.
public PluginTrackedEnchantment(uint TargetObjectId, uint SpellId, uint Family, int Quality, bool IsUntargeted, double SecondsRemaining)
Parameters
TargetObjectIduintThe object the effect is running on.
SpellIduintThe spell that produced the effect.
FamilyuintThe spell's family group. Spells in one family replace each other rather than stacking, so this is what a plugin compares to decide whether a re-cast would overwrite an effect already in place.
QualityintThe spell's difficulty rating as the client's spell table reports it.
IsUntargetedboolTrue when the spell takes no target of its own (a self or area effect).
SecondsRemainingdoubleSeconds left before the effect lapses, never below zero.
Properties
Family
The spell's family group. Spells in one family replace each other rather than stacking, so this is what a plugin compares to decide whether a re-cast would overwrite an effect already in place.
public uint Family { get; init; }
Property Value
IsUntargeted
True when the spell takes no target of its own (a self or area effect).
public bool IsUntargeted { get; init; }
Property Value
Quality
The spell's difficulty rating as the client's spell table reports it.
public int Quality { get; init; }
Property Value
SecondsRemaining
Seconds left before the effect lapses, never below zero.
public double SecondsRemaining { get; init; }
Property Value
SpellId
The spell that produced the effect.
public uint SpellId { get; init; }
Property Value
TargetObjectId
The object the effect is running on.
public uint TargetObjectId { get; init; }