def self.start
mapinfos = load_data("Data/MapInfos.rxdata")
file = File.open("f.txt","wb")
@t = Time.now.to_i
for id in mapinfos.keys
foldername = sprintf("地图%03d:%s",id,mapinfos[id].name)
file.write("#{foldername}\n")
map = load_data(sprintf("Data/Map%03d.rxdata",id))
for event in map.events.values
if Time.now.to_i - @t > 5
@t = Time.now.to_i
Graphics.update
end
begin
text = sprintf("事件%03d:%s(%03d,%03d)",event.id,event.name,event.x,event.y)
file.write(text)
for i in 0...event.pages.size
file.write("★★★第#{i+1}页★★★\n")
for j in 0...event.pages.list.size
list = event.pages.list[j]
if list.code == 101 or list.code == 401 or list.code == 102
file.write(list.parameters[0].to_s + "\n")
end
end
end
end
end
end
file.close
p 'done!'
exit
end