2007-06-11 11:50:49 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
|
|
|
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
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"
|
|
|
|
|
2011-01-22 09:53:15 +00:00
|
|
|
/** Sprite loader for graphics coming from a (New)GRF. */
|
2007-06-11 11:50:49 +00:00
|
|
|
class SpriteLoaderGrf : public SpriteLoader {
|
2012-02-04 13:29:04 +00:00
|
|
|
byte container_ver;
|
2007-06-11 11:50:49 +00:00
|
|
|
public:
|
2012-02-04 13:29:04 +00:00
|
|
|
SpriteLoaderGrf(byte container_ver) : container_ver(container_ver) {}
|
2012-02-04 13:29:13 +00:00
|
|
|
uint8 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 */
|