summaryrefslogtreecommitdiff
path: root/sprite.h
diff options
context:
space:
mode:
authorhackykid <hackykid@openttd.org>2005-06-01 11:34:37 +0000
committerhackykid <hackykid@openttd.org>2005-06-01 11:34:37 +0000
commit799e1f5c50662cfa334e2b759925badf70bf5b0d (patch)
tree09bec4a6bd097d4449f7cfdff13cc475960d9703 /sprite.h
parent80cbf3a0ee154d76592b5c7e9b1f8c997cfc60d4 (diff)
downloadopenttd-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sprite.h b/sprite.h
index bbe797d32..18d75d6a2 100644
--- a/sprite.h
+++ b/sprite.h
@@ -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;
};