This repository has been archived on 2019-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
adventin/stead/timer.lua
2010-07-05 16:19:29 +00:00

11 lines
216 B
Lua

game.action = stead.hook(game.action, function(f, s, cmd, ...)
if cmd == 'user_timer' then
return call(game, 'timer');
end
return f(cmd, unpack(arg));
end)
timer.callback = function(s)
return 'user_timer'
end