private void OnMeleeMachineSelection(CustomBattleSiegeMachineVM selectedSlot)
        {
            List <InquiryElement> inquiryElements = new List <InquiryElement>();

            inquiryElements.Add(new InquiryElement((object)null, GameTexts.FindText("str_empty").ToString(), (ImageIdentifier)null));
            foreach (SiegeEngineType attackerMeleeMachine in CustomBattleData.GetAllAttackerMeleeMachines())
            {
                inquiryElements.Add(new InquiryElement((object)attackerMeleeMachine, attackerMeleeMachine.Name.ToString(), (ImageIdentifier)null));
            }
            InformationManager.ShowMultiSelectionInquiry(new MultiSelectionInquiryData(new TextObject("{=MVOWsP48}Select a Melee Machine").ToString(), string.Empty, inquiryElements, false, 1, GameTexts.FindText("str_done").ToString(), "", (Action <List <InquiryElement> >)(selectedElements => selectedSlot.SetMachineType(selectedElements.First <InquiryElement>().Identifier as SiegeEngineType)), (Action <List <InquiryElement> >)null));
        }
        private void ExecuteRandomizeAttackerSiegeEngines()
        {
            List <SiegeEngineType> e = new List <SiegeEngineType>();

            e.AddRange(CustomBattleData.GetAllAttackerMeleeMachines());
            e.Add((SiegeEngineType)null);
            foreach (CustomBattleSiegeMachineVM attackerMeleeMachine in (Collection <CustomBattleSiegeMachineVM>) this._attackerMeleeMachines)
            {
                attackerMeleeMachine.SetMachineType(e.GetRandomElement <SiegeEngineType>());
            }
            e.Clear();
            e.AddRange(CustomBattleData.GetAllAttackerRangedMachines());
            e.Add((SiegeEngineType)null);
            foreach (CustomBattleSiegeMachineVM attackerRangedMachine in (Collection <CustomBattleSiegeMachineVM>) this._attackerRangedMachines)
            {
                attackerRangedMachine.SetMachineType(e.GetRandomElement <SiegeEngineType>());
            }
        }