using XGame.Framework.Network; namespace FL.Network { public class ActMountBuweiPushCtrl : MsgController { protected override void OnProcess(ActMountBuweiPush message, object context) { if (message.buwei?.Count > 0) { var mountsPartsMap = MountData.Instance.MountsPartsMap; foreach (var item in message.buwei) { if (mountsPartsMap.ContainsKey(item.bwId)) { mountsPartsMap[item.bwId] = item.level; } else { mountsPartsMap.Add(item.bwId, item.level); } } } } } }