Class LevelUpRules
- Namespace
- SurvivorsMaker.Run
- Assembly
- SurvivorsMaker.Run.dll
Creates level-up windows through the common pool; Flow owns transitions and weapon grants.
public sealed class LevelUpRules : ILevelUpRules
- Inheritance
-
LevelUpRules
- Implements
- Inherited Members
Constructors
LevelUpRules(IOfferPool, IAcquisitionValidator)
public LevelUpRules(IOfferPool pool = null, IAcquisitionValidator validator = null)
Parameters
poolIOfferPoolvalidatorIAcquisitionValidator
Methods
Choose(RunState, int)
Upgrades are appended here; weapon Ok only acknowledges selection. Flow grants through IShopRules.AddWeapon, which uses the same current-state validator. Invalid calls do not mutate.
public RunResult Choose(RunState run, int index)
Parameters
Returns
Roll(RunState)
Replaces Choices with a new window.
public void Roll(RunState run)
Parameters
runRunState