Creates a list of cargos that the given industry can produce. More...
#include <script_cargolist.hpp>
Public Member Functions | |
ScriptCargoList_IndustryProducing (IndustryID industry_id) |
Creates a list of cargos that the given industry can produce.
ai
Definition at line 47 of file script_cargolist.hpp.
ScriptCargoList_IndustryProducing::ScriptCargoList_IndustryProducing | ( | IndustryID | industry_id | ) |
industry_id | The industry to get the list of cargos it produces from. |
Definition at line 41 of file script_cargolist.cpp.
References ScriptList::AddItem(), CT_INVALID, Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_industry_pool >::Get(), ScriptIndustry::IsValidIndustry(), lengthof, and Industry::produced_cargo.