Project1

标题: 重置游戏数据 [打印本页]

作者: taroxd    时间: 2014-12-19 15:56
标题: 重置游戏数据
RUBY 代码复制
  1. #----------------------------------------------------------------------------
  2. # ● 重置游戏数据
  3. #----------------------------------------------------------------------------
  4.  
  5. module Taroxd end
  6.  
  7. module Taroxd::ClearData
  8.   #------------------------------------------------------------------------
  9.   # ● 导入
  10.   #------------------------------------------------------------------------
  11.   Game_Switches.send     :include, self
  12.   Game_Variables.send    :include, self
  13.   Game_SelfSwitches.send :include, self
  14.   #------------------------------------------------------------------------
  15.   # ● 重置
  16.   #------------------------------------------------------------------------
  17.   def clear
  18.     @data.clear
  19.     on_change
  20.     self
  21.   end
  22.   alias reset clear
  23. end





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1