public void OnGetBossPageInfoRes(short state, GetBossPageInfoRes msg = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (msg == null) { return; } List <int> list = new List <int>(); for (int i = 0; i < msg.bossLabelInfo.get_Count(); i++) { BossLabelInfo bossLabelInfo = msg.bossLabelInfo.get_Item(i); if (DataReader <BossBiaoQian> .Get(bossLabelInfo.labelId) != null) { BossItemInfo bossItemInfo = this.GetBossItemInfo(bossLabelInfo.labelId); if (bossItemInfo != null) { bossItemInfo.UpdateInfo(bossLabelInfo); list.Add(bossLabelInfo.labelId); } } } EventDispatcher.Broadcast <List <int> >(EventNames.BossBookPageUpdate, list); }
public void OnGetBossLabelInfoRes(short state, GetBossLabelInfoRes msg = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (msg == null) { return; } BossItemInfo bossItemInfo = this.GetBossItemInfo(msg.labelId); if (bossItemInfo != null) { bossItemInfo.UpdateInfo(msg.bossLabelInfo); } EventDispatcher.Broadcast <int>(EventNames.BossBookItemUpdate, msg.labelId); }