First demo commit.

This commit is contained in:
bakpakin
2015-04-27 14:12:11 +08:00
commit a63329422d
57 changed files with 5201 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
local TimerEvent = class "TimerEvent"
function TimerEvent:init(time, fn)
self.lifetime = time
self.timerCallback = fn
end
function TimerEvent:onLifeover()
self.timerCallback()
end
return TimerEvent