Class: Configs::SaveConfig
- Defined in:
- scripts/01450 Systems/00106 Save Load/00001 Configs.rb
Defined Under Namespace
Modules: Project
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
14 15 16 |
# File 'scripts/01450 Systems/00106 Save Load/00001 Configs.rb', line 14 def base_filename @base_filename end |
#can_save_on_any_save ⇒ Boolean
Tell if the player is allowed to save over another save
17 18 19 |
# File 'scripts/01450 Systems/00106 Save Load/00001 Configs.rb', line 17 def can_save_on_any_save @can_save_on_any_save end |
#maximum_save_count ⇒ Integer
Number of save the player can have
5 6 7 |
# File 'scripts/01450 Systems/00106 Save Load/00001 Configs.rb', line 5 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)
8 9 10 |
# File 'scripts/01450 Systems/00106 Save Load/00001 Configs.rb', line 8 def save_header @save_header end |
#save_key ⇒ Integer
Get the save key (preventing other fangames to read the save if changed)
11 12 13 |
# File 'scripts/01450 Systems/00106 Save Load/00001 Configs.rb', line 11 def save_key @save_key end |
Instance Method Details
#single_save? ⇒ Boolean
Tell if the player is restricted to 1 save
27 28 29 |
# File 'scripts/01450 Systems/00106 Save Load/00001 Configs.rb', line 27 def single_save? @maximum_save_count == 1 end |
#unlimited_saves? ⇒ Boolean
Tell if the player can have unlimited saves
21 22 23 |
# File 'scripts/01450 Systems/00106 Save Load/00001 Configs.rb', line 21 def unlimited_saves? @maximum_save_count == 0 end |