protected override void DoInitialize(object data) { SharedSaveGame d = data as SharedSaveGame; MusicVolume = d.MusicVolume; SfxVolume = d.SfxVolume; HighScores = d.HighScores; FullScreen = d.FullScreen; ShowHelpBar = d.ShowHelpBar; HighScores.Initialize(); }
protected override void DoInitialize(object donnee) { SaveGame d = donnee as SaveGame; Progress = d.Progress; Scores = d.Scores; Tutorials = d.Tutorials; CurrentWorld = d.CurrentWorld; Progress.Initialize(); Scores.Initialize(); Tutorials.Initialize(); }
private void FirstLoad() { MusicVolume = Main.Options.MusicVolume; SfxVolume = Main.Options.SfxVolume; FullScreen = Main.Options.FullScreen; ShowHelpBar = Main.Options.ShowHelpBar; HighScores = new SerializableDictionaryProxy<int, HighScores>(); Save(); Loaded = true; }
private void FirstLoad() { Progress = new SerializableDictionaryProxy<int, int>(); Scores = new SerializableDictionaryProxy<int, int>(); Tutorials = new SerializableDictionaryProxy<int, int>(); CurrentWorld = 0; Persistence.SaveData(this.Name); Loaded = true; }