Skip to main content

IEnchantmentTriggerApplication

An interface in Root.Township, Alta.Enchantments.

A trigger of an enchantment applied to one enchanted object. It watches for its condition and raises Invoked when it fires.

Properties​

MemberWhat it is
EnchantmentApplication EnchantmentApp { get; }The applied enchantment this trigger belongs to.
EnchantmentTrigger Settings { get; }The trigger asset.

Events​

MemberWhat it is
event Action<object> InvokedRaised when the trigger fires, with trigger-specific data.

Methods​

MemberWhat it is
void Apply()Starts watching for the trigger. Does nothing if already applied.
void Remove()Stops watching for the trigger.
void SendMessage(Stream stream)Writes or reads the trigger's effect type. Remote clients then play the trigger's effects.

Used in​

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