static private CommandSignature _AddCommand(string name, byte platformValue, byte categoryValue, byte commandIndexValue, CommandParameterSpecification[] commandParameters)
        {
            CommandCollection commands = _AddCategory(platformValue, categoryValue);
            CommandSignature  command;

            commands[commandIndexValue] = command = new CommandSignature(name, platformValue, categoryValue, commandIndexValue, commandParameters);
            return(command);
        }
Exemple #2
0
 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);
             }
         }
     }
 }