コード例 #1
0
 private CommandsJsonNode(CommandsJsonNode node, CommandsTranslateJsonNode translateNode)
     : base(ArrayHelper.Clone(node.Categories), ArrayHelper.Clone(node.Items))
 {
     foreach (var categoryTranslateNode in translateNode.Categories)
     {
         int index = node.GetCategoryIndex(categoryTranslateNode.Key);
         if (index != -1)
         {
             Categories[index] = node.Categories[index].TranslateWith(categoryTranslateNode);
         }
     }
     foreach (var itemTranslateNode in translateNode.Items)
     {
         int index = node.GetItemIndex(itemTranslateNode.Key);
         if (index != -1)
         {
             Items[index] = node.Items[index].TranslateWith(itemTranslateNode);
         }
     }
 }
コード例 #2
0
 public Builder(CommandsJsonNode commands, SettingsJsonNode settings)
 {
     Commands = commands;
     Settings = settings;
 }
コード例 #3
0
 public ConfigDataJsonNode(CommandsJsonNode commands, SettingsJsonNode settings)
 {
     Commands = commands;
     Settings = settings;
 }