File diff r6226:6350e47be929 → r6227:c374d167eb95
src/newgrf_callbacks.h
Show inline comments
 
@@ -10,26 +10,26 @@
 
 * List of implemented NewGRF callbacks.
 
 * Names are formatted as CBID_<CLASS>_<CALLBACK>
 
 */
 
enum CallbackID {
 
	// Powered wagons, if the result is lower as 0x40 then the wagon is powered
 
	// TODO: interpret the rest of the result, aka "visual effects"
 
	CBID_TRAIN_WAGON_POWER          = 0x10,
 

	
 
	// Vehicle length, returns the amount of 1/8's the vehicle is shorter
 
	// only for train vehicles
 
	CBID_TRAIN_VEHICLE_LENGTH       = 0x11,
 

	
 
	/* Called to determine the amount of cargo to load per unit of time when
 
	 * using gradual loading. */
 
	/* Called (if appropriate bit in callback mask is set) to determine the
 
	 * amount of cargo to load per unit of time when using gradual loading. */
 
	CBID_VEHICLE_LOAD_AMOUNT        = 0x12,
 

	
 
	/* Called (if appropriate bit in callback mask is set) to determine if a
 
	 * newstation should be made available to build */
 
	CBID_STATION_AVAILABILITY       = 0x13,
 

	
 
	/* Called (if appropriate bit in callback mask is set) when drawing a tile
 
	 * to choose a sprite layout to draw, instead of the standard 0-7 range */
 
	CBID_STATION_SPRITE_LAYOUT      = 0x14,
 

	
 
	// Refit capacity, the passed vehicle needs to have its ->cargo_type set to
 
	// the cargo we are refitting to, returns the new cargo capacity