25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- local PdkFunctions = {}
- ---
- -- 是否勾选了禁止使用道具和语音选项
- -- @return
- --
- function PdkFunctions.isForbidProp ()
- if not app.room or not app.room.roomInfo.nGameInfo then
- return false
- end
- local gameInfo = json.decode(app.room.roomInfo.nGameInfo)
- local forbidProp = gameInfo.forbidProp or 0
- return tonumber(forbidProp) > 0
- end
-
- -- todo
- function PdkFunctions.isForbidVoice ()
- if not app.room or not app.room.roomInfo.nGameInfo then
- return false
- end
- local gameInfo = json.decode(app.room.roomInfo.nGameInfo)
- local forbidVoice = gameInfo.forbidVoice or 0
- return tonumber(forbidVoice) > 0
- end
-
- return PdkFunctions
|