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