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