Class: Configs::SaveConfig
Overview
Configuration of the saves
Instance Attribute Summary collapse
-
#base_filename ⇒ String
Get the base filename of the save.
-
#can_save_on_any_save ⇒ Boolean
Tell if the player is allowed to save over another save.
-
#maximum_save_count ⇒ Integer
Number of save the player can have.
-
#save_header ⇒ String
Get the header of the save file (preventing other fangames to read the save if changed).
-
#save_key ⇒ Integer
Get the save key (preventing other fangames to read the save if changed).
Instance Method Summary collapse
-
#single_save? ⇒ Boolean
Tell if the player is restricted to 1 save.
-
#unlimited_saves? ⇒ Boolean
Tell if the player can have unlimited saves.
Instance Attribute Details
#base_filename ⇒ String
Get the base filename of the save
15 16 17 |
# File 'docs/4_Systems_106_Save_Load.rb', line 15 def base_filename @base_filename end |
#can_save_on_any_save ⇒ Boolean
Tell if the player is allowed to save over another save
18 19 20 |
# File 'docs/4_Systems_106_Save_Load.rb', line 18 def can_save_on_any_save @can_save_on_any_save end |
#maximum_save_count ⇒ Integer
Number of save the player can have
6 7 8 |
# File 'docs/4_Systems_106_Save_Load.rb', line 6 def maximum_save_count @maximum_save_count end |
#save_header ⇒ String
Get the header of the save file (preventing other fangames to read the save if changed)
9 10 11 |
# File 'docs/4_Systems_106_Save_Load.rb', line 9 def save_header @save_header end |
#save_key ⇒ Integer
Get the save key (preventing other fangames to read the save if changed)
12 13 14 |
# File 'docs/4_Systems_106_Save_Load.rb', line 12 def save_key @save_key end |
Instance Method Details
#single_save? ⇒ Boolean
Tell if the player is restricted to 1 save
25 26 |
# File 'docs/4_Systems_106_Save_Load.rb', line 25 def single_save? end |
#unlimited_saves? ⇒ Boolean
Tell if the player can have unlimited saves
21 22 |
# File 'docs/4_Systems_106_Save_Load.rb', line 21 def unlimited_saves? end |