summaryrefslogtreecommitdiff
path: root/src/newgrf_callbacks.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-03-22 23:19:40 +0000
committerpeter1138 <peter1138@openttd.org>2007-03-22 23:19:40 +0000
commit4d81a464e2683b7374424357335e6d2107c7bb48 (patch)
tree6a5889d1da669a907cf785ed15397ef5c50d00a8 /src/newgrf_callbacks.h
parentff9bbf6bc3b4b8502c747be87bff32490d06350e (diff)
downloadopenttd-4d81a464e2683b7374424357335e6d2107c7bb48.tar.xz
(svn r9411) -Codechange: Add support for loading of newcargo data.
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 348bfb6cc..b2769f4f9 100644
--- a/src/newgrf_callbacks.h
+++ b/src/newgrf_callbacks.h
@@ -99,9 +99,15 @@ enum CallbackID {
/* Called to play a special sound effect */
CBID_VEHICLE_SOUND_EFFECT = 0x33,
+ /* Called to calculate the income of delivered cargo */
+ CBID_CARGO_PROFIT_CALC = 0x39,
+
/* Called (if appropriate bit in callback mask set) to determine whether a
* town building can be destroyed. */
CBID_HOUSE_DENY_DESTRUCTION = 0x143,
+
+ /* Called to calculate part of a station rating */
+ CBID_CARGO_STATION_RATING_CALC = 0x145,
};
/**
@@ -145,6 +151,14 @@ enum HouseCallbackMask {
};
/**
+ * Callback masks for cargos.
+ */
+enum CargoCallbackMask {
+ CBM_CARGO_PROFIT_CALC = 0,
+ CBM_CARGO_STATION_RATING_CALC = 1,
+};
+
+/**
* Result of a failed callback.
*/
enum {