Documentation
¶
Index ¶
- Variables
- type ArtCache
- func (c *ArtCache) GetFileOf(name string) string
- func (c *ArtCache) GetHeightOf(name string) int
- func (c *ArtCache) GetWidthOf(name string) int
- func (c *ArtCache) List() []string
- func (c *ArtCache) Refresh() error
- func (c *ArtCache) Save() error
- func (c *ArtCache) String() string
- func (c *ArtCache) Update() error
- type ArtMetadata
Constants ¶
This section is empty.
Variables ¶
View Source
var CustomJSONDir string
CustomJSONDir is the location where custom JSON files generated by the user are saved.
Functions ¶
This section is empty.
Types ¶
type ArtCache ¶
type ArtCache struct { Art map[string]ArtMetadata `json:"art"` Version string `json:"version"` // contains filtered or unexported fields }
ArtCache is a struct containing all pixel art metadata and a version string.
func (*ArtCache) GetHeightOf ¶
GetHeightOf will return the cached height for the specified art.
func (*ArtCache) GetWidthOf ¶
GetWidthOf will return the cached width for the specified art.
type ArtMetadata ¶ added in v1.5.0
type ArtMetadata struct { File string `json:"file"` Height int `json:"height"` Width int `json:"width"` }
ArtMetadata is a struct containing relevant metadata about supported pixel art.
Click to show internal directories.
Click to hide internal directories.