卡牌更新
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Continentis.MainGame.Commands;
|
||||
@@ -10,6 +11,7 @@ namespace Continentis.MainGame.Card
|
||||
public class CardLogicComponent_SelectCustomCards : CardLogicComponentBase
|
||||
{
|
||||
public List<CardInstance> selectedCards;
|
||||
public Action<CardInstance> selectEffect;
|
||||
|
||||
/// <summary>
|
||||
/// 添加选择手牌的指令
|
||||
@@ -24,24 +26,16 @@ namespace Continentis.MainGame.Card
|
||||
selectedCards = new List<CardInstance>();
|
||||
CustomCardSelectionInterface customCardSelector = CombatUIManager.Instance.combatMainPage.customCardSelector;
|
||||
|
||||
commandGroup.AddCommand(new Cmd_Function(() =>
|
||||
commandGroup.AddCommand(Cmd.Do(() =>
|
||||
{
|
||||
customCardSelector.Setup(title, mainLogic.card, cardsToSelect, maxSelection, forceMax);
|
||||
}));
|
||||
commandGroup.AddCommand(new Cmd_WaitForUI(customCardSelector));
|
||||
commandGroup.AddCommand(new Cmd_Function(() =>
|
||||
commandGroup.AddCommand(Cmd.Do(() =>
|
||||
{
|
||||
selectedCards = customCardSelector.selectedCards.ToList();
|
||||
selectedCards.ForEach(SelectEffect);
|
||||
selectedCards.ForEach(selectEffect);
|
||||
}));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 卡牌被选择后的效果
|
||||
/// </summary>
|
||||
public void SelectEffect(CardInstance card)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user