all clients trigger ready, then advance gamestate on last ready
This commit is contained in:
parent
1e6a3ca84b
commit
d183f5d993
18 changed files with 358 additions and 77 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue