public static void AutoBatch()
    {
        clTempBattlePos[] autoBatchPos = SoldierBatch_SolList.GetAutoBatchPos(SoldierBatch_AutoBatchTool.GetMaxBatchCount(), SoldierBatch.SOLDIER_BATCH_MODE, null);
        if (autoBatchPos == null)
        {
            return;
        }
        Queue <long> queue = new Queue <long>();

        for (int i = 0; i < autoBatchPos.Length; i++)
        {
            queue.Enqueue(autoBatchPos[i].m_nSolID);
        }
        SoldierBatch_AutoBatchTool.BatchSoldiers(queue);
    }
        public void YesClick_CompleteCombination(object obj)
        {
            SolCombinationInfo_Data solCombinationInfo_Data = (SolCombinationInfo_Data)obj;

            if (solCombinationInfo_Data == null)
            {
                return;
            }
            Queue <long>  queue = new Queue <long>();
            List <string> solCombinationCharCodeList = solCombinationInfo_Data.GetSolCombinationCharCodeList();

            foreach (string current in solCombinationCharCodeList)
            {
                int charKindByCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(current);

                long num = 0L;
                if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_MINE_MAKEUP)
                {
                    num = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetBestPowerSoldierID_InMineBattlePossibleSol(charKindByCode);
                }
                else if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_NEWEXPLORATION)
                {
                    List <NkSoldierInfo> solList = SoldierBatch_SolList.GetSolList(eSOLDIER_BATCH_MODE.MODE_NEWEXPLORATION);
                    if (solList != null)
                    {
                        foreach (NkSoldierInfo current2 in solList)
                        {
                            if (current2.GetCharKind() == charKindByCode)
                            {
                                num = current2.GetSolID();
                                break;
                            }
                        }
                    }
                }
                else
                {
                    num = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetBestPowerSoldierID_InBattleReadyAndReadySol(charKindByCode);
                }
                if (num != 0L)
                {
                    queue.Enqueue(num);
                }
            }
            SoldierBatch_AutoBatchTool.BatchSoldiers(queue);
        }