arkavg

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStoryTxt

func GetStoryTxt(resDir string, prefix string, story Story) (string, error)

Types

type Asset

type Asset struct {
	ID   string
	Kind Kind
}

func GetAssets

func GetAssets(resDir string, prefix string) ([]Asset, error)

func GetAssetsKind

func GetAssetsKind(resDir string, prefix string, kind Kind) ([]Asset, error)

func GetStoryAssets

func GetStoryAssets(resDir string, prefix string, story Story) ([]Asset, error)

func (*Asset) Open

func (a *Asset) Open(resDir string, prefix string) (*os.File, error)

type Avg

type Avg struct {
	Groups []Group
}

func GetAvg

func GetAvg(resDir string, prefix string) (Avg, error)

type Group

type Group struct {
	ID      string  `bson:"id"`
	Name    string  `bson:"name"`
	Type    Type    `bson:"entryType"`
	Stories []Story `bson:"infoUnlockDatas"`
}

type Kind

type Kind string
const (
	KindImage      Kind = "images"
	KindBackground Kind = "backgrounds"
)

type Story

type Story struct {
	ID      string `bson:"storyId"`
	GroupID string `bson:"storyGroup"`
	Code    string `bson:"storyCode"`
	Name    string `bson:"storyName"`
	Txt     string `bson:"storyTxt"`
	Tag     Tag    `bson:"avgTag"`
}

type Tag

type Tag string
const (
	TagInterlude Tag = "幕间"
	TagBefore    Tag = "行动前"
	TagAfter     Tag = "行动后"
)

type Type

type Type string
const (
	TypeNone         Type = "NONE"
	TypeMain         Type = "MAINLINE"
	TypeActivity     Type = "ACTIVITY"
	TypeMiniActivity Type = "MINI_ACTIVITY"
)

Jump to

Keyboard shortcuts

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