private void Append(string filename) { if (map == null) { Log.WriteLine(LogLevel.Error, "Nothing to append to"); return; } var parser = new LsaMapParser(); var appendMap = parser.Load(filename); foreach (var asset in appendMap.Assets) if (!map.Assets.Contains(asset.Name)) map.Assets.Add(asset); foreach (var def in appendMap.Definitions) if (!map.Definitions.Contains(def.Name)) map.Definitions.Add(def); }
void Convert(string filename) { var parser = new LsaMapParser(); map = parser.Load(filename); }