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