models

package
v1.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card interface {
	IsCard()
}

type Command

type Command struct {
	ID           string   `json:"id"`
	CardType     string   `json:"cardType"`
	CardSubType  string   `json:"cardSubType"`
	Name         string   `json:"name"`
	Requirements []string `json:"requirements"`
	Icon         string   `json:"icon"`
	Image        string   `json:"image"`
	Commander    string   `json:"commander"`
	Faction      string   `json:"faction"`
	Keywords     []string `json:"keywords"`
	Pips         int      `json:"pips"`
	Orders       string   `json:"orders"`
	Weapon       *Weapon  `json:"weapon"`
	Text         string   `json:"text"`
}

func (Command) IsCard

func (Command) IsCard()

type Dice added in v1.1.0

type Dice struct {
	Black int `json:"black"`
	Red   int `json:"red"`
	White int `json:"white"`
}

type Keyword

type Keyword struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}
type Link struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type LinkGroup

type LinkGroup struct {
	Name  string  `json:"name"`
	Links []*Link `json:"links"`
}

type Range added in v1.1.0

type Range struct {
	From int `json:"from"`
	To   int `json:"to"`
}

type Surge added in v1.1.0

type Surge struct {
	Attack  string `json:"attack"`
	Defense string `json:"defense"`
}

type Unit

type Unit struct {
	ID           string     `json:"id"`
	Name         string     `json:"name"`
	CardType     string     `json:"cardType"`
	CardSubType  string     `json:"cardSubType"`
	Icon         string     `json:"icon"`
	Image        string     `json:"image"`
	Requirements []string   `json:"requirements"`
	Unique       bool       `json:"unique"`
	Cost         int        `json:"cost"`
	Rank         string     `json:"rank"`
	Faction      string     `json:"faction"`
	Slots        []string   `json:"slots"`
	Keywords     []string   `json:"keywords"`
	CommandCards []*Command `json:"commandCards"`
	Wounds       int        `json:"wounds"`
	Courage      *int       `json:"courage"`
	Resilience   *int       `json:"resilience"`
	Defense      string     `json:"defense"`
	Entourage    []string   `json:"entourage"`
	Surge        *Surge     `json:"surge"`
	Weapons      []*Weapon  `json:"weapons"`
}

func (Unit) IsCard

func (Unit) IsCard()

type Upgrade

type Upgrade struct {
	ID                 string   `json:"id"`
	CardType           string   `json:"cardType"`
	CardSubType        string   `json:"cardSubType"`
	Name               string   `json:"name"`
	Requirements       []string `json:"requirements"`
	Icon               string   `json:"icon"`
	Image              string   `json:"image"`
	Unique             bool     `json:"unique"`
	Cost               int      `json:"cost"`
	Keywords           []string `json:"keywords"`
	Exhaust            bool     `json:"exhaust"`
	Weapon             *Weapon  `json:"weapon"`
	UnitTypeExclusions []string `json:"unitTypeExclusions"`
	Text               string   `json:"text"`
}

func (Upgrade) IsCard

func (Upgrade) IsCard()

type Weapon added in v1.1.0

type Weapon struct {
	Name     string   `json:"name"`
	Range    *Range   `json:"range"`
	Keywords []string `json:"keywords"`
	Dice     *Dice    `json:"dice"`
	Surge    *Surge   `json:"surge"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL