C# Class RocksmithToolkitLib.Xml.Song2014

Show file Open project: rscustom/rocksmith-custom-song-toolkit Class Usage Examples

Private Properties

Property Type Description
FixArrayAttribs void

Public Methods

Method Description
LoadFromFile ( string xmlSongRS2014File ) : Song2014
ReadXmlComments ( string xmlSongRS2014File ) : IEnumerable

Reads the xml comments, like EOF and DDC, to keep track of its versions.

Serialize ( Stream stream, bool omitXmlDeclaration = false ) : void
Song2014 ( ) : System
Song2014 ( Sng2014HSL sngData, Attributes2014 attr = null ) : System
WriteXmlComments ( string xmlSongFile, IEnumerable commentNodes = null, bool saveOldVers = true, bool writeNewVers = true, string customComment = "" ) : void

Write the CST\EOF\DDC xml comments

Private Methods

Method Description
FixArrayAttribs ( Stream xml ) : void

Writes count attribute for chosen nodes.

Method Details

LoadFromFile() public static method

public static LoadFromFile ( string xmlSongRS2014File ) : Song2014
xmlSongRS2014File string
return Song2014

ReadXmlComments() public static method

Reads the xml comments, like EOF and DDC, to keep track of its versions.
public static ReadXmlComments ( string xmlSongRS2014File ) : IEnumerable
xmlSongRS2014File string Xml file path.
return IEnumerable

Serialize() public method

public Serialize ( Stream stream, bool omitXmlDeclaration = false ) : void
stream Stream
omitXmlDeclaration bool
return void

Song2014() public method

public Song2014 ( ) : System
return System

Song2014() public method

public Song2014 ( Sng2014HSL sngData, Attributes2014 attr = null ) : System
sngData Sng2014HSL
attr RocksmithToolkitLib.DLCPackage.Manifest2014.Attributes2014
return System

WriteXmlComments() public static method

Write the CST\EOF\DDC xml comments
public static WriteXmlComments ( string xmlSongFile, IEnumerable commentNodes = null, bool saveOldVers = true, bool writeNewVers = true, string customComment = "" ) : void
xmlSongFile string
commentNodes IEnumerable
saveOldVers bool
writeNewVers bool
customComment string
return void