arkdata

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RepoOwner          = "Kengxxiao"
	RepoName           = "ArknightsGameData"
	CompositeRepoOwner = "FlandiaYingman"
	CompositeRepoName  = "ArknightsGameDataComposite"
	DefaultPrefix      = "assets/torappu/dynamicassets"
)

Variables

View Source
var (

	// RepoCommitMessageRegex is for matching that a commit is a resource-updating commit.
	//
	// Examples:
	//   - [CN UPDATE] Client:2.0.01 Data:23-05-11-16-35-19-8a6fe7 [BOT TEST] - Match: CN, 2.0.01, 23-05-11-16-35-19-8a6fe7
	//   - [EN UPDATE] Client:15.9.01 Data:23-04-25-10-10-55-972129 - Match: EN, 15.9.01, 23-04-25-10-10-55-972129
	RepoCommitMessageRegex = regexp.MustCompile("\\[(CN|EN|JP|KR) UPDATE] Client:([.\\d]*) Data:([-\\w]*)")
)

Functions

func GetCompositeGameData

func GetCompositeGameData(ctx context.Context, server ark.Server, version ark.Version, patterns []string, dst string) error

func GetGameData

func GetGameData(ctx context.Context, server ark.Server, version ark.Version, patterns []string, dst string) error

Types

type DataInfo

type DataInfo struct {
	Name string
}

type DataVersion

type DataVersion struct {
	GameServer      ark.Server
	ClientVersion   string
	ResourceVersion string
	CommitSHA       string
}

func GetCompositeDataVersion

func GetCompositeDataVersion(ctx context.Context, server ark.Server, resVer string) (*DataVersion, error)

func GetDataVersion

func GetDataVersion(ctx context.Context, server ark.Server, resVer string) (*DataVersion, error)

func GetLatestCompositeDataVersion

func GetLatestCompositeDataVersion(ctx context.Context, server ark.Server) (*DataVersion, error)

func GetLatestDataVersion

func GetLatestDataVersion(ctx context.Context, server ark.Server) (*DataVersion, error)

Jump to

Keyboard shortcuts

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