On Sun, Mar 7, 2010 at 11:36 PM, sleepd <slee...@gmail.com> wrote: > I am developing a online RTS game server, some event a base by time, > example: a buff grant Max HP for 30 seconds, spawn army ever 30 seconds... > I plan to use a timer to manage it, but Twisted areĀ event-driven, how to put > this timer in reactor's loop?
See: reactor.callLater twisted.internet.task.LoopingCall -- Christopher Armstrong http://radix.twistedmatrix.com/ http://planet-if.com/ _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python