Table of Contents

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

pm ProgressionManager

Returns

bool

TryAddTo(ProgressionManager)

Equivalent to calling CheckForEffect(ProgressionManager), then AddTo(ProgressionManager), and returning the result of the former.

bool TryAddTo(ProgressionManager pm)

Parameters

pm ProgressionManager

Returns

bool