当前位置: 首页>>代码示例>>C#>>正文


C# Arguments.SetPlatform方法代码示例

本文整理汇总了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) }
     };
 }
开发者ID:aequitas,项目名称:rocksmith-custom-song-toolkit,代码行数:14,代码来源:Program.cs

示例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; }}
     };
 }
开发者ID:Jamedjo,项目名称:rocksmith-custom-song-toolkit,代码行数:18,代码来源:Program.cs


注:本文中的Arguments.SetPlatform方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。