Interface IConditionalItem
- Namespace
- RandomizerCore
- Assembly
- RandomizerCore.dll
Interface representing an item which may not have any effect. Items which do not implement this interface are assumed to unconditionally have an effect.
public interface IConditionalItem
Methods
CheckForEffect(ProgressionManager)
Returns false if AddTo(ProgressionManager) will not modify the ProgressionManager, otherwise returns true.
bool CheckForEffect(ProgressionManager pm)
Parameters
Returns
TryAddTo(ProgressionManager)
Equivalent to calling CheckForEffect(ProgressionManager), then AddTo(ProgressionManager), and returning the result of the former.
bool TryAddTo(ProgressionManager pm)