summaryrefslogtreecommitdiff
path: root/src/newgrf_callbacks.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-22 14:16:41 +0000
committeryexo <yexo@openttd.org>2010-02-22 14:16:41 +0000
commit880fedc192ff65a9916d8f0f7c94f930b62822ad (patch)
tree650ae38dafdc7a97eb742f836804696cbbf6d885 /src/newgrf_callbacks.h
parent80fb5c70c8e5c41d519946fe59fba4185fe7af89 (diff)
downloadopenttd-880fedc192ff65a9916d8f0f7c94f930b62822ad.tar.xz
(svn r19195) -Codechange: actually draw newgrf airport tiles
Diffstat (limited to 'src/newgrf_callbacks.h')
-rw-r--r--src/newgrf_callbacks.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/newgrf_callbacks.h b/src/newgrf_callbacks.h
index 3b1d26d26..661445017 100644
--- a/src/newgrf_callbacks.h
+++ b/src/newgrf_callbacks.h
@@ -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
};
/**
@@ -316,6 +319,17 @@ enum IndustryTileCallbackMask {
};
/**
+ * 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
*/
enum {