View source
class SongMetadata
package funkin.data.song
implements ICloneable<SongMetadata>
import funkin.data.song.SongData
Available on all platforms
Data containing information about a song. It should contain all the data needed to display a song in the Freeplay menu, or to load the assets required to play its chart. Data which is only necessary in-game should be stored in the SongChartData.
Constructor
Variables
optionaloffsets:Null<SongOffsets>
Instrumental and vocal offsets. Defaults to an empty SongOffsets object.
Methods
clone():SongMetadata
Create a copy of this SongMetadata with the same information.
Parameters:
newVariation | Set to a new variation ID to change the new metadata. |
|---|
Returns:
The cloned SongMetadata
serialize(pretty:Bool = true):String
Serialize this SongMetadata into a JSON string.
Parameters:
pretty | Whether the JSON should be big ol string (false), or formatted with tabs (true) |
|---|
Returns:
The JSON string.