コード例 #1
0
ファイル: MiMapPlugin.cs プロジェクト: TruDan/MiNET-MiMap
 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);
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: TruDan/MiNET-MiMap
        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();
        }