def export_common_event(event_id)
event = $data_common_events[event_id]
return if event == nil
data = load_data("Data/CommonEventsBackup.rxdata") # 要求事先建立好一个文件,文件里面存的是一个Array
data << event
file = File.open("Data/CommonEventsBackup.rxdata", "wb")
marshal.dump(data, file)
file.close
end
def export_common_event(event_id)
event = $data_common_events[event_id]
return if event == nil
data = load_data("Data/CommonEventsBackup.rxdata") # 要求事先建立好一个文件,文件里面存的是一个Array
data << event
file = File.open("Data/CommonEventsBackup.rxdata", "wb")
marshal.dump(data, file)
file.close
end