MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / LastUpdate

Method LastUpdate

src/linkgraph/linkgraph.h:62–62  ·  view source on GitHub ↗

* Get the date of the last update to any part of the edge's capacity. * @return Last update. */

Source from the content-addressed store, hash-verified

60 * @return Last update.
61 */
62 TimerGameEconomy::Date LastUpdate() const { return std::max(this->last_unrestricted_update, this->last_restricted_update); }
63
64 void Update(uint capacity, uint usage, uint32_t time, EdgeUpdateModes modes);
65 void Restrict() { this->last_unrestricted_update = EconomyTime::INVALID_DATE; }

Callers 3

DeleteStaleLinksFunction · 0.80
~StationMethod · 0.80
~LinkGraphJobMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected