internals

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LastFM *lastfm.Api

LastFM points to an instance of LastFM API client.

Functions

func AdvanceExperience

func AdvanceExperience(context *multiplexer.Context)

AdvanceExperience advances experience of author.

func ExpToLevel added in v1.9.1

func ExpToLevel(exp int) int

ExpToLevel calculates amount of levels from an experience integer.

func LevelToExp added in v1.9.1

func LevelToExp(level int) int

LevelToExp calculates amount of experience from a level integer.

Types

type CharacterArt

type CharacterArt struct {
	ImageURL  string
	SourceURL string
	Character CharacterInfo
}

CharacterArt represents a piece of artwork of a character.

type CharacterInfo

type CharacterInfo struct {
	Color        int
	FriendlyName string
	SearchString string
}

CharacterInfo represents information on a character.

func CharacterList

func CharacterList() []CharacterInfo

CharacterList returns a slice of CharacterInfo.

Jump to

Keyboard shortcuts

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