public void OnAllPetData(stUserDataPetUserCmd_S cmd) { PetUserData userData = cmd.data; PetDataManager pm = DataManager.Manager <PetDataManager>(); pm.maxPetNum = userData.max_pet; for (int i = 0; i < userData.pet_list.Count; ++i) { AddPet(userData.pet_list[i]); } pm.HasPossessPetList = userData.pet_atlas; pm.SetQuickList(cmd.data.quick_list); pm.OnFirstForceFightPetUser(userData.first_force_fight); }
public void OnFirstForceFightPetUser(stFirstForceFightPetUserCmd_CS cmd) { PetDataManager pm = DataManager.Manager <PetDataManager>(); pm.OnFirstForceFightPetUser(cmd.force_fight); }