예제 #1
0
        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();
        }
예제 #2
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (Config.WebServer.Enabled)
            {
                _webServer.Start();
            }

            MiMapManager.Initialise();
            InitLevelRunners();
            MiMapManager.Start();

            foreach (var levelRunner in _levelRunners.Values.ToArray())
            {
                levelRunner.Start();
            }
        }