Settings() 공개 메소드

public Settings ( bool twoSidedTable, bool allowSpectators, bool muteSpectators ) : void
twoSidedTable bool
allowSpectators bool
muteSpectators bool
리턴 void
예제 #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);
         }
     }
 }
예제 #2
0
파일: Handler.cs 프로젝트: totalgit/OCTGN
 public void Settings(bool twoSidedTable)
 {
     _gameSettings.UseTwoSidedTable = twoSidedTable;
     _broadcaster.Settings(twoSidedTable);
 }