예제 #1
0
    public static void Create([Aliases("t")] string type, [Aliases("i")] string input, [Aliases("o")] string output)
    {
        switch ((CreateType)Enum.Parse(typeof(CreateType), type, true))
        {
        case CreateType.Minimap:
            var minimap = File.Exists(input) ? Minimap.Create(new World(InputType.JSON, File.ReadAllText(input))) : Minimap.Create(new World(InputType.BigDB, input));
            minimap.Save(Path.GetFullPath(output));
            break;

        case CreateType.ExportJSON:
            File.WriteAllText(Path.GetFullPath(output), new World(InputType.BigDB, input, null).Serialize(OutputType.JSON));
            break;
        }

        Environment.Exit(0);
    }
예제 #2
0
 public void CreateMinimap()
 {
     var minimap = Minimap.Create(world);
 }