Пример #1
0
 private static void MergeLocations(DialogueDatabase destination, DialogueDatabase source, NewIDs newIDs)
 {
     foreach (var location in source.locations) {
         if (newIDs.location.ContainsKey(location.id)) {
             Location newLocation = new Location(location);
             newLocation.id = newIDs.location[location.id];
             ConvertFieldIDs(newLocation.fields, newIDs);
             destination.locations.Add(newLocation);
         }
     }
 }
Пример #2
0
 public Location CreateLocation(int id, string name)
 {
     Location location = new Location();
     location.id = id;
     location.fields = CreateFields(locationFields);
     location.Name = name;
     return location;
 }