实现新api的进房和准备/观战
修复不会刷新在线人数
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user