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.
- Listed in Crafting and making
- Derived types
EnchantmentTriggerApplication<T>
Properties
| Member | What it is |
|---|---|
EnchantmentApplication EnchantmentApp { get; } | The applied enchantment this trigger belongs to. |
EnchantmentTrigger Settings { get; } | The trigger asset. |
Events
| Member | What it is |
|---|---|
event Action<object> Invoked | Raised when the trigger fires, with trigger-specific data. |
Methods
| Member | What 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: