示例#1
0
 public static CardEntity[] GetPlayerBoxCards <T>(this CardContext context, GameEntity playerEntity)
 {
     return(context.GetBoxCards()
            .Where(c => c.owner.Entity == playerEntity)
            .Where(boxCard => boxCard.ability.Ability is T)
            .ToArray());
 }