public void Update() { // Try to handle pending events try { server_socket.handle_events(); } catch (Exception e) { Log.error("Failed to handle events with server socket: " + e.Message); Log.error(e.ToString()); } // If bot is ready, run it if (ai_bot != null) { // Run a tick of the AI ai_bot.tick(); } }
public void Update() { // Try to handle pending events try { server_socket.handle_events(); } catch (Exception e) { Log.error("Exception: Handling pending events"); Log.error(e.ToString()); } // If bot is ready, run it if (ai_bot != null) { // Run a tick of the AI ai_bot.tick(); } }