Interface IAcquisitionValidator

Namespace
SurvivorsMaker.Run
Assembly
SurvivorsMaker.Run.dll

Shared, read-only eligibility and capacity checks for offers, purchases and upgrade choices.

public interface IAcquisitionValidator

Methods

Check(RunState, OfferCandidate, OfferChannel, bool, IReadOnlyList<OfferCandidate>, out AcquisitionPlan)

Checks channel eligibility, bans, ownership and capacity without changing the run; returns a destination plan when valid.

OfferFailure Check(RunState run, OfferCandidate candidate, OfferChannel channel, bool generating, IReadOnlyList<OfferCandidate> reservations, out AcquisitionPlan plan)

Parameters

run RunState
candidate OfferCandidate
channel OfferChannel
generating bool
reservations IReadOnlyList<OfferCandidate>
plan AcquisitionPlan

Returns

OfferFailure

CheckMerge(RunState, int, int, out AcquisitionPlan)

Validates two owned weapon indices and their merge destination without changing inventory.

RunResult CheckMerge(RunState run, int first, int second, out AcquisitionPlan plan)

Parameters

run RunState
first int
second int
plan AcquisitionPlan

Returns

RunResult