Settings() public method

public Settings ( bool twoSidedTable, bool allowSpectators, bool muteSpectators ) : void
twoSidedTable bool
allowSpectators bool
muteSpectators bool
return void
Example #1
0
 public void Settings(bool twoSidedTable, bool allowSpectators, bool muteSpectators)
 {
     if (State.Instance.GetPlayer(_sender).Id == 1)
     {
         if (this.GameStarted)
         {
             _gameSettings.AllowSpectators         = allowSpectators;
             _gameSettings.MuteSpectators          = muteSpectators;
             State.Instance.Engine.Game.Spectators = allowSpectators;
             _broadcaster.Settings(_gameSettings.UseTwoSidedTable, allowSpectators, muteSpectators);
         }
         else
         {
             _gameSettings.UseTwoSidedTable        = twoSidedTable;
             _gameSettings.AllowSpectators         = allowSpectators;
             _gameSettings.MuteSpectators          = muteSpectators;
             State.Instance.Engine.Game.Spectators = allowSpectators;
             _broadcaster.Settings(twoSidedTable, allowSpectators, muteSpectators);
         }
     }
 }
Example #2
0
 public void Settings(bool twoSidedTable)
 {
     _gameSettings.UseTwoSidedTable = twoSidedTable;
     _broadcaster.Settings(twoSidedTable);
 }