using XGame.Framework.Network; namespace FL.Network { public class ActMountMountListPushCtrl : MsgController { protected override void OnProcess(ActMountMountListPush message, object context) { if (message.mountList?.Count > 0) { var advancedMountsMap = MountData.Instance.AdvancedMountsMap; foreach (var item in message.mountList) { if (advancedMountsMap.ContainsKey(item.mountId)) { advancedMountsMap[item.mountId] = item.star; } else { advancedMountsMap.Add(item.mountId, item.star); } } } } } }