Class: Configs::SaveConfig

Inherits:
Object show all
Defined in:
scripts/01450 Systems/00106 Save Load/00001 Configs.rb

Defined Under Namespace

Modules: Project

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_filenameString

Get the base filename of the save

Returns:



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_saveBoolean

Tell if the player is allowed to save over another save

Returns:

  • (Boolean)


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_countInteger

Number of save the player can have

Returns:



5
6
7
# File 'scripts/01450 Systems/00106 Save Load/00001 Configs.rb', line 5

def maximum_save_count
  @maximum_save_count
end

#save_headerString

Get the header of the save file (preventing other fangames to read the save if changed)

Returns:



8
9
10
# File 'scripts/01450 Systems/00106 Save Load/00001 Configs.rb', line 8

def save_header
  @save_header
end

#save_keyInteger

Get the save key (preventing other fangames to read the save if changed)

Returns:



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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


21
22
23
# File 'scripts/01450 Systems/00106 Save Load/00001 Configs.rb', line 21

def unlimited_saves?
  @maximum_save_count == 0
end