Constructor
new AlphaTexStructure()
Creates a new AlphaTexStructure
- Source:
Methods
addBool(attribute)
Add bool attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
String | attribute of bool to add |
- Source:
addTrack(newTrack)
Add track to list of tracks
Parameters:
Name | Type | Description |
---|---|---|
newTrack |
Object | Track object to add |
- Source:
copyAttributes(source)
Copies all string, int, and boolean attributes into this object
Parameters:
Name | Type | Description |
---|---|---|
source |
Object | Source must have attributesStr, attributesInt, attributesBool |
- Source:
copyTracks(source)
Copies all values from source.tracks into this.tracks
Parameters:
Name | Type | Description |
---|---|---|
source |
Object | Source must have a list of tracks |
- Source:
getInt(attribute) → {number}
Get int attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
String | attribute of int to retrieve |
- Source:
Returns:
The value for the asked attribute
- Type
- number
getStr(attribute) → {String}
Get string attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
String | attribute of string to retrieve |
- Source:
Returns:
The value for the asked attribute
- Type
- String
removeInt(attribute)
Remove int attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
String | attribute of int to remove |
- Source:
setInt(attribute, value)
Set int attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
String | attribute of int to set |
value |
number | value of int to set |
- Source:
setStr(attribute, value)
Set string attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
String | attribute of string to set |
value |
String | value of string to set |
- Source:
toString() → {String}
Converts AlphaTexStructure to a pretty string
- Source:
Returns:
The pretty string representation of the AlphaTexStructure
- Type
- String