Class ItemTreeTag
Tag which carries ordered lists of predecessors and successors item names.
Hooks AbstractItem.ModifyItem, and returns the first item in the sequence which is not redundant.
Note that unlike ItemChainTag, this does not recursively check tags of the predecessors and successors.
Assembly: ItemChanger.dll
[ItemTag]
public class ItemTreeTag : Tag, IItemModifierTag
Constructors
View Source
Declaration
Fields
View Source
Declaration
public string[]? predecessors
Field Value
View Source
If true, the first nonredundant item starting from the first element in the list will be chosen.
Otherwise, the search will begin at the parent item, and will assume that predecessors of a redundant item are redundant.
Only relevant when predecessors is nonempty.
Declaration
public bool strictEvaluation
Field Value
View Source
Declaration
public string[]? successors
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