private static Point ToDirection(KeyDownEvent e) { return e.Key == VirtualKey.Left ? Point.West : e.Key == VirtualKey.Right ? Point.East : e.Key == VirtualKey.Up ? Point.North : e.Key == VirtualKey.Down ? Point.South : Point.Zero; }
private async void OnResetKeyDown(KeyDownEvent _) { if (GameClient != null) await GameClient.ResetRegionAsync(); }