border-wars/crates/server/src save/lobby.rs

19 lines
376 B
Rust
Raw Normal View History

2024-04-12 02:36:23 +00:00
use axum::http::header::Entry;
use dashmap::DashMap;
use lazy_static::lazy_static;
use scc::{HashMap, HashSet};
use server::LobbyStatus;
use uuid::Uuid;
lazy_static! {
static ref LOBBIES: DashMap<Uuid, LobbyStatus> = DashMap::new();
}
pub(crate) async fn create_lobby(
client_id: Uuid,
username: String,
public: bool,
) -> anyhow::Result<()> {
todo!()
}