Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost2238 committed Mar 1, 2020
1 parent 61a4f6b commit 7b93353
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
3 changes: 0 additions & 3 deletions Mappet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,9 @@
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
Expand Down
30 changes: 0 additions & 30 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;

// A tool for merging different map sections together. Combines elevations with objects and squares from different maps into one output map.
namespace Mappet
Expand Down Expand Up @@ -52,27 +51,6 @@ class ElevationOp

class Program
{
static void ParseConfig()
{
var exeDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var configFile = Path.Combine(exeDir, "mappet.cfg");
if (!File.Exists(configFile))
{
Console.WriteLine("Unable to find mappet.cfg");
Environment.Exit(1);
}

/*List<string> lines;
try
{
}
catch()
{
}*/
}

static void SaveMap(Map map, string file)
{
var lines = new List<string>();
Expand Down Expand Up @@ -302,14 +280,6 @@ static void Main(string[] args)
elevation = op.dstElevation,
squareId = s.squareId
};

//var existingSq = outputMap.squares.SingleOrDefault(x => x.squareId == s.squareId && x.elevation == op.dstElevation);
//if(existingSq != null)
//{
// Console.WriteLine($"Existing square with id {s.squareId} at elevation {op.dstElevation} already exists, overwriting with square from {srcMapName}.");
// existingSq.data = sq.data;
//}
//else
outputMap.squares.Add(sq);
}

Expand Down

0 comments on commit 7b93353

Please sign in to comment.