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); }
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); }