You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 regels
491 B

  1. local PdkFunctions = {}
  2. ---
  3. -- 是否勾选了禁止使用道具和语音选项
  4. -- @return
  5. --
  6. function PdkFunctions.isForbidProp ()
  7. local gameInfo = json.decode(app.room.roomInfo.nGameInfo)
  8. local forbidProp = gameInfo.forbidProp or 0
  9. return tonumber(forbidProp) > 0
  10. end
  11. -- todo
  12. function PdkFunctions.isForbidVoice ()
  13. local gameInfo = json.decode(app.room.roomInfo.nGameInfo)
  14. local forbidVoice = gameInfo.forbidVoice or 0
  15. return tonumber(forbidVoice) > 0
  16. end
  17. return PdkFunctions