private async Task Level() { var promise = new TaskCompletionSource <WSLevelChoice>(); Task.Factory.StartNew(() => promise.SetResult(ChooseLevelUp())); var result = await promise.Task; MustLevel = false; LevelZone.Put(Clock.TakeAt((int)result)); foreach (var card in Clock.Clear()) { WaitingRoom.Put(card); } //await CheckInterrupts(); }
public void UnregisterZone(LevelZone zone) { zones.Remove(zone); }
public void RegisterZone(LevelZone zone) { zones.Add(zone); }