Class: Game_SelfSwitches
- Defined in:
- scripts/00600 Script_RMXP/00100 Event_Living_Data.rb
Overview
Describe switches that are related to a specific event
Instance Method Summary collapse
-
#[](key) ⇒ Boolean
Get the state of a self switch.
-
#[]=(key, value)
Set the state of a self switch.
-
#initialize ⇒ Game_SelfSwitches
constructor
Default initialization.
Constructor Details
#initialize ⇒ Game_SelfSwitches
Default initialization
87 88 89 |
# File 'scripts/00600 Script_RMXP/00100 Event_Living_Data.rb', line 87 def initialize @data = {} end |
Instance Method Details
#[](key) ⇒ Boolean
Get the state of a self switch
94 95 96 |
# File 'scripts/00600 Script_RMXP/00100 Event_Living_Data.rb', line 94 def [](key) return @data[key] end |
#[]=(key, value)
Set the state of a self switch
101 102 103 |
# File 'scripts/00600 Script_RMXP/00100 Event_Living_Data.rb', line 101 def []=(key, value) @data[key] = value end |