// ---------------------------------------------------------------- // Doers // ---------------------------------------------------------------- public void SetDidCompleteLevel(bool _didCompleteLevel) { if (DidCompleteLevel != _didCompleteLevel) { DidCompleteLevel = _didCompleteLevel; SaveStorage.SetBool(SaveKeys.DidCompleteLevel(myAddress), DidCompleteLevel); } }
// ---------------------------------------------------------------- // Initialize // ---------------------------------------------------------------- public LevelData(LevelAddress myAddress, LevelDataXML ldxml) { // Basic properties this.myAddress = myAddress; boardData = new BoardData(ldxml); startingZoom = ldxml.zoom; // LOAD up stats! DidCompleteLevel = SaveStorage.GetBool(SaveKeys.DidCompleteLevel(myAddress)); }