equal
deleted
inserted
replaced
8 #include "town_type.h" |
8 #include "town_type.h" |
9 #include "industry_type.h" |
9 #include "industry_type.h" |
10 #include "newgrf_storage.h" |
10 #include "newgrf_storage.h" |
11 #include "core/bitmath_func.hpp" |
11 #include "core/bitmath_func.hpp" |
12 #include "gfx_type.h" |
12 #include "gfx_type.h" |
|
13 #include "newgrf_generic.h" |
13 |
14 |
14 /** |
15 /** |
15 * Gets the value of a so-called newgrf "register". |
16 * Gets the value of a so-called newgrf "register". |
16 * @param i index of the register |
17 * @param i index of the register |
17 * @pre i < 0x110 |
18 * @pre i < 0x110 |
234 IndustryType type; |
235 IndustryType type; |
235 } industry; |
236 } industry; |
236 struct { |
237 struct { |
237 const struct CargoSpec *cs; |
238 const struct CargoSpec *cs; |
238 } cargo; |
239 } cargo; |
|
240 struct { |
|
241 CargoID cargo_type; |
|
242 uint8 default_selection; |
|
243 IndustryType src_industry; |
|
244 IndustryType dst_industry; |
|
245 uint8 distance; |
|
246 AIConstructionEvent event; |
|
247 uint8 count; |
|
248 uint8 station_size; |
|
249 } generic; |
239 } u; |
250 } u; |
240 |
251 |
241 uint32 (*GetRandomBits)(const struct ResolverObject*); |
252 uint32 (*GetRandomBits)(const struct ResolverObject*); |
242 uint32 (*GetTriggers)(const struct ResolverObject*); |
253 uint32 (*GetTriggers)(const struct ResolverObject*); |
243 void (*SetTriggers)(const struct ResolverObject*, int); |
254 void (*SetTriggers)(const struct ResolverObject*, int); |