summaryrefslogtreecommitdiff
path: root/src/newgrf_callbacks.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-16 19:10:50 +0000
committerrubidium <rubidium@openttd.org>2009-09-16 19:10:50 +0000
commit430ce1941871d71a3c8cf6259001a488bdfeb9da (patch)
tree96bc0bd7facb66575cb18c456c744ecf932607cb /src/newgrf_callbacks.h
parent24e9ee8ab4244b5562d3a780b153b33d1a5b64df (diff)
downloadopenttd-430ce1941871d71a3c8cf6259001a488bdfeb9da.tar.xz
(svn r17558) -Feature [NewGRF]: callbacks for houses to disable drawing foundations and to disable slope changes, like industry tile callbacks 30 and 3C.
Diffstat (limited to 'src/newgrf_callbacks.h')
-rw-r--r--src/newgrf_callbacks.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/newgrf_callbacks.h b/src/newgrf_callbacks.h
index 5c4eb0f35..3b1d26d26 100644
--- a/src/newgrf_callbacks.h
+++ b/src/newgrf_callbacks.h
@@ -214,6 +214,12 @@ enum CallbackID {
/** Called on the Get Tile Description for an house tile. */
CBID_HOUSE_CUSTOM_NAME = 0x14D, // 15 bit callback
+
+ /** Called to determine the type (if any) of foundation to draw for house tile. */
+ CBID_HOUSE_DRAW_FOUNDATIONS = 0x14E, // 15 bit callback
+
+ /** Called to determine if one can alter the ground below a house tile */
+ CBID_HOUSE_AUTOSLOPE = 0x14F, // 15 bit callback
};
/**
@@ -257,6 +263,8 @@ enum HouseCallbackMask {
CBM_HOUSE_ACCEPT_CARGO = 8, ///< decides accepted types
CBM_HOUSE_PRODUCE_CARGO = 9, ///< custom cargo production
CBM_HOUSE_DENY_DESTRUCTION = 10, ///< conditional protection
+ CBM_HOUSE_DRAW_FOUNDATIONS = 11, ///< decides if default foundations need to be drawn
+ CBM_HOUSE_AUTOSLOPE = 12, ///< decides allowance of autosloping
};
/**