all clients trigger ready, then advance gamestate on last ready

This commit is contained in:
Tao Tien 2026-02-10 19:38:41 -08:00
parent 1e6a3ca84b
commit d183f5d993
18 changed files with 358 additions and 77 deletions

View file

@ -1,10 +1,7 @@
use log::{debug, info};
use spacetimedb::{
ReducerContext, Table, ViewContext, rand::seq::SliceRandom, reducer, table, view,
};
use log::info;
use spacetimedb::{ReducerContext, Table, reducer};
use crate::tables::*;
use jong_types::*;
mod game;
mod tables;
@ -21,6 +18,7 @@ pub fn login_or_add_player(ctx: &ReducerContext) {
lobby_id: 0,
hand_id: 0,
pond_id: 0,
ready: false,
}) {
info!("added player: {:?}", player);
} else {