Exemplo n.º 1
0
 public Engine(MessageProcessor messageProcessor)
 {
     _log.Info("Creating " + Assembly.GetExecutingAssembly().FullName);
     _engineThread = new StoppableThread(UpdateLoop);
     _messageProcessor = messageProcessor;
     ServerStatusModel = new ServerStatusModel { Status = "Created" };
 }
Exemplo n.º 2
0
 public Engine()
 {
     _log.Info("Creating " + Assembly.GetExecutingAssembly().GetName().FullName);
     Global.ReadConfiguration();
     //Global.worldFilename = "DefaultWorld.xml";
     _engineThread = new StoppableThread(UpdateLoop);
     _listener = new Listener(new IPEndPoint(Dns.GetHostEntry(Dns.GetHostName()).AddressList[0], port));
     _log = LogManager.GetCurrentClassLogger();
     ServerStatusModel = new ServerStatusModel {Status = "Created"};
 }