(svn r20353) -Add: [NewGRF] Support for callback 0x147 ("add sprite offset") for canals.

This commit is contained in:
michi_cc
2010-08-03 17:48:07 +00:00
parent 33ab403be8
commit 95f5ad8c79
3 changed files with 111 additions and 32 deletions

View File

@@ -15,6 +15,7 @@
#include "gfx_type.h"
#include "tile_type.h"
#include "newgrf_generic.h"
#include "newgrf_callbacks.h"
/**
* List of different canal 'features'.
@@ -57,4 +58,7 @@ extern WaterFeature _water_feature[CF_END];
*/
SpriteID GetCanalSprite(CanalFeature feature, TileIndex tile);
uint16 GetCanalCallback(CallbackID callback, uint32 param1, uint32 param2, CanalFeature feature, TileIndex tile);
uint GetCanalSpriteOffset(CanalFeature feature, TileIndex tile, uint cur_offset);
#endif /* NEWGRF_CANAL_H */