data

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MATERIAL_URL = "https://gitlab.com/Dimbreath/AnimeGameData/-/raw/master/ExcelBinOutput/MaterialExcelConfigData.json"

Variables

This section is empty.

Functions

func GetGenshinCharactersJson

func GetGenshinCharactersJson() []byte

func GetGenshinNameCardJson

func GetGenshinNameCardJson() []byte

func GetGenshinProfileIdentifiersJson

func GetGenshinProfileIdentifiersJson() []byte

func GetStarRailAvatarJson

func GetStarRailAvatarJson() []byte

func GetStarRailCharacterJson

func GetStarRailCharacterJson() []byte

func GetStarRailLightconesJson

func GetStarRailLightconesJson() []byte

func GetStarRailRelicJson

func GetStarRailRelicJson() []byte

func NewMemoryCache

func NewMemoryCache(logger *slog.Logger) (*memoryCache, error)

Types

type EnkaData

type EnkaData interface {
	StarRailData() StarRailData
	GenshinData() GenshinData
}

func New

func New(log *slog.Logger) (EnkaData, error)

type GenshinData

type GenshinData interface {
	HasNameCard(int) bool
	NameCardName(int) *string
	ProfileIcon(string) string
	CharacterData(string) *genshin.CharacterData
	Characters() []*genshin.CharacterData
	Material(int) *genshin.RawMaterial
}

type StarRailData

type StarRailData interface {
	CharacterData(string) *starrail.CharacterData
	Characters() []*starrail.CharacterData
	AvatarKey(string) string
	RelicData(string) *starrail.RelicData
	LightConeData(string) *starrail.LightConeData
}

Jump to

Keyboard shortcuts

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