MCPcopy Create free account
hub / github.com/DFHack/dfhack / flows_next_required_tick

Function flows_next_required_tick

plugins/timestream.cpp:372–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372static df_tick_type flows_next_required_tick() {
373 if (flows == nullptr || flows->empty())
374 return std::numeric_limits<df_tick_type>::max();
375
376 auto flow_indices = std::views::iota(0, (int)flows->size());
377 auto next_flow = std::ranges::min(flow_indices, {}, flow_next_required_tick);
378
379 return flow_next_required_tick(next_flow);
380}
381
382static bool detect_caravans()
383{

Callers 1

clamp_timeskipFunction · 0.85

Calls 3

flow_next_required_tickFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected