From 4ebe819106d82459def54561cf8dc71ec22ba6e4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 4 Jun 2024 20:48:43 +0200 Subject: save creds --- src/lib.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index b3f62fe..757fb13 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,17 +1,21 @@ #![feature(async_closure)] #![feature(iterator_try_collect)] -use std::collections::HashMap; - use game::Game; +use redb::Database; +use std::collections::{HashMap, VecDeque}; use tokio::sync::{broadcast, RwLock}; + +pub mod bot; pub mod config; +pub mod database; 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 win_history: RwLock>, pub chat: broadcast::Sender<(String, String)>, + pub db: Database, } -- cgit v1.2.3-70-g09d2