sleep.lua 467 B

1234567891011121314151617181920
  1. return {
  2. summary = 'Go to sleep.',
  3. description = [[
  4. Sleeps the application for a specified number of seconds. While the game is asleep, no code
  5. will be run, no graphics will be drawn, and the window will be unresponsive.
  6. ]],
  7. arguments = {
  8. duration = {
  9. type = 'number',
  10. description = 'The number of seconds to sleep for.'
  11. }
  12. },
  13. returns = {},
  14. variants = {
  15. {
  16. arguments = { 'duration' },
  17. returns = {}
  18. }
  19. }
  20. }