diff options
author | hackykid <hackykid@openttd.org> | 2005-06-01 11:34:37 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-06-01 11:34:37 +0000 |
commit | 351d7aaa9fd2fe1e5cd464130186727df38e646f (patch) | |
tree | 09bec4a6bd097d4449f7cfdff13cc475960d9703 /sprite.h | |
parent | d1c1a7cba725de322c2b7948db75fd83cdf77fe5 (diff) | |
download | openttd-351d7aaa9fd2fe1e5cd464130186727df38e646f.tar.xz |
(svn r2389) - Feature: [newgrf] Implement the mechanism for handling newgrf callbacks.
- Feature: [newgrf] Implement the 'refit capacity' callback.
Diffstat (limited to 'sprite.h')
-rw-r--r-- | sprite.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -107,10 +107,15 @@ typedef struct RandomizedSpriteGroup { SpriteGroup *groups; } RandomizedSpriteGroup; +typedef struct CallbackResultSpriteGroup { + uint16 result; +} CallbackResultSpriteGroup; + typedef enum SpriteGroupType { SGT_REAL, SGT_DETERMINISTIC, SGT_RANDOMIZED, + SGT_CALLBACK, } SpriteGroupType; struct SpriteGroup { @@ -120,6 +125,7 @@ struct SpriteGroup { RealSpriteGroup real; DeterministicSpriteGroup determ; RandomizedSpriteGroup random; + CallbackResultSpriteGroup callback; } g; }; |