class RSGuitarTech::SavedGame
Attributes
filename[RW]
json[RW]
Public Class Methods
from(filename)
click to toggle source
# File lib/rsgt/saved_game.rb, line 6 def self.from(filename) file = File.open filename profile = RSGuitarTech::EncryptedSteamFile.read(file) self.new(profile.uncompressed_json, filename) end
new(json, filename)
click to toggle source
# File lib/rsgt/saved_game.rb, line 12 def initialize(json, filename) @json = json @filename = filename end
Public Instance Methods
learn_a_song()
click to toggle source
# File lib/rsgt/saved_game.rb, line 33 def learn_a_song @learn_a_song ||= SongCollection.new(LearnASong, json["Songs"]) end
options()
click to toggle source
# File lib/rsgt/saved_game.rb, line 17 def options json["Options"] end
score_attack()
click to toggle source
# File lib/rsgt/saved_game.rb, line 29 def score_attack @score_attack ||= SongCollection.new(ScoreAttack, json["SongsSA"]) end
song_statistics()
click to toggle source
# File lib/rsgt/saved_game.rb, line 25 def song_statistics @song_statistics ||= SongCollection.new(Statistics, json["Stats"]["Songs"]) end
statistics()
click to toggle source
# File lib/rsgt/saved_game.rb, line 21 def statistics @statistics ||= Statistics.new(json["Stats"]) end