本文整理汇总了C#中Arguments.SetPlatform方法的典型用法代码示例。如果您正苦于以下问题:C# Arguments.SetPlatform方法的具体用法?C# Arguments.SetPlatform怎么用?C# Arguments.SetPlatform使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Arguments
的用法示例。
在下文中一共展示了Arguments.SetPlatform方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetOptions
private static OptionSet GetOptions(Arguments outputArguments) {
return new OptionSet
{
{ "h|?|help", "Show this help message and exit", v => outputArguments.ShowHelp = v != null },
{ "p|pack", "Pack and encrypt a SNG file", v => { if (v != null) outputArguments.Pack = true; }},
{ "u|unpack", "Unpack and decrypt a SNG file", v => { if (v != null) outputArguments.Unpack = true; }},
{ "x|sng2xml", "Generate a song Xml from a SNG file", v => { if (v != null) outputArguments.Sng2Xml = true; }},
{ "s|xml2sng", "Generate a song file (SNG) from a Xml file", v => { if (v != null) outputArguments.Xml2Sng = true; }},
{ "i|input|sng=", "The input SNG file(s) or directory [*.sng] (multiple allowed, use ; to split paths)", v => outputArguments.Input = v.Split( new[]{';'}, 2) },
{ "m|manifest=", "The input manifest arrangement file [*.json] (multiple allowed, use ; to split paths in same order of input (SNG) files)", v => outputArguments.Manifest = v.Split( new[]{';'}, 2) },
{ "a|type|arrangement=", "Arrangement type of the SNG [Guitar, Bass, Vocal]", v => outputArguments.SetArrangementType(v) },
{ "f|platform=", "Platform to pack/unpack SNG [Pc, Mac, XBox360, PS3]", v => outputArguments.SetPlatform(v) }
};
}
示例2: GetOptions
private static OptionSet GetOptions(Arguments outputArguments)
{
return new OptionSet
{
{ "h|?|help", "Show this help message and exit", v => outputArguments.ShowHelp = v != null },
{ "p|pack", "Pack a song", v => { if (v != null) outputArguments.Pack = true; }},
{ "u|unpack", "Unpack a song", v => { if (v != null) outputArguments.Unpack = true; }},
{ "b|build", "Build a song package from 'Rocksmith DLC template' (*.dlc.xml)", v => outputArguments.Build = v != null },
{ "i|input=", "The input file or directory (multiple allowed, use ; to split paths)", v => outputArguments.Input = v.Split( new[]{';'}, 2) },
{ "o|output=", "The output file or directory", v => outputArguments.Output = v },
{ "t|template=", "The template file for building package", v => outputArguments.Template = v },
{ "f|platform=", "Platform to pack package [Pc, Mac, XBox360, PS3]", v => outputArguments.SetPlatform(v) },
{ "v|version=", "Version of the Rocksmith Game [RS2012 or RS2014]", v => outputArguments.SetVersion(v) },
{ "ogg|decodeogg", "Decode ogg file when unpack a song (default is true)", v => { if (v != null) outputArguments.DecodeOGG = true; }},
{ "sng|updatesng", "Recreate SNG files when pack a song (default is false)", v => { if (v != null) outputArguments.UpdateSng = true; }},
{ "xml|extractxml", "Extract Song Xml files from SNG when unpack a song (default is false)", v => { if (v != null) outputArguments.ExtractSongXml = true; }}
};
}