Add: [NewGRF] Callback for custom refit mask for engines/vehicles.

This commit is contained in:
Michael Lutz
2024-11-17 15:30:13 +01:00
parent a3ee05737f
commit d2496b6ec4
2 changed files with 26 additions and 0 deletions

View File

@@ -285,6 +285,12 @@ enum CallbackID {
/** Called to determine probability during build. */
CBID_VEHICLE_BUILD_PROBABILITY = 0x162, // 15 bit callback
/**
* Called to get custom engine refit mask. Called once
* for each defined cargo after all NewGRFs are loaded.
*/
CBID_VEHICLE_CUSTOM_REFIT = 0x0163, // 15 bit callback
};
/**
@@ -301,6 +307,7 @@ enum VehicleCallbackMask {
CBM_VEHICLE_COLOUR_REMAP = 6, ///< Change colour mapping of vehicle
CBM_VEHICLE_SOUND_EFFECT = 7, ///< Vehicle uses custom sound effects
CBM_VEHICLE_NAME = 8, ///< Engine name
CBM_VEHICLE_CUSTOM_REFIT = 9, ///< Custom refit mask
};
/**