def load_out File.open("Data/dead.rvdata2", "rb") do |file| #读取的时候需要将数值存入变量。 $game_variables.hash_data=Marshal.load(file) end end def save_in File.open("Data/dead.rvdata2","wb") do |file| Marshal.dump($game_variables.hash_data,file) end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |