示例#1
0
    public void SetClustIndex(int clustIndex)
    {
        this.MyAddress  = new RoomAddress(WorldIndex, clustIndex);
        this.IsUnlocked = SaveStorage.GetBool(SaveKeys.ClustIsUnlocked(MyAddress), false);
        if (GameProperties.IsFirstCluster(MyAddress))
        {
            this.IsUnlocked = true;
        }                                                                         // First cluster is ALWAYS unlocked.
        //this.IsUnlocked = true; // TEMP!! ALL clusters start unlocked!! Test!

        // Set NumSnacksReq
        NumSnacksReq = GameProperties.ClustNumSnacksReq(MyAddress);
        // NOTE: Doesn't seem as if we need to update Rooms, so I'm not doing that.
    }
示例#2
0
 // ----------------------------------------------------------------
 //  Doers (Setters)
 // ----------------------------------------------------------------
 public void SetIsUnlocked(bool val)
 {
     IsUnlocked = val;
     SaveStorage.SetBool(SaveKeys.ClustIsUnlocked(MyAddress), IsUnlocked);
 }