10 #include "../stdafx.h"
15 #include "../industry.h"
18 #include "../safeguards.h"
24 inline static const SaveLoad description[] = {
31 void Save(
Industry *i)
const override
40 void Load(
Industry *i)
const override
45 if (--len > i->
accepted.size())
break;
62 inline static const SaveLoad description[] = {
66 inline const static SaveLoadCompatTable compat_description = _industry_produced_history_sl_compat;
88 if (--len > p->
history.size())
break;
96 inline static const SaveLoad description[] = {
104 void Save(
Industry *i)
const override
113 void Load(
Industry *i)
const override
118 if (--len > i->
produced.size())
break;
141 static const SaveLoad _industry_desc[] = {
206 SlSetArrayIndex(ind->index);
211 void LoadMoveAcceptsProduced(
Industry *i)
const
215 a.cargo = SlIndustryAccepted::old_cargo[j];
216 a.waiting = SlIndustryAccepted::old_waiting[j];
217 a.last_accepted = SlIndustryAccepted::old_last_accepted[j];
222 p.cargo = SlIndustryProduced::old_cargo[j];
223 p.waiting = SlIndustryProduced::old_waiting[j];
224 p.rate = SlIndustryProduced::old_rate[j];
225 p.history[THIS_MONTH].production = SlIndustryProduced::old_this_month_production[j];
226 p.history[THIS_MONTH].transported = SlIndustryProduced::old_this_month_transported[j];
227 p.history[LAST_MONTH].production = SlIndustryProduced::old_last_month_production[j];
228 p.history[LAST_MONTH].transported = SlIndustryProduced::old_last_month_transported[j];
249 std::copy(std::begin(_old_ind_persistent_storage.
storage), std::end(_old_ind_persistent_storage.
storage), std::begin(i->
psa->
storage));
350 extern const ChunkHandlerTable _industry_chunk_handlers(industry_chunk_handlers);