Class ItemChainTag
Tag which triggers a recursive search through the AbstractItem.ModifyItem hook.
Recursion is by looking up the predecessor and successor items in Finder, and basing a search at their ItemChainTags.
Selected item is first nonredundant item in the sequence, or null (handled by AbstractItem) if all items are redundant.
Assembly: ItemChanger.dll
[ItemTag]
public class ItemChainTag : Tag, IItemModifierTag
Constructors
View Source
Declaration
Fields
View Source
Declaration
public string? predecessor
Field Value
View Source
Declaration
Field Value
Methods
View Source
Declaration
protected virtual AbstractItem GetItem(string name)
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns
View Source
Virtual method called on tags when their parent loads. The base method checks and throws an exception if the tag is already loaded.
This should not be called directly. Instead, use "LoadOnce" to load and set the Loaded property.
Declaration
public override void Load(object parent)
Parameters
| Type |
Name |
Description |
| object |
parent |
|
Overrides
Exceptions
View Source
Declaration
public void ModifyItem(GiveEventArgs args)
Parameters
View Source
Virtual method called on tags when their parent unloads. The base method checks and throws an exception if the tag is not loaded.
This should not be called directly. Instead, use "UnloadOnce" to unload and set the Loaded property.
Declaration
public override void Unload(object parent)
Parameters
| Type |
Name |
Description |
| object |
parent |
|
Overrides
Exceptions
Implements
Extension Methods