void Unserialize(Serializer::Reader &rd) { Init(); PersistSystemData<Sint64>::Unserialize(rd, &s_criminalRecord); PersistSystemData<Sint64>::Unserialize(rd, &s_outstandingFine); for (int i=0; i<BLOC_MAX; i++) { s_playerPerBlocCrimeRecord[i].record = rd.Int64(); s_playerPerBlocCrimeRecord[i].fine = rd.Int64(); } }
void Unserialize(Serializer::Reader &rd) { Init(); PersistSystemData<Sint64>::Unserialize(rd, &s_criminalRecord); PersistSystemData<Sint64>::Unserialize(rd, &s_outstandingFine); const Uint32 numFactions = rd.Int32(); assert(s_playerPerBlocCrimeRecord.size() == numFactions); for (Uint32 i=0; i < numFactions; i++) { s_playerPerBlocCrimeRecord[i].record = rd.Int64(); s_playerPerBlocCrimeRecord[i].fine = rd.Int64(); } }
void MarketAgent::Load(Serializer::Reader &rd) { m_money = rd.Int64(); }