public MiMapPlugin() { Instance = this; MiMapManager = new MiMapManager(Config); //Log.InfoFormat("Config Loaded\n{0}", JsonConvert.SerializeObject(MiMapManager.Config, Formatting.Indented)); _webServer = new MiMapWebServer(Config.WebServer); }
static void Main(string[] args) { MiMapConfig.Config.TilesDirectory = Path.Combine(Path.GetDirectoryName(typeof(Program).Assembly.Location), "..", "..", "..", "MiNET.Server", "bin", "Debug", "MiMap", "tiles"); using (var webServer = new MiMapWebServer()) { webServer.Start(); Log.InfoFormat("MiMap Web Server Started"); Console.ReadLine(); } Log.InfoFormat("MiMap Web Server Stopped"); Console.ReadLine(); }