1
|
using System;
|
2
|
using System.Globalization;
|
3
|
|
4
|
namespace TextureEditing
|
5
|
{
|
6
|
/// <summary>
|
7
|
/// Main class
|
8
|
/// </summary>
|
9
|
class Program
|
10
|
{
|
11
|
/// <summary>
|
12
|
/// Main method
|
13
|
/// - needs one argument - path to folder with input files
|
14
|
/// </summary>
|
15
|
/// <param name="args">args</param>
|
16
|
static void Main(string[] args)
|
17
|
{
|
18
|
CultureInfo.CurrentCulture = new CultureInfo("en-US", false);
|
19
|
|
20
|
if (args.Length < 1)
|
21
|
{
|
22
|
Console.WriteLine("Insufficient arguments, input path to folder with data");
|
23
|
return;
|
24
|
}
|
25
|
|
26
|
string dataPath = args[0];
|
27
|
|
28
|
MapEditor me = new MapEditor(dataPath, "./output");
|
29
|
me.EditAllPngs();
|
30
|
|
31
|
Console.WriteLine("Done.");
|
32
|
}
|
33
|
}
|
34
|
}
|