Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
-
- 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
|