Skip to main content

EnchantmentApplication

A class in Root.Township, Alta.Enchantments.

An enchantment applied to one Enchantable: the live triggers and effects built from the enchantment's bindings. Each binding's triggers fire that binding's effects.

Constructors​

MemberWhat it is
EnchantmentApplication(Enchantable enchantable, Enchantment enchantment)Creates an EnchantmentApplication from enchantable and enchantment.

Fields​

MemberWhat it is
List<IEnchantmentEffectApplication> allEffectsThe effect instances created from the bindings.
List<IEnchantmentTriggerApplication> allTriggersThe trigger instances created from the bindings.

Properties​

MemberWhat it is
Enchantable Enchantable { get; }The object this enchantment is applied to.
Enchantment Settings { get; }The Enchantment asset this was built from.

Events​

MemberWhat it is
event Action<EnchantmentApplication> RemovedRaised once when the enchantment is removed.

Methods​

MemberWhat it is
void Remove()Removes every trigger, raises Removed and clears its listeners.

Used in​

Members of other types that take, return or hold a EnchantmentApplication: