Module flower.spine.AtlasMgr
Read Spine atlas files
Info:
- Release: V1.0
- Author: Vavius
Functions
AtlasMgr:parseLine (data, line) | Parse one line in spine atlas file into lua table |
AtlasMgr:load (atlas) | Parse spine atlas file. |
AtlasMgr:getAttachmentDeckAndIndex (attachmentName, atlasName, scale) | Return deck and index for displaying attachment |
AtlasMgr:getSpineAtlasDeck (atlasPageData, scale) | Return the Deck for displaying Spine Atlas page |
AtlasMgr:createSpineAtlasDeck (atlasPage, scale) | Create the Deck for displaying one Spine Atlas page |
Functions
- AtlasMgr:parseLine (data, line)
-
Parse one line in spine atlas file into lua table
Parameters:
- data output table
- line input line
- AtlasMgr:load (atlas)
-
Parse spine atlas file. Internall use
Parameters:
- atlas full path to spine atlas file
Returns:
-
lua table with atlas data
- AtlasMgr:getAttachmentDeckAndIndex (attachmentName, atlasName, scale)
-
Return deck and index for displaying attachment
Parameters:
- attachmentName actual attachment name
- atlasName attachment will be looked up in this atlas
- scale skeleton scale
- AtlasMgr:getSpineAtlasDeck (atlasPageData, scale)
-
Return the Deck for displaying Spine Atlas page
Parameters:
- atlasPageData lua table with data for current atlas page
- scale scale
- AtlasMgr:createSpineAtlasDeck (atlasPage, scale)
-
Create the Deck for displaying one Spine Atlas page
Parameters:
- atlasPage lua table with region data for current atlas page
- scale scale