diff options
author | peter1138 <peter1138@openttd.org> | 2008-02-12 13:23:57 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-02-12 13:23:57 +0000 |
commit | 4d0c443953d5f12ab13620b53f0179556f01f9e9 (patch) | |
tree | 4c08b2e82cdcf9be813d4276fb3891ed14130483 /src/newgrf_spritegroup.h | |
parent | 9f6fd72c0981e2648eb23301d2a4aed23d38d63f (diff) | |
download | openttd-4d0c443953d5f12ab13620b53f0179556f01f9e9.tar.xz |
(svn r12122) -Codechange: Add framework for generic feature callbacks, along with some parts for AI use.
Diffstat (limited to 'src/newgrf_spritegroup.h')
-rw-r--r-- | src/newgrf_spritegroup.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h index 13199e0d1..f6507b4d2 100644 --- a/src/newgrf_spritegroup.h +++ b/src/newgrf_spritegroup.h @@ -10,6 +10,7 @@ #include "newgrf_storage.h" #include "core/bitmath_func.hpp" #include "gfx_type.h" +#include "newgrf_generic.h" /** * Gets the value of a so-called newgrf "register". @@ -236,6 +237,16 @@ struct ResolverObject { struct { const struct CargoSpec *cs; } cargo; + struct { + CargoID cargo_type; + uint8 default_selection; + IndustryType src_industry; + IndustryType dst_industry; + uint8 distance; + AIConstructionEvent event; + uint8 count; + uint8 station_size; + } generic; } u; uint32 (*GetRandomBits)(const struct ResolverObject*); |