示例#1
0
void PlayerData::save(void) {
	GC::PlayerData::save();
	if (trainerGender > Female) trainerGender = Male;
	SV_FIELD_E(u8, trainerGender, 0x8e0, Gender);

	SV_FIELD(u32, money, 0x8e4);
	SV_FIELD(u32, pkCoupons, 0x8e8);
	SV_FIELD(u32, pkCoupons, 0x8ec);

	SV_SUBSTRUCTURE_ARRAY(Pokemon, party, 6, 0x30);
	SV_SUBSTRUCTURE(BagData, bag, 0x4c8);

}
void GroupBattleRule::save(void) {
	GC::GroupBattleRule::save();
	SV_FIELD_B(u8, revealDeoxysForm, 25);
	SV_FIELD(u16, nbPkm, 26);
	SV_FIELD_B(u16, isBattleOpen, 28);
	customName->save(data + 30, 25);
	SV_ARRAY_B(u8, bannedItems, 62, 82);
}
示例#3
0
void PlayerData::save(void) {
	GC::PlayerData::save();
	if (trainerGender > Female) trainerGender = Male;
	SV_FIELD_E(u8, trainerGender, 0x8e0, Gender);

	SV_FIELD_MAX(u32, pokeDollars, 0x8e4, 9999999);
	SV_FIELD_MAX(u32, pokeCoupons, 0x8e8, 9999999);
	SV_FIELD(u32, pokeCoupons, 0x8ec);

	SV_SUBSTRUCTURE(BagData, bag, 0x4c8);
	//0x94a: total step counter
}
示例#4
0
void PlayerData::save(void) {
	trainerName->save(data, 10);
	SV_FIELD(u16, SID, 0x2c);
	SV_FIELD(u16, TID, 0x2e);
}
void StrategyMemoData::save(void) {
	//if (nbEntries > 0x1f4) nbEntries = 0x1f4;
	SV_FIELD(u16, nbEntries, 0);
}