summaryrefslogtreecommitdiff
path: root/src/newgrf_callbacks.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-28 17:29:12 +0000
committerrubidium <rubidium@openttd.org>2010-08-28 17:29:12 +0000
commit34da98f2b14e63c7042f44271d0b452fcd970737 (patch)
treecb2dccaff1ff58b3a26b4d0528d29b205f472c35 /src/newgrf_callbacks.h
parentf1f1c71a415354b00c744573eec7e7b2ce3cf7a4 (diff)
downloadopenttd-34da98f2b14e63c7042f44271d0b452fcd970737.tar.xz
(svn r20647) -Codechange: update some of the object spec information
Diffstat (limited to 'src/newgrf_callbacks.h')
-rw-r--r--src/newgrf_callbacks.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/newgrf_callbacks.h b/src/newgrf_callbacks.h
index 911ca71c9..3cdd6abb0 100644
--- a/src/newgrf_callbacks.h
+++ b/src/newgrf_callbacks.h
@@ -251,6 +251,27 @@ enum CallbackID {
/** Called to determine text to show as airport layout name. */
CBID_AIRPORT_LAYOUT_NAME = 0x156, // 15 bit callback
+
+ /** Callback done for each tile of an object to check the slope. */
+ CBID_OBJECT_LAND_SLOPE_CHECK = 0x157, // 15 bit callback, not implemented
+
+ /** Determine the next animation frame for a house. */
+ CBID_OBJECT_ANIMATION_NEXT_FRAME = 0x158, // 15 bit callback, not implemented
+
+ /** Called for periodically starting or stopping the animation. */
+ CBID_OBJECT_ANIMATION_START_STOP = 0x159, // 15 bit callback, not implemented
+
+ /** Called to indicate how long the current animation frame should last. */
+ CBID_OBJECT_ANIMATION_SPEED = 0x15A, // 8 bit callback, not implemented
+
+ /** Called to determine the colour of a town building. */
+ CBID_OBJECT_COLOUR = 0x15B, // 15 bit callback, not implemented
+
+ /** Called to determine more text in the fund object window */
+ CBID_OBJECT_FUND_MORE_TEXT = 0x15C, // 15 bit callback, not implemented
+
+ /** Called to determine if one can alter the ground below an object tile */
+ CBID_OBJECT_AUTOSLOPE = 0x15D, // 15 bit callback, not implemented
};
/**
@@ -347,6 +368,18 @@ enum IndustryTileCallbackMask {
};
/**
+ * Callback masks for objects
+ */
+enum ObjectCallbackMask {
+ CBM_OBJ_SLOPE_CHECK = 0, ///< decides slope suitability
+ CBM_OBJ_ANIMATION_NEXT_FRAME = 1, ///< decides next animation frame
+ CBM_OBJ_ANIMATION_SPEED = 2, ///< decides animation speed
+ CBM_OBJ_COLOUR = 3, ///< decide the color of the building
+ CBM_OBJ_FUND_MORE_TEXT = 4, ///< additional text in fund window
+ CBM_OBJ_AUTOSLOPE = 5, ///< decides allowance of autosloping
+};
+
+/**
* Callback masks for airport tiles
*/
enum AirportTileCallbackMask {