mistakes were made

This commit is contained in:
2026-01-22 22:23:21 -07:00
parent fbcbb8f882
commit affbd3f82f
3 changed files with 107 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
mod bot;
mod state;
mod utils;
mod web_server;
use bot::ProtosBot;
use state::game_state::GameState;
@@ -11,5 +12,12 @@ fn main() {
let game_state = Arc::new(Mutex::new(GameState::default()));
// Start web server in a separate thread
let game_state_clone = game_state.clone();
std::thread::spawn(move || {
let runtime = tokio::runtime::Runtime::new().unwrap();
runtime.block_on(web_server::start_web_server(game_state_clone));
});
rsbwapi::start(move |_game| ProtosBot::new(game_state.clone()));
}