… | |
… | |
109 | cf::post_init { |
109 | cf::post_init { |
110 | our $UPDATER = cf::async_ext { |
110 | our $UPDATER = cf::async_ext { |
111 | $Coro::current->{desc} = "worldmap updater"; |
111 | $Coro::current->{desc} = "worldmap updater"; |
112 | |
112 | |
113 | while () { |
113 | while () { |
114 | Coro::EV::timer_once $WORLDMAP_UPDATE_INTERVAL; |
114 | Coro::AnyEvent::sleep $WORLDMAP_UPDATE_INTERVAL; |
115 | |
115 | |
116 | cf::get_slot 0.01, -50, "worldmap update"; |
116 | cf::get_slot 0.01, -50, "worldmap update"; |
117 | |
117 | |
118 | ++$GENCOUNT; |
118 | ++$GENCOUNT; |
119 | |
119 | |