# File lib/core/world.rb, line 51 def startup @connected_characters = [] @cmds, @ocmds = Command.load log.info "Starting Timer..." @timer_list_mutex = Mutex.new @timer = Thread.new do begin while true sleep 1.0 @timer_list_mutex.synchronize do timer_list.each do |ti| if ti.fire? add_event(0, ti.id, :timer, ti.name) ti.reset end end end end rescue Exception log.fatal "Timer thread blew up" log.fatal $! end end log.info "World initialized." end