Class: Configs::SaveConfig

Inherits:
Object show all
Defined in:
docs/4_Systems_106_Save_Load.rb

Overview

Configuration of the saves

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_filename ⇒ String

Get the base filename of the save

Returns:



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

Returns:

  • (Boolean)


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

Returns:

  • (Integer) —

    0 = infinite



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)

Returns:



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)

Returns:

  • (Integer)


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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


21
22
# File 'docs/4_Systems_106_Save_Load.rb', line 21

def unlimited_saves?
end