Documentation ¶
Index ¶
- func FindCommitRef(resVersion string) (string, error)
- func FindLatestCommitRef() (resVersion string, commitRef string, err error)
- func Get(resVersion string, dataPath string, dest string) error
- func GetResourcesFromStoryText(storyText string) (images []string, backgrounds []string)
- func GetStoryText(gamedataDir string, storyTextPath string) (string, error)
- func GetText(gamedata string, dataPath string) (string, error)
- type ActType
- type AvgTag
- type EntryType
- type StoryData
- type StoryReviewData
- type StoryReviewTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCommitRef ¶
FindCommitRef checks whether specified resource version exists or not. If exists, it returns the corresponded commit reference, otherwise, it returns an empty string.
func FindLatestCommitRef ¶
FindLatestCommitRef finds the latest gamedata update commit of CN server.
func Get ¶
Get downloads the Arknights gamedata from https://github.com/Kengxxiao/ArknightsGameData.
Firstly, it downloads the repository archive from GitHub. Then, it extracts the repository archive (only files under "zh_CN/gamedata/") to the specified path.
For example, saying that path is "story/" and dest is "./arkwaifu/". What Get does is to download the full gamedata archive and extract files in the archive under "zh_CN/gamedata/story/" into "./arkwaifu/story".
Types ¶
type StoryReviewData ¶
type StoryReviewData struct { ID string `json:"id"` Name string `json:"name"` EntryType EntryType `json:"entryType"` ActType ActType `json:"actType"` StartTime int64 `json:"startTime"` InfoUnlockDatas []StoryData `json:"infoUnlockDatas"` }
func GetStoryReviewData ¶
func GetStoryReviewData(gamedata string) ([]StoryReviewData, error)
type StoryReviewTable ¶
type StoryReviewTable map[string]StoryReviewData