Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MagicPlugin = magicPlugin{ // contains filtered or unexported fields }
MagicPlugin is the exported plugin for this package
Functions ¶
This section is empty.
Types ¶
type CardNames ¶
type CardNames struct { // Names are the card names. Names []CardInfo // Counts is a map of card name to count (number of this card in the deck). Counts map[string]int }
CardNames contains the card names and their count.
func (*CardNames) InsertCount ¶
InsertCount inserts several new cards in a CardNames struct.
type CockatriceCard ¶
type CockatriceCard struct { XMLName xml.Name `xml:"card"` Number int `xml:"number,attr"` Name string `xml:"name,attr"` }
CockatriceCard represents a specific card in a Cockatrice deck file
type CockatriceDeck ¶
type CockatriceDeck struct { XMLName xml.Name `xml:"cockatrice_deck"` Version int `xml:"version,attr"` Name string `xml:"deckname"` Comments string `xml:"comments"` Zones []CockatriceZone `xml:"zone"` }
CockatriceDeck is the main tag in a Cockatrice deck file (.cod)
type CockatriceZone ¶
type CockatriceZone struct { XMLName xml.Name `xml:"zone"` Name string `xml:"name,attr"` Cards []CockatriceCard `xml:"card"` }
CockatriceZone is a Cockatrice deck zone (usually "main" or "side")
Click to show internal directories.
Click to hide internal directories.