Ejemplo n.º 1
0
 public int GetViewerCoins()
 {
     if (ToolkitSettings.SyncStreamLabs)
     {
         coins = StreamLabs.GetViewerPoints(this);
     }
     return(coins);
 }
Ejemplo n.º 2
0
 public void SetViewerCoins(int coins)
 {
     this.coins = coins;
     if (ToolkitSettings.SyncStreamLabs)
     {
         StreamLabs.SetViewerPoints(this);
     }
 }
Ejemplo n.º 3
0
        public void TakeViewerCoins(int coins)
        {
            if (ToolkitSettings.SyncStreamLabs)
            {
                this.coins = StreamLabs.GetViewerPoints(this);
            }

            SetViewerCoins(this.coins - coins);
        }
Ejemplo n.º 4
0
 public void GiveViewerCoins(int coins)
 {
     if (ToolkitSettings.SyncStreamLabs)
     {
         this.coins = StreamLabs.GetViewerPoints(this);
     }
     // do not let user go below 0 coins
     if (this.coins + coins < 0)
     {
         this.coins = 0;
         SetViewerCoins(0);
     }
     else
     {
         SetViewerCoins(this.coins + coins);
     }
 }