13 lines
255 B
Go
13 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
|
||
|
}
|