Adds optional optimization to history helper functions to limit the max amount of turns searched through.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -26,7 +26,7 @@ namespace CreatureLib::Battling {
|
||||
bool _hasEnded = false;
|
||||
BattleResult _battleResult = BattleResult::Empty();
|
||||
EventHook _eventHook;
|
||||
ArbUt::UniquePtr<HistoryHolder> _historyHolder = new HistoryHolder();
|
||||
ArbUt::UniquePtr<HistoryHolder> _historyHolder = new HistoryHolder([this]() { return GetCurrentTurn(); });
|
||||
|
||||
uint32_t _currentTurn = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user