private void HandleAuthenticated (object sender, EventArgs e) { worldManager = new WorldManager (clientDriver.communicator); worldManager.ReceivedUpdates += new EventHandler<UpdateEventArgs> (HandleReceivedUpdates); worldManager.ReceivedNewObject += new EventHandler<NewObjectEventArgs> (HandleReceivedNewObject); worldManager.EntityCreated += new EventHandler<EntityCreatedEventArgs> (HandleEntityCreated); if (Authenticated != null) Authenticated (this, e); }
void HandleAuthenticated(object sender, EventArgs e) { logger.Info("Loading world"); worldManager = new WorldManager(communicator); worldManager.Loaded += HandleWorldLoaded; StartCreatingEntities(); }