#![feature(async_closure)] #![feature(iterator_try_collect)] use std::collections::HashMap; use game::Game; use tokio::sync::{broadcast, RwLock}; pub mod config; pub mod game; pub mod spectate; pub mod bot; pub struct State { pub tick: broadcast::Sender, // true for new game pub game: RwLock, pub players: RwLock>, pub chat: broadcast::Sender<(String, String)>, }