static VixenStandard() { foreach (byte platform in Standard.GetPlatformValues()) { _AddPlatform(platform); foreach (byte category in Standard.GetCategoryValues(platform)) { _AddCategory(platform, category); foreach (byte commandIndex in Standard.GetCommandValues(platform, category)) { CommandSignature command = Standard.GetCommandSignature(platform, category, commandIndex); CommandParameterCombiner combiner = Standard.GetCommandParameterCombiner(platform, category, commandIndex); _AddCommand(command.Name, platform, category, commandIndex, command.Parameters, combiner); } } } }
public VixenCommandSignature(string name, byte platformValue, byte categoryValue, byte commandIndexValue, CommandParameterSpecification[] commandParameters, CommandParameterCombiner combiner) : base(name, platformValue, categoryValue, commandIndexValue, commandParameters) { Combiner = combiner; }
static private VixenCommandSignature _AddCommand(string name, byte platformValue, byte categoryValue, byte commandIndexValue, CommandParameterSpecification[] commandParameters, CommandParameterCombiner combiner) { CommandCollection commands = _AddCategory(platformValue, categoryValue); VixenCommandSignature command; commands[commandIndexValue] = command = new VixenCommandSignature(name, platformValue, categoryValue, commandIndexValue, commandParameters, combiner); return(command); }