Auteur: Yukihiro matsumoto
#============================================
# ‘ Game_SelfSwitches
#--------------------------------------------
# @ZtXCb`π΅€NXΕ·BgέέNX Hash Μbp[Ε·B±ΜN
# XΜCX^XΝ $game_self_switches ΕQΖ³κά·B
#============================================
class Game_SelfSwitches
#------------------------------------------
# IuWFNgϊ»
#------------------------------------------
def initialize
@data = {}
end
#------------------------------------------
# ZtXCb`ΜζΎ
# key : L[
#------------------------------------------
def [](key)
return @data[key] == true ? true : false
end
#------------------------------------------
# ZtXCb`Μέθ
# key : L[
# value : ON (true) / OFF (false)
#------------------------------------------
def []=(key, value)
@data[key] = value
end
end |
|