示例#1
0
 // ----------------------------------------------------------------
 //  Doers
 // ----------------------------------------------------------------
 public void SetDidCompleteLevel(bool _didCompleteLevel)
 {
     if (DidCompleteLevel != _didCompleteLevel)
     {
         DidCompleteLevel = _didCompleteLevel;
         SaveStorage.SetBool(SaveKeys.DidCompleteLevel(myAddress), DidCompleteLevel);
     }
 }
示例#2
0
    // ----------------------------------------------------------------
    //  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));
    }