static void Main(string[] args)
        {
            PluginManager pManager = new PluginManager(Environment.CurrentDirectory + "/plugins/");
            CommandLine CmdLine = new CommandLine(pManager);
            GameServer server = new GameServer(pManager);

            server.Init();

            Thread CmdParser = new Thread(new ThreadStart(CmdLine.Run));
            Thread Acceptor = new Thread(new ThreadStart(server.Acceptor));
            //Thread Test1 = new Thread(new ThreadStart( delegate { Test(server); } ));

            CmdParser.Start();
            Acceptor.Start();

            //Test1.Start();
        }
Ejemplo n.º 2
0
 public GameServer(PluginManager plManager)
 {
     pManager = plManager;
 }
 public CommandLine(PluginManager pluginManager)
 {
     pManager = pluginManager;
 }