private static void MergeItems(DialogueDatabase destination, DialogueDatabase source, NewIDs newIDs)
 {
     foreach (var item in source.items) {
         if (newIDs.item.ContainsKey(item.id)) {
             Item newItem = new Item(item);
             newItem.id = newIDs.item[item.id];
             ConvertFieldIDs(newItem.fields, newIDs);
             destination.items.Add(newItem);
         }
     }
 }
Exemple #2
0
 public Item CreateItem(int id, string name)
 {
     Item item = new Item();
     item.id = id;
     item.fields = CreateFields(itemFields);
     item.Name = name;
     return item;
 }