(svn r19195) -Codechange: actually draw newgrf airport tiles

This commit is contained in:
yexo
2010-02-22 14:16:41 +00:00
parent 80fb5c70c8
commit 880fedc192
7 changed files with 272 additions and 2 deletions

View File

@@ -220,6 +220,9 @@ enum CallbackID {
/** Called to determine if one can alter the ground below a house tile */
CBID_HOUSE_AUTOSLOPE = 0x14F, // 15 bit callback
/** Called to determine the type (if any) of foundation to draw for an airport tile. */
CBID_AIRPTILE_DRAW_FOUNDATIONS = 0x150, // 15 bit callback
};
/**
@@ -315,6 +318,17 @@ enum IndustryTileCallbackMask {
CBM_INDT_AUTOSLOPE = 6, ///< decides allowance of autosloping
};
/**
* Callback masks for airport tiles
*/
enum AirportTileCallbackMask {
CBM_AIRT_ANIM_NEXT_FRAME = 0, ///< decides next animation frame
CBM_AIRT_ANIM_SPEED = 1, ///< decides animation speed
CBM_AIRT_SHAPE_CHECK = 4, ///< decides slope suitability
CBM_AIRT_DRAW_FOUNDATIONS = 5, ///< decides if default foundations need to be drawn
CBM_AIRT_AUTOSLOPE = 6, ///< decides allowance of autosloping
};
/**
* Different values for Callback result evaluations
*/