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) 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 CharacterSprite ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.