Module: Lich::Common::GameSettings
- Defined in:
- lib/common/settings/gamesettings.rb
Class Method Summary collapse
-
.[](name) ⇒ Object
Retrieves the value associated with the given setting name.
-
.[]=(name, value) ⇒ Object
Sets the value for the given setting name.
-
.auto ⇒ nil
deprecated
Deprecated.
This method is no longer applicable.
-
.auto=(_val) ⇒ nil
deprecated
Deprecated.
This method is no longer applicable.
-
.autoload ⇒ nil
deprecated
Deprecated.
This method is no longer applicable.
-
.clear ⇒ nil
deprecated
Deprecated.
This method is no longer applicable.
-
.load ⇒ nil
deprecated
Deprecated.
This method is no longer applicable.
-
.save ⇒ nil
deprecated
Deprecated.
This method is no longer applicable.
-
.save_all ⇒ nil
deprecated
Deprecated.
This method is no longer applicable.
-
.to_hash ⇒ Hash
Converts the game settings to a hash.
Class Method Details
.[](name) ⇒ Object
Retrieves the value associated with the given setting name.
14 15 16 |
# File 'lib/common/settings/gamesettings.rb', line 14 def GameSettings.[](name) Settings.to_hash(XMLData.game)[name] end |
.[]=(name, value) ⇒ Object
Sets the value for the given setting name.
25 26 27 |
# File 'lib/common/settings/gamesettings.rb', line 25 def GameSettings.[]=(name, value) Settings.set_script_settings(XMLData.game, name, value) end |
.auto ⇒ nil
This method is no longer applicable.
Retrieves the auto setting (deprecated).
100 101 102 103 |
# File 'lib/common/settings/gamesettings.rb', line 100 def GameSettings.auto Lich.deprecated('GameSettings.auto', 'not using, not applicable,', caller[0], fe_log: true) nil end |
.auto=(_val) ⇒ nil
This method is no longer applicable.
Sets the auto setting (deprecated).
89 90 91 92 |
# File 'lib/common/settings/gamesettings.rb', line 89 def GameSettings.auto=(_val) Lich.deprecated('GameSettings.auto=(val)', 'not using, not applicable,', caller[0], fe_log: true) return nil end |
.autoload ⇒ nil
This method is no longer applicable.
Retrieves the autoload setting (deprecated).
111 112 113 114 |
# File 'lib/common/settings/gamesettings.rb', line 111 def GameSettings.autoload Lich.deprecated('GameSettings.autoload', 'not using, not applicable,', caller[0], fe_log: true) nil end |
.clear ⇒ nil
This method is no longer applicable.
Clears game settings (deprecated).
77 78 79 80 |
# File 'lib/common/settings/gamesettings.rb', line 77 def GameSettings.clear Lich.deprecated('GameSettings.clear', 'not using, not applicable,', caller[0], fe_log: true) nil end |
.load ⇒ nil
This method is no longer applicable.
Loads game settings (deprecated).
44 45 46 47 |
# File 'lib/common/settings/gamesettings.rb', line 44 def GameSettings.load Lich.deprecated('GameSettings.load', 'not using, not applicable,', caller[0], fe_log: true) nil end |
.save ⇒ nil
This method is no longer applicable.
Saves game settings (deprecated).
55 56 57 58 |
# File 'lib/common/settings/gamesettings.rb', line 55 def GameSettings.save Lich.deprecated('GameSettings.save', 'not using, not applicable,', caller[0], fe_log: true) nil end |
.save_all ⇒ nil
This method is no longer applicable.
Saves all game settings (deprecated).
66 67 68 69 |
# File 'lib/common/settings/gamesettings.rb', line 66 def GameSettings.save_all Lich.deprecated('GameSettings.save_all', 'not using, not applicable,', caller[0], fe_log: true) nil end |
.to_hash ⇒ Hash
Converts the game settings to a hash.
34 35 36 |
# File 'lib/common/settings/gamesettings.rb', line 34 def GameSettings.to_hash Settings.to_hash(XMLData.game) end |