C# Class RocksmithToolkitLib.DLCPackage.DLCPackageCreator

显示文件 Open project: rscustom/rocksmith-custom-song-toolkit Class Usage Examples

Public Methods

Method Description
BuildXBox360Package ( string songFileName, DLCPackageData info, IEnumerable xboxFiles, GameVersion gameVersion, DLCPackageType dlcType = DLCPackageType.Song ) : void
EncryptPS3EdatFiles ( string songFileName, System.Platform platform ) : void
Generate ( string packagePath, DLCPackageData info, System.Platform platform, DLCPackageType dlcType = DLCPackageType.Song, int pnum = -1 ) : void

Generates CDLC package into packagePath.

GenerateAppId ( Stream output, string appId, System.Platform platform ) : void
GenerateSNG ( Arrangement arr, System.Platform platform ) : void
GenerateToolkitVersion ( Stream output, string packageAuthor = null, string packageVersion = null, string packageComment = null ) : void
GetPathName ( this platform ) : string[]
ToDDS ( List filesToConvert, DLCPackageType dlcType = DLCPackageType.Song ) : void
UpdateToneDescriptors ( DLCPackageData info ) : void

Private Methods

Method Description
DeleteTmpFiles ( List files ) : void
GeneratePackageList ( Stream output, string dlcName ) : void
GeneratePsarcsForRS1 ( Stream output, DLCPackageData info, System.Platform platform ) : void
GenerateRS2014InlayPsarc ( Stream output, DLCPackageData info, System.Platform platform ) : void
GenerateRS2014SongPsarc ( Stream output, DLCPackageData info, System.Platform platform, int pnum = -1 ) : void
GenerateSongPackageId ( Stream output, string dlcName ) : void
GenerateSongPsarcRS1 ( Stream output, DLCPackageData info, System.Platform platform ) : void
GenerateTonePackageId ( Stream output, string toneKey ) : void
GenerateTonePsarc ( Stream output, string toneKey, RocksmithToolkitLib.DLCPackage.Manifest.Tone.Tone tone ) : void
GetSTFSHeader ( this info, GameVersion gameVersion, DLCPackageType dlcType ) : X360.STFS.HeaderData
WriteTmpFile ( this memoryStream, string fileName, System.Platform platform ) : void

Method Details

BuildXBox360Package() public static method

public static BuildXBox360Package ( string songFileName, DLCPackageData info, IEnumerable xboxFiles, GameVersion gameVersion, DLCPackageType dlcType = DLCPackageType.Song ) : void
songFileName string
info DLCPackageData
xboxFiles IEnumerable
gameVersion GameVersion
dlcType DLCPackageType
return void

EncryptPS3EdatFiles() public static method

public static EncryptPS3EdatFiles ( string songFileName, System.Platform platform ) : void
songFileName string
platform System.Platform
return void

Generate() public static method

Generates CDLC package into packagePath.
public static Generate ( string packagePath, DLCPackageData info, System.Platform platform, DLCPackageType dlcType = DLCPackageType.Song, int pnum = -1 ) : void
packagePath string Package path.
info DLCPackageData DLCPackageData.
platform System.Platform Target platform.
dlcType DLCPackageType Package type.
pnum int Packages left. Used to control art cache.
return void

GenerateAppId() public static method

public static GenerateAppId ( Stream output, string appId, System.Platform platform ) : void
output Stream
appId string
platform System.Platform
return void

GenerateSNG() public static method

public static GenerateSNG ( Arrangement arr, System.Platform platform ) : void
arr Arrangement
platform System.Platform
return void

GenerateToolkitVersion() public static method

public static GenerateToolkitVersion ( Stream output, string packageAuthor = null, string packageVersion = null, string packageComment = null ) : void
output Stream
packageAuthor string
packageVersion string
packageComment string
return void

GetPathName() public static method

public static GetPathName ( this platform ) : string[]
platform this
return string[]

ToDDS() public static method

public static ToDDS ( List filesToConvert, DLCPackageType dlcType = DLCPackageType.Song ) : void
filesToConvert List
dlcType DLCPackageType
return void

UpdateToneDescriptors() public static method

public static UpdateToneDescriptors ( DLCPackageData info ) : void
info DLCPackageData
return void