newgrf_callbacks.h
changeset 4244 d40c73c55357
parent 3754 4c8cbaaa0bbe
child 4656 9c1d8c4d3e60
equal deleted inserted replaced
4243:b0361faa4dfd 4244:d40c73c55357
    39 	 * used as a custom string ID in the 0xD000 range. */
    39 	 * used as a custom string ID in the 0xD000 range. */
    40 	CBID_VEHICLE_ADDITIONAL_TEXT    = 0x23,
    40 	CBID_VEHICLE_ADDITIONAL_TEXT    = 0x23,
    41 
    41 
    42 	/* Called when building a station to customize the tile layout */
    42 	/* Called when building a station to customize the tile layout */
    43 	CBID_STATION_TILE_LAYOUT        = 0x24,
    43 	CBID_STATION_TILE_LAYOUT        = 0x24,
       
    44 
       
    45 	/* Called when the player (or AI) tries to start or stop a vehicle. Mainly
       
    46 	 * used for preventing a vehicle from leaving the depot. */
       
    47 	CBID_VEHICLE_START_STOP_CHECK   = 0x31,
    44 };
    48 };
    45 
    49 
    46 /**
    50 /**
    47  * Callback masks for vehicles, indicates which callbacks are used by a vehicle.
    51  * Callback masks for vehicles, indicates which callbacks are used by a vehicle.
    48  * Some callbacks are always used and don't have a mask.
    52  * Some callbacks are always used and don't have a mask.