1234567891011121314151617181920212223242526 |
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class ActMountMountListPushCtrl : MsgController<ActMountMountListPush>
- {
- 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);
- }
- }
- }
- }
- }
- }
|