Class EmptyItem
- Namespace
- RandomizerCore.LogicItems
- Assembly
- RandomizerCore.dll
public sealed record EmptyItem : LogicItem, ILogicItem, ILogicItemTemplate, IEquatable<LogicItem>, IConditionalItem, IEquatable<EmptyItem>
- Inheritance
-
EmptyItem
- Implements
- Inherited Members
Constructors
EmptyItem(string)
public EmptyItem(string Name)
Parameters
Name
string
Methods
AddTo(ProgressionManager)
Directly adds the item to the pm. This does not invoke the pm events, so it is best to implement this explicitly and use pm.Add instead.
public override void AddTo(ProgressionManager pm)
Parameters
CheckForEffect(ProgressionManager)
Returns false if AddTo(ProgressionManager) will not modify the ProgressionManager, otherwise returns true.
public bool CheckForEffect(ProgressionManager pm)
Parameters
Returns
GetAffectedTerms()
Returns the terms potentially modified by the item.
public override IEnumerable<Term> GetAffectedTerms()
Returns
TryAddTo(ProgressionManager)
Equivalent to calling CheckForEffect(ProgressionManager), then AddTo(ProgressionManager), and returning the result of the former.
public bool TryAddTo(ProgressionManager pm)