17 lines
299 B
Rust
17 lines
299 B
Rust
mod bot;
|
|
mod state;
|
|
mod utils;
|
|
|
|
use bot::ProtosBot;
|
|
use std::sync::{Arc, Mutex};
|
|
use state::game_state::GameState;
|
|
|
|
|
|
fn main() {
|
|
println!("Starting RustBot...");
|
|
|
|
let game_state = Arc::new(Mutex::new(GameState::default()));
|
|
|
|
rsbwapi::start(move |_game| ProtosBot::new(game_state.clone() ));
|
|
}
|