2010-07-05 19:19:29 +03:00
|
|
|
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
|
2010-07-06 13:15:27 +03:00
|
|
|
|
|
|
|
-- vim:ts=4
|