summaryrefslogtreecommitdiff
path: root/newgrf_callbacks.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-04 20:00:50 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-04 20:00:50 +0000
commit86b57907824d3bb80b6524d6f221ba4b43f94bf4 (patch)
treec64a76e8f58754388af773e8a9fb32010a359ef7 /newgrf_callbacks.h
parent27e7fbaaa0afd3cabcf1289e2fedb48867a33506 (diff)
downloadopenttd-86b57907824d3bb80b6524d6f221ba4b43f94bf4.tar.xz
(svn r4742) - Newstations: Add callbacks for building and drawing custom stations.
Diffstat (limited to 'newgrf_callbacks.h')
-rw-r--r--newgrf_callbacks.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/newgrf_callbacks.h b/newgrf_callbacks.h
index 24a697395..62ce8ac96 100644
--- a/newgrf_callbacks.h
+++ b/newgrf_callbacks.h
@@ -19,6 +19,14 @@ enum CallbackID {
// only for train vehicles
CBID_TRAIN_VEHICLE_LENGTH = 0x11,
+ /* Called (if appropriate bit in callback mask is set) to determine if a
+ * newstation should be made available to build */
+ CBID_STATION_AVAILABILITY = 0x13,
+
+ /* Called (if appropriate bit in callback mask is set) when drawing a tile
+ * to choose a sprite layout to draw, instead of the standard 0-7 range */
+ CBID_STATION_SPRITE_LAYOUT = 0x14,
+
// Refit capacity, the passed vehicle needs to have its ->cargo_type set to
// the cargo we are refitting to, returns the new cargo capacity
CBID_VEHICLE_REFIT_CAPACITY = 0x15,
@@ -30,6 +38,9 @@ enum CallbackID {
/* This callback is called from vehicle purchase lists. It returns a value to be
* used as a custom string ID in the 0xD000 range. */
CBID_VEHICLE_ADDITIONAL_TEXT = 0x23,
+
+ /* Called when building a station to customize the tile layout */
+ CBID_STATION_TILE_LAYOUT = 0x24,
};
/**