Documentation ¶
Index ¶
- Constants
- func GetGameAssets(ctx context.Context, version ark.Version, dst string, patterns []string) error
- func GetLatestVersion() (string, error)
- func GetResURL(resVersion string, res string) string
- func UpdateGameAssets(ctx context.Context, oldResVer string, newResVer string, dst string, ...) error
- type AbInfo
- type FullPack
- type HotUpdateList
- type Info
- type PackInfo
- type Version
Constants ¶
View Source
const (
AssetBaseUrl = "https://ak.hycdn.cn/assetbundle/official/Android/assets"
)
Variables ¶
This section is empty.
Functions ¶
func GetGameAssets ¶
func GetLatestVersion ¶
Types ¶
type HotUpdateList ¶
type HotUpdateList struct { FullPack FullPack `json:"fullPack"` VersionID string `json:"versionId"` AbInfos []AbInfo `json:"abInfos"` CountOfTypedRes int `json:"countOfTypedRes"` PackInfos []PackInfo `json:"packInfos"` }
HotUpdateList represents a raw response of "https://ak.hycdn.cn/assetbundle/official/Android/assets/{resVersion}/hot_update_list.json"
func GetRawResources ¶
func GetRawResources(resVersion string) (HotUpdateList, error)
GetRawResources gets the raw response of Arknights resource API with specified resource version.
type Info ¶
func CalculateDifferences ¶
type Version ¶
type Version struct { ResVersion string `json:"resVersion"` ClientVersion string `json:"clientVersion"` }
Version represents a raw response of "https://ak-conf.hypergryph.com/config/prod/official/Android/version".
func GetRawVersion ¶
GetRawVersion gets the raw response from Arknights version API.
Click to show internal directories.
Click to hide internal directories.