Files
@ r7102:73f11fdf011b
Branch filter:
Location: cpp/openttd-patchpack/source/src/newgrf_industries.h - annotation
r7102:73f11fdf011b
780 B
text/x-c
(svn r10369) -Codechange: Add the IndustryType parameter to the GetIndustryCallback function.
Sometimes, the industry might not be able to provide its type, since it does not exists at all
Sometimes, the industry might not be able to provide its type, since it does not exists at all
r6835:9051f7024392 r6835:9051f7024392 r6835:9051f7024392 r6835:9051f7024392 r6835:9051f7024392 r6835:9051f7024392 r6835:9051f7024392 r6835:9051f7024392 r6835:9051f7024392 r6835:9051f7024392 r6884:06c993c360e4 r6835:9051f7024392 r7102:73f11fdf011b r6868:aab228767f55 r6835:9051f7024392 r6884:06c993c360e4 r6884:06c993c360e4 r6884:06c993c360e4 r6884:06c993c360e4 r6884:06c993c360e4 r6835:9051f7024392 | /* $Id$ */
/** @file newgrf_industries.h */
#ifndef NEWGRF_INDUSTRIES_H
#define NEWGRF_INDUSTRIES_H
#include "industry.h"
#include "newgrf_spritegroup.h"
/* in newgrf_industry.cpp */
uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available);
uint16 GetIndustryCallback(uint16 callback, uint32 param1, uint32 param2, Industry *industry, IndustryType type, TileIndex tile);
uint32 GetIndustryIDAtOffset(TileIndex new_tile, TileIndex old_tile, const Industry *i);
/* in newgrf_industrytiles.cpp*/
uint32 IndustryTileGetRandomBits(const ResolverObject *object);
uint32 IndustryTileGetTriggers(const ResolverObject *object);
void IndustryTileSetTriggers(const ResolverObject *object, int triggers);
#endif /* NEWGRF_INDUSTRIES_H */
|