OpenTTD Source 20241224-master-gee860a5c8e
|
Base class for segment cost cache providers. More...
#include <yapf_costcache.hpp>
Static Public Member Functions | |
static void | NotifyTrackLayoutChange (TileIndex, Track) |
Static Public Attributes | |
static int | s_rail_change_counter = 0 |
if any track changes, this counter is incremented - that will invalidate segment cost cache | |
Base class for segment cost cache providers.
Contains global counter of track layout changes and static notification function called whenever the track layout changes. It is implemented as base class because it needs to be shared between all rail YAPF types (one shared counter, one notification function.
Definition at line 46 of file yapf_costcache.hpp.
Definition at line 50 of file yapf_costcache.hpp.
|
static |
if any track changes, this counter is incremented - that will invalidate segment cost cache
Definition at line 48 of file yapf_costcache.hpp.