OpenTTD Source 20241224-master-gf74b0cf984
yapf_cache.h File Reference

Entry point for OpenTTD to YAPF's cache. More...

#include "../../tile_type.h"
#include "../../track_type.h"

Go to the source code of this file.

Functions

void YapfNotifyTrackLayoutChange (TileIndex tile, Track track)
 Use this function to notify YAPF that track layout (or signal configuration) has change.
 

Detailed Description

Entry point for OpenTTD to YAPF's cache.

Definition in file yapf_cache.h.

Function Documentation

◆ YapfNotifyTrackLayoutChange()

void YapfNotifyTrackLayoutChange ( TileIndex  tile,
Track  track 
)

Use this function to notify YAPF that track layout (or signal configuration) has change.

Parameters
tilethe tile that is changed
trackwhat piece of track is changed

Definition at line 639 of file yapf_rail.cpp.

Referenced by AfterLoadGame(), CmdBuildBridge(), CmdBuildRailStation(), CmdBuildRailWaypoint(), CmdBuildRoad(), CmdBuildSingleRail(), CmdBuildSingleSignal(), CmdBuildTrainDepot(), CmdBuildTunnel(), CmdConvertRail(), CmdRemoveSingleRail(), CmdRemoveSingleSignal(), DoClearBridge(), DoClearTunnel(), RemoveFromRailBaseStation(), RemoveRoad(), and CYapfReserveTrack< Types >::TryReservePath().