Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnimDirection ¶
type AnimDirection string
const ( AnimForward AnimDirection = "forward" AnimReverse AnimDirection = "reverse" AnimPingPong AnimDirection = "pingpong" )
type AnimEventIO ¶
type AnimationIO ¶
type AnimationIO struct {
Tagname string `json:"tagname"`
OutputName string `json:"output_name"`
ClipMode string `json:"clip_mode,omitempty"`
Events []AnimEventIO `json:"events"`
EndedEvent *AnimEventIO `json:"ended_event,omitempty"`
}
type AtlasImporter ¶
type AtlasImporter struct {
Sprites []FrameIO `json:"sprites"`
SpriteSheets []string `json:"sprite_sheets"`
Output string `json:"output,omitempty"`
ImageFilter string `json:"image_filter,omitempty"`
}
func (AtlasImporter) SpriteWithFilename ¶
func (i AtlasImporter) SpriteWithFilename(filename string) (frame FrameIO, exists bool)
type File ¶
type FileMap ¶
func (*FileMap) GetMetadata ¶
type FrameTag ¶
type FrameTag struct {
Name string `json:"name"`
From int `json:"from"`
To int `json:"to"`
Direction AnimDirection `json:"direction"`
}
"name": "lbar1", "from": 0, "to": 11, "direction": "forward"
type Metadata ¶
type Metadata struct {
App string `json:"app"`
Version string `json:"version"`
Image string `json:"image"`
Format string `json:"format"`
Size ImSize `json:"size,omitempty"`
Scale string `json:"scale"`
FrameTags []FrameTag `json:"frameTags"`
Layers []Layer `json:"layers,omitempty"`
Slices interface{} `json:"slices"`
}
type Slice ¶
type Slice struct {
Name string `json:"name"`
Color string `json:"color"`
Keys []SliceKeyframe `json:"keys"`
}
type SliceKeyframe ¶
Click to show internal directories.
Click to hide internal directories.