blob: a4d422ff3dd89464add06882ff7fc7250891efb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#![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<Option<Option<u32>>>,
pub game: RwLock<Game>,
pub players: RwLock<HashMap<u32, String>>,
pub chat: broadcast::Sender<(String, String)>,
pub db: Database,
}
|