EquipIntoLsResponseCtrl.cs 657 B

12345678910111213141516171819202122
  1. using FL.FGUI;
  2. using XGame.Framework.Network;
  3. using XGame.Framework.UI;
  4. namespace FL.Network
  5. {
  6. public class EquipIntoLsResponseCtrl : MsgController<EquipIntoLsResponse>
  7. {
  8. protected override void OnProcess(EquipIntoLsResponse message, object context)
  9. {
  10. if (message?.code == 0)
  11. {
  12. if (EquipData.Instance.IsEquipbagEmpty())
  13. EventSingle.Instance.Notify(EventDefine.ShowTips, StringDefine.temporaryEquipEmpty);
  14. else
  15. {
  16. EventSingle.Instance.Notify(EventDefine.OpenEquipBag);
  17. }
  18. }
  19. }
  20. }
  21. }