draft/mlp/utils.go
Hamcha ac1ae4f506
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Expose "ToDraft"
2019-06-26 12:14:46 +02:00

12 lines
255 B
Go

package mlp
import "git.fromouter.space/mcg/draft"
// Converts multiple mlp.Card to draft.Card
func ToDraft(cards []Card) []draft.Card {
out := make([]draft.Card, len(cards))
for i, card := range cards {
out[i] = card.ToDraftCard()
}
return out
}