2007-06-11 11:50:49 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file grf.hpp Base for reading sprites from (New)GRFs. */
|
2007-06-11 11:50:49 +00:00
|
|
|
|
|
|
|
#ifndef SPRITELOADER_GRF_HPP
|
|
|
|
#define SPRITELOADER_GRF_HPP
|
|
|
|
|
|
|
|
#include "spriteloader.hpp"
|
|
|
|
|
|
|
|
class SpriteLoaderGrf : public SpriteLoader {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Load a sprite from the disk and return a sprite struct which is the same for all loaders.
|
|
|
|
*/
|
2008-09-02 15:20:38 +00:00
|
|
|
bool LoadSprite(SpriteLoader::Sprite *sprite, uint8 file_slot, size_t file_pos, SpriteType sprite_type);
|
2007-06-11 11:50:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* SPRITELOADER_GRF_HPP */
|