Esempio n. 1
0
 public Engine(MessageProcessor messageProcessor)
 {
     _log.Info("Creating " + Assembly.GetExecutingAssembly().FullName);
     _engineThread = new StoppableThread(UpdateLoop);
     _messageProcessor = messageProcessor;
     ServerStatusModel = new ServerStatusModel { Status = "Created" };
 }
Esempio n. 2
0
 public void Start()
 {
     ServerStatusModel.Status = "Starting"; 
     _world = new World(Global.WorldId);
     _messageProcessor = new MessageProcessor(_world, _listener);
     Global.World = _world;
     ServerStatusModel.Started = Global.Now;
     _log.Info("Listening for new connections...");
     _listener.Start();
     _engineThread.Start();
     ServerStatusModel.Status = "Running";
 }