profile

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyType

type BodyType int
const (
	BodyBoy BodyType = iota
	BodyGirl
	BodyMale
	BodyLady
	BodyLoli
)

type CharacterBase

type CharacterBase struct {
	Key      keys.Char          `json:"key"`
	Rarity   int                `json:"rarity"`
	Element  attributes.Element `json:"element"`
	Level    int                `json:"level"`
	MaxLevel int                `json:"max_level"`
	HP       float64            `json:"base_hp"`
	Atk      float64            `json:"base_atk"`
	Def      float64            `json:"base_def"`
	Cons     int                `json:"cons"`
	StartHP  float64            `json:"start_hp"`
}

type CharacterProfile

type CharacterProfile struct {
	Base         CharacterBase               `json:"base"`
	Weapon       weapon.WeaponProfile        `json:"weapon"`
	Talents      TalentProfile               `json:"talents"`
	Stats        []float64                   `json:"stats"`
	StatsByLabel map[string][]float64        `json:"stats_by_label"`
	Sets         Sets                        `json:"sets"`
	SetParams    map[keys.Set]map[string]int `json:"-"`
	Params       map[string]int              `json:"-"`
}

func (*CharacterProfile) Clone

type Sets

type Sets map[keys.Set]int

func (Sets) MarshalJSON

func (s Sets) MarshalJSON() ([]byte, error)

type TalentProfile

type TalentProfile struct {
	Attack int `json:"attack"`
	Skill  int `json:"skill"`
	Burst  int `json:"burst"`
}

type ZoneType

type ZoneType int
const (
	ZoneUnknown ZoneType = iota
	ZoneMondstadt
	ZoneLiyue
	ZoneInazuma
	ZoneSumeru
	ZoneSnezhnaya
)

Jump to

Keyboard shortcuts

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