sleep.lua 396 B

123456789101112131415
  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. {
  9. name = 'duration',
  10. type = 'number',
  11. description = 'The number of seconds to sleep for.'
  12. }
  13. },
  14. returns = {}
  15. }