Example #1
0
File: Main.cs Project: rumkex/Game
 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);
 }
Example #2
0
File: Main.cs Project: rumkex/Game
 void Convert(string filename)
 {
     var parser = new LsaMapParser();
     map = parser.Load(filename);
 }