C# Class AtlasPlugin.TpsFileSave

ファイルを表示 Open project: vchelaru/FlatRedBall Class Usage Examples

Private Properties

Property Type Description
AddAtlas void
CreateAlgorithmSettings dataStructStruct
CreateAndEngineStruct dataStructStruct
CreateDataStruct dataStructStructStruct
CreateLibGDXStruct dataStructStruct
CreateMapStruct dataStructMap
CreateNewAtlasSettings dataStructArrayStruct
CreateSizeStruct dataStructQSize
CreateSpriteSettings dataStructStruct
FillStruct void
IndexInItems int
RemoveAtlas void
SetDefaultValues void
SetupFile void

Public Methods

Method Description
ClearAtlases ( ) : void
CreateAtlasFiles ( ) : void

Calls TexturePacker.exe to generate the atlas data and png files.

IndexIn ( string value, object objects ) : int
Load ( string filename, TpsLoadResult &result ) : TpsFileSave
Save ( string filename ) : void

Private Methods

Method Description
AddAtlas ( string folderToAdd ) : void
CreateAlgorithmSettings ( ) : dataStructStruct
CreateAndEngineStruct ( ) : dataStructStruct
CreateDataStruct ( string type, List keys, List values ) : dataStructStructStruct
CreateLibGDXStruct ( ) : dataStructStruct
CreateMapStruct ( ) : dataStructMap
CreateNewAtlasSettings ( string folderToAdd ) : dataStructArrayStruct

Generate the settings for an atlas of the given folder.

CreateSizeStruct ( int width, int height ) : dataStructQSize
CreateSpriteSettings ( ) : dataStructStruct
FillStruct ( List values, List elementNames ) : void

Fills the lists of element names and values for the tps file settings.

IndexInItems ( string value ) : int
RemoveAtlas ( string folderToRemove ) : void
SetDefaultValues ( ) : void

Creates a tps file from scratch.

SetupFile ( ) : void

Sets the appropriate names for the atlas data file and png file as well as the tps filename.

Method Details

ClearAtlases() public method

public ClearAtlases ( ) : void
return void

CreateAtlasFiles() public method

Calls TexturePacker.exe to generate the atlas data and png files.
public CreateAtlasFiles ( ) : void
return void

IndexIn() public static method

public static IndexIn ( string value, object objects ) : int
value string
objects object
return int

Load() public static method

public static Load ( string filename, TpsLoadResult &result ) : TpsFileSave
filename string
result TpsLoadResult
return TpsFileSave

Save() public method

public Save ( string filename ) : void
filename string
return void