arkscanner

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PictureArtPath = "assets/torappu/dynamicassets/avg"

Variables

This section is empty.

Functions

This section is empty.

Types

type CharacterArt

type CharacterArt struct {
	ID             string
	Kind           string
	BodyVariations []CharacterArtBodyVariation
}

func (*CharacterArt) BodyPath

func (a *CharacterArt) BodyPath(bodyNum int) string

func (*CharacterArt) BodyPathAlpha

func (a *CharacterArt) BodyPathAlpha(bodyNum int) string

func (*CharacterArt) FacePath

func (a *CharacterArt) FacePath(bodyNum int, faceNum int) string

func (*CharacterArt) FacePathAlpha

func (a *CharacterArt) FacePathAlpha(bodyNum int, faceNum int) string

type CharacterArtBodyVariation

type CharacterArtBodyVariation struct {
	BodySprite      string
	BodySpriteAlpha string
	FaceRectangle   image.Rectangle
	FaceVariations  []CharacterArtFaceVariation
}

type CharacterArtFaceVariation

type CharacterArtFaceVariation struct {
	FaceSprite      string
	FaceSpriteAlpha string
	WholeBody       bool
}

type CharacterSprite

type CharacterSprite struct {
	Sprite struct {
		MPathID int64 `json:"m_PathID"`
	} `json:"sprite"`
	AlphaTex struct {
		MPathID int64 `json:"m_PathID"`
	} `json:"alphaTex"`
	IsWholeBody int `json:"isWholeBody"`
}

type CharacterSpriteHub

type CharacterSpriteHub struct {
	Sprites []CharacterSprite `json:"sprites"`
	FacePos struct {
		X float64 `json:"x"`
		Y float64 `json:"y"`
	} `json:"FacePos"`
	FaceSize struct {
		X float64 `json:"x"`
		Y float64 `json:"y"`
	} `json:"FaceSize"`
}

type CharacterSpriteHubGroup

type CharacterSpriteHubGroup struct {
	SpriteGroups []CharacterSpriteHub `json:"spriteGroups"`
}

type PictureArt

type PictureArt struct {
	ID   string
	Name string
	Kind string
}

func (*PictureArt) Path

func (a *PictureArt) Path() string

type Scanner

type Scanner struct {
	Root string
}

func (*Scanner) ScanCharacter

func (scanner *Scanner) ScanCharacter(id string) (*CharacterArt, error)

func (*Scanner) ScanForCharacterArts

func (scanner *Scanner) ScanForCharacterArts() ([]*CharacterArt, error)

func (*Scanner) ScanForPictureArts

func (scanner *Scanner) ScanForPictureArts() ([]*PictureArt, error)

Jump to

Keyboard shortcuts

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