steed/stead/timer.lua
2010-07-06 10:15:27 +00:00

13 lines
229 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
-- vim:ts=4