Mercurial > hg > openttd
annotate src/newgrf_industries.h @ 7102:5e6f06e130c3 draft
(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
author | belugas <belugas@openttd.org> |
---|---|
date | Thu, 28 Jun 2007 02:14:40 +0000 |
parents | a5528f6005e9 |
children | f0216e74951d |
rev | line source |
---|---|
6835
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
1 /* $Id$ */ |
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
2 |
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
3 /** @file newgrf_industries.h */ |
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
4 |
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
5 #ifndef NEWGRF_INDUSTRIES_H |
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
6 #define NEWGRF_INDUSTRIES_H |
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
7 |
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
8 #include "industry.h" |
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
9 #include "newgrf_spritegroup.h" |
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
10 |
6884
a5528f6005e9
(svn r10127) -Add: Addition of basic structure for industry tiles callbacks (unfinished).
belugas <belugas@openttd.org>
parents:
6868
diff
changeset
|
11 /* in newgrf_industry.cpp */ |
6835
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
12 uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available); |
7102
5e6f06e130c3
(svn r10369) -Codechange: Add the IndustryType parameter to the GetIndustryCallback function.
belugas <belugas@openttd.org>
parents:
6884
diff
changeset
|
13 uint16 GetIndustryCallback(uint16 callback, uint32 param1, uint32 param2, Industry *industry, IndustryType type, TileIndex tile); |
6868
c0bb9eee78b1
(svn r10108) -Codechange: implement variable 0x60 (Get industry tile ID at offset) for industries.
belugas <belugas@openttd.org>
parents:
6835
diff
changeset
|
14 uint32 GetIndustryIDAtOffset(TileIndex new_tile, TileIndex old_tile, const Industry *i); |
6835
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
15 |
6884
a5528f6005e9
(svn r10127) -Add: Addition of basic structure for industry tiles callbacks (unfinished).
belugas <belugas@openttd.org>
parents:
6868
diff
changeset
|
16 /* in newgrf_industrytiles.cpp*/ |
a5528f6005e9
(svn r10127) -Add: Addition of basic structure for industry tiles callbacks (unfinished).
belugas <belugas@openttd.org>
parents:
6868
diff
changeset
|
17 uint32 IndustryTileGetRandomBits(const ResolverObject *object); |
a5528f6005e9
(svn r10127) -Add: Addition of basic structure for industry tiles callbacks (unfinished).
belugas <belugas@openttd.org>
parents:
6868
diff
changeset
|
18 uint32 IndustryTileGetTriggers(const ResolverObject *object); |
a5528f6005e9
(svn r10127) -Add: Addition of basic structure for industry tiles callbacks (unfinished).
belugas <belugas@openttd.org>
parents:
6868
diff
changeset
|
19 void IndustryTileSetTriggers(const ResolverObject *object, int triggers); |
a5528f6005e9
(svn r10127) -Add: Addition of basic structure for industry tiles callbacks (unfinished).
belugas <belugas@openttd.org>
parents:
6868
diff
changeset
|
20 |
6835
802a065d3d21
(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
belugas <belugas@openttd.org>
parents:
diff
changeset
|
21 #endif /* NEWGRF_INDUSTRIES_H */ |