- // Examine cargo types of the game.
- function FMainClass::ExamineCargoes()
- {
- this.cargoes = {};
- this.num_cargoes = 0;
- for (local cid = 0; cid < 32; cid += 1) {
- if (!GSCargo.IsValidCargo(cid)) continue;
- local is_freight = GSCargo.IsFreight(cid);
- local town_effect = GSCargo.GetTownEffect(cid);
- cargoes[num_cargoes] <- {cid=cid, freight=is_freight, effect=town_effect};
- num_cargoes += 1;
- }
- }