ddragon

package
v0.0.0-...-ac6c325 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2016 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchUrl

func FetchUrl(loc string) []byte

Types

type DDChampion

type DDChampion struct {
	Id        int
	Name      string
	ImageUrl  string
	SplashUrl string
	Sprite    DDSprite
}

type DDItem

type DDItem struct {
	Id       int
	Name     string
	ImageUrl string
	Sprite   DDSprite
}

type DDSprite

type DDSprite struct {
	Url string
	X   int
	Y   int
	W   int
	H   int
}

type DDSpriteSheet

type DDSpriteSheet struct {
	Url string
	H   int
	W   int
}

type DDSummoner

type DDSummoner struct {
	Id       int
	Name     string
	ImageUrl string
	Sprite   DDSprite
}

type DDragon

type DDragon struct {
	Debug    io.Writer
	Region   string
	Version  string
	Language string
	CdnRoot  string

	Items        map[int]DDItem
	Champions    map[int]DDChampion
	Summoners    map[int]DDSummoner
	SpriteSheets map[string]DDSpriteSheet
}

func NewDDragon

func NewDDragon(region string, debug io.Writer) *DDragon

func (*DDragon) AddSpriteSheet

func (dd *DDragon) AddSpriteSheet(url string)

func (*DDragon) Debugf

func (dd *DDragon) Debugf(format string, args ...interface{})

func (*DDragon) ParseChampionJson

func (dd *DDragon) ParseChampionJson(jsonData []byte)

func (*DDragon) ParseItemJson

func (dd *DDragon) ParseItemJson(jsonData []byte)

func (*DDragon) ParseSummonerJson

func (dd *DDragon) ParseSummonerJson(jsonData []byte)

func (*DDragon) ParseVersionJson

func (dd *DDragon) ParseVersionJson(jsonData []byte)

func (*DDragon) UrlBase

func (dd *DDragon) UrlBase() string

func (*DDragon) UrlChampionImage

func (dd *DDragon) UrlChampionImage(filename string) string

func (*DDragon) UrlChampionJson

func (dd *DDragon) UrlChampionJson() string

func (*DDragon) UrlItemImage

func (dd *DDragon) UrlItemImage(filename string) string

func (*DDragon) UrlItemJson

func (dd *DDragon) UrlItemJson() string

func (*DDragon) UrlSprite

func (dd *DDragon) UrlSprite(filename string) string

func (*DDragon) UrlSummonerImage

func (dd *DDragon) UrlSummonerImage(filename string) string

func (*DDragon) UrlSummonerJson

func (dd *DDragon) UrlSummonerJson() string

func (*DDragon) UrlVersionJson

func (dd *DDragon) UrlVersionJson() string

Jump to

Keyboard shortcuts

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