Ejemplo n.º 1
0
        private static void DeathDropRun(GameSession.ToSyncDropResponse message)
        {
            GameSession.ToSyncDropResponse.Types.Success success = message.Success;
            if (success != null)
            {
                DeathDrop deathDrop = success.Success_.DeathDrop;
                if (deathDrop != null)
                {
                    ///Debug.LogError("DropHandlerdeathDrop.DropList:" + deathDrop.DropList);
                    List <DropInfo> myDropList = new List <DropInfo>();
                    foreach (var item in deathDrop.DropList)
                    {
                        var dInfo = new DropInfo();
                        dInfo.PlayerUid = item.PlayerUid;
                        dInfo.ChestTid  = item.ChestTid;
                        dInfo.ShipTlv   = item.ShipTlv;
                        dInfo.Quality   = item.Quality;
                        myDropList.Add(dInfo);
                    }

                    Debug.Log($"ToSyncDropResponse:DeathDropRun->heroid = {deathDrop.HeroID} myDropList.Count = {myDropList.Count}");

                    if (myDropList != null && myDropList.Count > 0)
                    {
                        DropItemManager.Instance.SetDropItemInfoByDeath(deathDrop.HeroID, myDropList);
                    }
                }
            }
        }
Ejemplo n.º 2
0
 private static void PersonalDropRun(GameSession.ToSyncDropResponse message)
 {
     GameSession.ToSyncDropResponse.Types.Success success = message.Success;
     if (success != null)
     {
         s2cSyncPersonalDrop personalDrop = success.Success_.PersonalDrop;
         if (personalDrop != null)
         {
             Debug.Log($"ToSyncDropResponse:PersonalDropRun");
             MineDropItemManager.Instance.CreateDropItemByRespond(personalDrop);
         }
     }
 }
Ejemplo n.º 3
0
 private static void PersonalDropResultRun(GameSession.ToSyncDropResponse message)
 {
     GameSession.ToSyncDropResponse.Types.Success success = message.Success;
     if (success != null)
     {
         s2c_NotifyPersonalDropResult result = success.Success_.NotifyPersonalDrop;
         if (result != null)
         {
             if (result.Result)
             {
                 string key = result.MapId.ToString() + result.AreaUid.ToString() + result.NpcUid.ToString();
                 Debug.Log($"ToSyncDropResponse:PersonalDropResultRun key = {key}");
                 MineDropItemManager.Instance.NotifyDropResult(key);
             }
         }
     }
 }