实现新api的进房和准备/观战

修复不会刷新在线人数
This commit is contained in:
MrZ_26
2022-10-19 23:29:45 +08:00
parent ccb05230f2
commit dc1973e049
7 changed files with 131 additions and 114 deletions

View File

@@ -36,14 +36,17 @@ local function _createRoom()
if #roomname==0 then
roomname=(USERS.getUsername(USER.uid) or "Anonymous").."'s room"
end
NET.room_create(
roomname,
descriptionBox.value,
ROOMENV.capacity,
"normal",
ROOMENV,
pw
)
NET.room_create{
capacity=ROOMENV.capacity,
info={
name=roomname,
type="normal",
version=VERSION.room,
description=descriptionBox.value,
},
data=ROOMENV,
password=pw,
}
end
end