Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

20 righe
490 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