public bool BuyableUnlocked(BUYABLE buyable) { switch (buyable) { case BUYABLE.HEARTS: case BUYABLE.LAUNCH: case BUYABLE.VIEW: return(true); case BUYABLE.PU_HEARTS: return(GetLevelBeaten(BOSS_TYPE.HEART)); } return(false); }
public int GetBuyablePrice(BUYABLE buyable) { switch (buyable) { case BUYABLE.HEARTS: return(GetBouncePrice()); case BUYABLE.LAUNCH: return(GetLaunchPrice()); case BUYABLE.VIEW: return(GetViewPrice()); } return(int.MaxValue); }
public void SetBuyableLevel(BUYABLE buyable, int level) { _buyableLevels[buyable] = level; }
public int GetBuyableLevel(BUYABLE buyable) { return(_buyableLevels[buyable]); }