public int GetViewerCoins() { if (ToolkitSettings.SyncStreamLabs) { coins = StreamLabs.GetViewerPoints(this); } return(coins); }
public void SetViewerCoins(int coins) { this.coins = coins; if (ToolkitSettings.SyncStreamLabs) { StreamLabs.SetViewerPoints(this); } }
public void TakeViewerCoins(int coins) { if (ToolkitSettings.SyncStreamLabs) { this.coins = StreamLabs.GetViewerPoints(this); } SetViewerCoins(this.coins - coins); }
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); } }