void PCData::loadFields(void) { boxes = new GC::PokemonBox*[nbBoxes]; LD_SUBSTRUCTURE_ARRAY(PokemonBox, boxes, 3, 0); for (size_t i = 0; i < 235; ++i) items[i].load(data + 0x6dec + 4*i); }
void PlayerData::loadFields(void) { GC::PlayerData::loadFields(); LD_FIELD_E(u8, trainerGender, 0x8e0, Gender); if (trainerGender > Female) trainerGender = Male; LD_FIELD(u32, money, 0x8e4); LD_FIELD(u32, pkCoupons, 0x8e8); LD_SUBSTRUCTURE_ARRAY(Pokemon, party, 6, 0x30); LD_SUBSTRUCTURE(BagData, bag, 0x4c8); }