12345678910111213141516171819202122 |
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class ActEquipLsPushCtrl : MsgController<ActEquipLsPush>
- {
- protected override void OnProcess(ActEquipLsPush message, object context)
- {
- // 装备背包数据
- EquipData.Instance.ClearEquipBag();
- if (message == null || message?.list.Count == 0) return;
- foreach (var item in message.list)
- {
- if (item != null)
- {
- EquipData.Instance.AddEquip(EquipData.Instance.GetDropEquipData(item));
- }
- }
- }
- }
- }
|