summaryrefslogtreecommitdiff
path: root/src/economy_type.h
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-09-21 13:07:42 +0000
committerzuu <zuu@openttd.org>2013-09-21 13:07:42 +0000
commitab69c6c2a0ba9ab36db4a20c0e6db2ea404746bf (patch)
treecadbe91c284755b63ace0e8a146bdbbb48cb2fdc /src/economy_type.h
parent01dea4ec37e79b2db08bbeb99727592b01eeb492 (diff)
downloadopenttd-ab69c6c2a0ba9ab36db4a20c0e6db2ea404746bf.tar.xz
(svn r25788) -Feature: [Script] Game Scripts can now charge fees and give money to companies
Diffstat (limited to 'src/economy_type.h')
-rw-r--r--src/economy_type.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/economy_type.h b/src/economy_type.h
index a15f4b5e3..7e7a57241 100644
--- a/src/economy_type.h
+++ b/src/economy_type.h
@@ -165,6 +165,10 @@ enum ExpensesType {
INVALID_EXPENSES = 0xFF, ///< Invalid expense type.
};
+/** Define basic enum properties for ExpensesType */
+template <> struct EnumPropsT<ExpensesType> : MakeEnumPropsT<ExpensesType, byte, EXPENSES_CONSTRUCTION, EXPENSES_END, INVALID_EXPENSES, 8> {};
+typedef TinyEnumT<ExpensesType> ExpensesTypeByte; ///< typedefing-enumification of ExpensesType
+
/**
* Categories of a price bases.
*/