public Task MatchEvent(MatchServerEvent e) { if (Room == null) { return(Task.CompletedTask); } Scheduler.Add(() => { if (Room == null) { return; } switch (e) { case CountdownChangedEvent countdownChangedEvent: Room.Countdown = countdownChangedEvent.Countdown; break; } RoomUpdated?.Invoke(); }, false); return(Task.CompletedTask); }
public Task MatchEvent(MatchServerEvent e) { // not used by any match types just yet. return(Task.CompletedTask); }