From 799e1f5c50662cfa334e2b759925badf70bf5b0d Mon Sep 17 00:00:00 2001 From: hackykid Date: Wed, 1 Jun 2005 11:34:37 +0000 Subject: (svn r2389) - Feature: [newgrf] Implement the mechanism for handling newgrf callbacks. - Feature: [newgrf] Implement the 'refit capacity' callback. --- sprite.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sprite.h') 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; }; -- cgit v1.2.3-54-g00ecf