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 | 799e1f5c50662cfa334e2b759925badf70bf5b0d (patch) | |
tree | 09bec4a6bd097d4449f7cfdff13cc475960d9703 /sprite.h | |
parent | 80cbf3a0ee154d76592b5c7e9b1f8c997cfc60d4 (diff) | |
download | openttd-799e1f5c50662cfa334e2b759925badf70bf5b0d.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; }; |