C# Class RocksmithToolkitLib.Sng2014HSL.Sng2014File

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

Public Methods

Method Description
ConvertSong ( string xmlFile ) : Sng2014File
ConvertXML ( string xmlPath, ArrangementType type, string cdata = null ) : Sng2014File
CopyStruct ( object obj ) : MemoryStream
HashStruct ( object obj ) : UInt32
IsCustomFont ( ) : bool
LoadFromFile ( string inputFile, System.Platform platform ) : Sng2014File

Raw SNG data reader.

PackSng ( Stream input, Stream output, System.Platform platform ) : void
Read ( EndianBinaryReader r ) : void
ReadSng ( Stream input, System.Platform platform ) : Sng2014File
Sng2014File ( ) : System
Sng2014File ( Stream data ) : System
UnpackSng ( Stream input, Stream output, System.Platform platform ) : void
Write ( EndianBinaryWriter w ) : void
WriteChartData ( string outfile, System.Platform platform ) : void
WriteSng ( Stream output, System.Platform platform ) : void

Private Methods

Method Description
getChartData ( System.Platform platform ) : byte[]
getPropertyValue ( object obj, string propertyName ) : object
writeField ( EndianBinaryWriter w, object value ) : void
writeStruct ( EndianBinaryWriter w, object obj ) : void

Method Details

ConvertSong() public static method

public static ConvertSong ( string xmlFile ) : Sng2014File
xmlFile string
return Sng2014File

ConvertXML() public static method

public static ConvertXML ( string xmlPath, ArrangementType type, string cdata = null ) : Sng2014File
xmlPath string
type ArrangementType
cdata string
return Sng2014File

CopyStruct() public method

public CopyStruct ( object obj ) : MemoryStream
obj object
return System.IO.MemoryStream

HashStruct() public method

public HashStruct ( object obj ) : UInt32
obj object
return System.UInt32

IsCustomFont() public method

public IsCustomFont ( ) : bool
return bool

LoadFromFile() public static method

Raw SNG data reader.
public static LoadFromFile ( string inputFile, System.Platform platform ) : Sng2014File
inputFile string Packed and encrypted SNG file
platform System.Platform
return Sng2014File

PackSng() public static method

public static PackSng ( Stream input, Stream output, System.Platform platform ) : void
input Stream
output Stream
platform System.Platform
return void

Read() public method

public Read ( EndianBinaryReader r ) : void
r EndianBinaryReader
return void

ReadSng() public static method

public static ReadSng ( Stream input, System.Platform platform ) : Sng2014File
input Stream
platform System.Platform
return Sng2014File

Sng2014File() public method

public Sng2014File ( ) : System
return System

Sng2014File() public method

public Sng2014File ( Stream data ) : System
data Stream
return System

UnpackSng() public static method

public static UnpackSng ( Stream input, Stream output, System.Platform platform ) : void
input Stream
output Stream
platform System.Platform
return void

Write() public method

public Write ( EndianBinaryWriter w ) : void
w EndianBinaryWriter
return void

WriteChartData() public method

public WriteChartData ( string outfile, System.Platform platform ) : void
outfile string
platform System.Platform
return void

WriteSng() public method

public WriteSng ( Stream output, System.Platform platform ) : void
output Stream
platform System.Platform
return void