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