merge all extra tables back into player for now
This commit is contained in:
parent
71ad4cada6
commit
9b01f6b96a
16 changed files with 66 additions and 579 deletions
|
|
@ -50,8 +50,8 @@ pub fn add_bot(ctx: &ReducerContext, lobby_id: u32) -> Result<(), String> {
|
|||
let bot = ctx.db.bot().insert(Bot {
|
||||
id: 0,
|
||||
lobby_id,
|
||||
hand_id: 0,
|
||||
pond_id: 0,
|
||||
hand: vec![],
|
||||
pond: vec![],
|
||||
});
|
||||
lobby.players.push(PlayerOrBot::Bot { id: bot.id });
|
||||
ctx.db.lobby().id().update(lobby);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue