Exemple #1
0
        public static async Task AnimateCardAsync <D>(this IEventAggregator thisE,
                                                      D thisCard, EnumAnimcationDirection direction, string tag
                                                      , BasicPileInfo <D>?pile1 = null, Action?finalAction = null) where D : class, IDeckObject, new()
        {
            AnimateCardInPileEventModel <D> thisA = new AnimateCardInPileEventModel <D>();

            thisA.Direction   = direction;
            thisA.FinalAction = finalAction;
            thisA.ThisCard    = thisCard;
            thisA.ThisPile    = pile1;
            await thisE.PublishAsync(thisA, tag, false);
        }
Exemple #2
0
 public static async Task AnimateDrawAsync <D>(this IEventAggregator thisE, D thisCard
                                               , EnumAnimcationDirection direction) where D : class, IDeckObject, new()
 {
     await thisE.AnimateCardAsync(thisCard, direction, "maindeck");
 }
Exemple #3
0
 public static async Task AnimatePlayAsync <D>(this IEventAggregator thisE, D thisCard,
                                               EnumAnimcationDirection direction, Action?finalAction = null) where D : class, IDeckObject, new()
 {
     await thisE.AnimateCardAsync(thisCard, direction, "maindiscard", finalAction : finalAction !);
 }
        public async Task AnimatePlayAsync(MilkRunCardInformation thisCard, EnumMilkType milk, EnumPileType pile, EnumAnimcationDirection direction)
        {
            BasicPileInfo <MilkRunCardInformation> tempPile;

            if (milk == EnumMilkType.Strawberry)
            {
                tempPile = StrawberryPiles !.PileList ![(int)pile - 1];