void Serialize(Serializer::Writer &wr) { s_criminalRecord.Serialize(wr); s_outstandingFine.Serialize(wr); for (int i=0; i<BLOC_MAX; i++) { wr.Int64(s_playerPerBlocCrimeRecord[i].record); wr.Int64(s_playerPerBlocCrimeRecord[i].fine); } }
void Serialize(Serializer::Writer &wr) { s_criminalRecord.Serialize(wr); s_outstandingFine.Serialize(wr); wr.Int32(s_playerPerBlocCrimeRecord.size()); for (Uint32 i=0; i < s_playerPerBlocCrimeRecord.size(); i++) { wr.Int64(s_playerPerBlocCrimeRecord[i].record); wr.Int64(s_playerPerBlocCrimeRecord[i].fine); } }
void MarketAgent::Save(Serializer::Writer &wr) const { wr.Int64(m_money); }