Exemple #1
0
        public Main(ILobby lobby, IEventRunner eventRunner, IDiscordHandler discord, ISpreadsheet sheet, ScriptInput input) : base(eventRunner)
        {
            _lobby       = lobby;
            _discord     = discord;
            _eventRunner = eventRunner;
            _sheet       = sheet;
            _input       = input;

            _sorter = new LobbySort(eventRunner, lobby, input.CaptainA, input.CaptainB);
        }
Exemple #2
0
 public void OnLoad(ILobby lobby, IEventRunner eventRunner, IDiscordHandler discord, ISpreadsheet sheet, string scriptInputJson)
 {
     _scriptInput = Newtonsoft.Json.JsonConvert.DeserializeObject <ScriptInput>(scriptInputJson);
     _main        = new Main(lobby, eventRunner, discord, sheet, _scriptInput);
 }