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