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 newgrf_cargo.h Cargo support for NewGRFs. */
|
2007-03-21 03:06:21 +00:00
|
|
|
|
2006-05-18 02:43:23 +00:00
|
|
|
#ifndef NEWGRF_CARGO_H
|
|
|
|
#define NEWGRF_CARGO_H
|
|
|
|
|
2007-07-25 19:06:29 +00:00
|
|
|
#include "newgrf_callbacks.h"
|
2007-12-21 22:50:51 +00:00
|
|
|
#include "cargo_type.h"
|
2008-01-13 01:21:35 +00:00
|
|
|
#include "gfx_type.h"
|
2007-07-25 19:06:29 +00:00
|
|
|
|
2007-02-24 23:36:40 +00:00
|
|
|
static const CargoID CT_DEFAULT = NUM_CARGO + 0;
|
|
|
|
static const CargoID CT_PURCHASE = NUM_CARGO + 1;
|
|
|
|
static const CargoID CT_DEFAULT_NA = NUM_CARGO + 2;
|
2006-05-18 02:43:23 +00:00
|
|
|
|
2007-04-13 19:32:18 +00:00
|
|
|
/* Forward declarations of structs used */
|
2007-03-24 16:09:39 +00:00
|
|
|
struct CargoSpec;
|
2007-04-13 19:32:18 +00:00
|
|
|
struct GRFFile;
|
2007-03-23 20:55:45 +00:00
|
|
|
|
|
|
|
SpriteID GetCustomCargoSprite(const CargoSpec *cs);
|
2007-07-25 19:06:29 +00:00
|
|
|
uint16 GetCargoCallback(CallbackID callback, uint32 param1, uint32 param2, const CargoSpec *cs);
|
2007-10-13 02:23:11 +00:00
|
|
|
CargoID GetCargoTranslation(uint8 cargo, const GRFFile *grffile, bool usebit = false);
|
2007-03-23 20:55:45 +00:00
|
|
|
|
2006-05-18 02:43:23 +00:00
|
|
|
#endif /* NEWGRF_CARGO_H */
|