Esempio n. 1
0
    public void SendAllDieInfos()
    {
        if (DieMechList.Count == 0)
        {
            return;
        }
        List <int> tmp = new List <int>();

        foreach (int id in DieMechList)
        {
            tmp.Add(id);
        }

        tmp.Sort();

        PlayerA.BattleGroundManager.RemoveMechs(tmp);
        PlayerB.BattleGroundManager.RemoveMechs(tmp);

        MechDieRequest request1 = new MechDieRequest(tmp);

        Broadcast_AddRequestToOperationResponse(request1);
        BattleGroundRemoveMechRequest request2 = new BattleGroundRemoveMechRequest(tmp);

        Broadcast_AddRequestToOperationResponse(request2);
        DieMechList.Clear();
    }
Esempio n. 2
0
 private void OnBattleGroundRemoveMech_PrePass(BattleGroundRemoveMechRequest r)
 {
     foreach (int mechId in r.mechIds)
     {
         if (SelfClientPlayer.BattlePlayer.BattleGroundManager.GetMech(mechId) != null)
         {
             SelfClientPlayer.BattlePlayer.BattleGroundManager.RemoveMechTogetherAdd(mechId);
         }
         else if (EnemyClientPlayer.BattlePlayer.BattleGroundManager.GetMech(mechId) != null)
         {
             EnemyClientPlayer.BattlePlayer.BattleGroundManager.RemoveMechTogetherAdd(mechId);
         }
     }
 }
Esempio n. 3
0
 private void OnBattleGroundRemoveMech(BattleGroundRemoveMechRequest r)
 {
     BattleEffectsManager.Instance.Effect_Main.EffectsShow(Co_MechRemoveFromBattleGround_Logic(r.mechIds), "Co_MechRemoveFromBattleGround_Logic");
     SelfClientPlayer.BattlePlayer.BattleGroundManager.RemoveMechTogatherEnd();
     EnemyClientPlayer.BattlePlayer.BattleGroundManager.RemoveMechTogatherEnd();
 }