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.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ItemChanger.Tags
Assembly: ItemChanger.dll
Syntax
public class ItemTreeTag : Tag, IItemModifierTag
Fields
| Improve this Doc View Sourcepredecessors
Declaration
public string[] predecessors
Field Value
Type | Description |
---|---|
System.String[] |
strictEvaluation
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
Type | Description |
---|---|
System.Boolean |
successors
Declaration
public string[] successors
Field Value
Type | Description |
---|---|
System.String[] |
Methods
| Improve this Doc View SourceGetItem(String)
Declaration
protected virtual AbstractItem GetItem(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
AbstractItem |
Load(Object)
Declaration
public override void Load(object parent)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parent |
Overrides
| Improve this Doc View SourceModifyItem(GiveEventArgs)
Declaration
public void ModifyItem(GiveEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
GiveEventArgs | args |
Unload(Object)
Declaration
public override void Unload(object parent)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parent |