2023-03-18 18:09:36 +03:00
|
|
|
|
using System.IO;
|
|
|
|
|
using DotRecast.Core;
|
2023-03-18 22:36:31 +03:00
|
|
|
|
using Serilog;
|
2023-03-18 18:09:36 +03:00
|
|
|
|
|
|
|
|
|
namespace DotRecast.Recast.Demo;
|
2023-03-14 17:56:10 +03:00
|
|
|
|
|
|
|
|
|
public static class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2023-03-18 22:36:31 +03:00
|
|
|
|
Log.Logger = new LoggerConfiguration()
|
|
|
|
|
.WriteTo.Console()
|
|
|
|
|
.MinimumLevel.Verbose()
|
|
|
|
|
.CreateLogger();
|
|
|
|
|
|
2023-03-18 18:09:36 +03:00
|
|
|
|
var path = Loader.ToRPath("dungeon.obj");
|
|
|
|
|
path = Path.GetDirectoryName(path);
|
|
|
|
|
if (!string.IsNullOrEmpty(path))
|
|
|
|
|
{
|
|
|
|
|
var workingDirectory = Path.Combine(path, "..");
|
|
|
|
|
workingDirectory = Path.GetFullPath(workingDirectory);
|
|
|
|
|
Directory.SetCurrentDirectory(workingDirectory);
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-14 17:56:10 +03:00
|
|
|
|
var demo = new RecastDemo();
|
|
|
|
|
demo.start();
|
|
|
|
|
}
|
|
|
|
|
}
|