Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
-
- 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
|