public static CardEntity[] GetPlayerResourceCardsIncludeBox(this CardContext context, GameEntity playerEntity) { return(context.GetResourceCards() .Where(c => c.hasOwner && c.owner.Entity == playerEntity) .ToArray()); }