|
OpenTTD Source 20260311-master-g511d3794ce
|
Set of callback functions for performing tile operations of a given tile type. More...
#include <tile_cmd.h>
Data Fields | |
| DrawTileProc * | draw_tile_proc |
| Called to render the tile and its contents to the screen. | |
| GetSlopePixelZProc * | get_slope_pixel_z_proc |
| Called to get the world Z coordinate for a given location within the tile. | |
| ClearTileProc * | clear_tile_proc |
| AddAcceptedCargoProc * | add_accepted_cargo_proc = nullptr |
| Adds accepted cargo of the tile to cargo array supplied as parameter. | |
| GetTileDescProc * | get_tile_desc_proc |
| Get a description of a tile (for the 'land area information' tool). | |
| GetTileTrackStatusProc * | get_tile_track_status_proc = [](TileIndex, TransportType, uint, DiagDirection) -> TrackStatus { return {}; } |
| Get available tracks and status of a tile. | |
| ClickTileProc * | click_tile_proc = nullptr |
| Called when tile is clicked. | |
| AnimateTileProc * | animate_tile_proc = nullptr |
| Called to animate a tile. | |
| TileLoopProc * | tile_loop_proc |
| Called to periodically update the tile. | |
| ChangeTileOwnerProc * | change_tile_owner_proc = [](TileIndex, CompanyID, CompanyID) {} |
| Called to change the ownership of elements on a tile. | |
| AddProducedCargoProc * | add_produced_cargo_proc = nullptr |
| Adds produced cargo of the tile to cargo array supplied as parameter. | |
| VehicleEnterTileProc * | vehicle_enter_tile_proc = nullptr |
| Called when a vehicle enters a tile. | |
| GetFoundationProc * | get_foundation_proc = [](TileIndex, Slope) { return FOUNDATION_NONE; } |
| Called to get the foundation. | |
| TerraformTileProc * | terraform_tile_proc |
| Called when a terraforming operation is about to take place. | |
| CheckBuildAboveProc * | check_build_above_proc = nullptr |
| Called to check whether a bridge can be build above. | |
Set of callback functions for performing tile operations of a given tile type.
Definition at line 212 of file tile_cmd.h.
| AddAcceptedCargoProc* TileTypeProcs::add_accepted_cargo_proc = nullptr |
Adds accepted cargo of the tile to cargo array supplied as parameter.
Definition at line 216 of file tile_cmd.h.
| AddProducedCargoProc* TileTypeProcs::add_produced_cargo_proc = nullptr |
Adds produced cargo of the tile to cargo array supplied as parameter.
Definition at line 223 of file tile_cmd.h.
| AnimateTileProc* TileTypeProcs::animate_tile_proc = nullptr |
Called to animate a tile.
Definition at line 220 of file tile_cmd.h.
| ChangeTileOwnerProc* TileTypeProcs::change_tile_owner_proc = [](TileIndex, CompanyID, CompanyID) {} |
Called to change the ownership of elements on a tile.
Definition at line 222 of file tile_cmd.h.
| CheckBuildAboveProc* TileTypeProcs::check_build_above_proc = nullptr |
Called to check whether a bridge can be build above.
Definition at line 227 of file tile_cmd.h.
| ClearTileProc* TileTypeProcs::clear_tile_proc |
Definition at line 215 of file tile_cmd.h.
| ClickTileProc* TileTypeProcs::click_tile_proc = nullptr |
Called when tile is clicked.
Definition at line 219 of file tile_cmd.h.
| DrawTileProc* TileTypeProcs::draw_tile_proc |
Called to render the tile and its contents to the screen.
Definition at line 213 of file tile_cmd.h.
| GetFoundationProc* TileTypeProcs::get_foundation_proc = [](TileIndex, Slope) { return FOUNDATION_NONE; } |
Called to get the foundation.
Definition at line 225 of file tile_cmd.h.
| GetSlopePixelZProc* TileTypeProcs::get_slope_pixel_z_proc |
Called to get the world Z coordinate for a given location within the tile.
Definition at line 214 of file tile_cmd.h.
| GetTileDescProc* TileTypeProcs::get_tile_desc_proc |
Get a description of a tile (for the 'land area information' tool).
Definition at line 217 of file tile_cmd.h.
| GetTileTrackStatusProc* TileTypeProcs::get_tile_track_status_proc = [](TileIndex, TransportType, uint, DiagDirection) -> TrackStatus { return {}; } |
Get available tracks and status of a tile.
Definition at line 218 of file tile_cmd.h.
| TerraformTileProc* TileTypeProcs::terraform_tile_proc |
Called when a terraforming operation is about to take place.
Definition at line 226 of file tile_cmd.h.
| TileLoopProc* TileTypeProcs::tile_loop_proc |
Called to periodically update the tile.
Definition at line 221 of file tile_cmd.h.
| VehicleEnterTileProc* TileTypeProcs::vehicle_enter_tile_proc = nullptr |
Called when a vehicle enters a tile.
Definition at line 224 of file tile_cmd.h.