Fix network intercept and reference paths

This commit is contained in:
John Gross
2017-04-15 16:47:56 -07:00
parent 2858c35c38
commit 32f5147060
29 changed files with 564 additions and 380 deletions

View File

@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Sandbox.Game.Gui;
namespace Torch.Server.Views
{
/// <summary>
/// Interaction logic for WorldSelectControl.xaml
/// </summary>
public partial class WorldSelectControl : UserControl
{
public WorldSelectControl()
{
InitializeComponent();
//LoadWorlds();
}
public void LoadWorlds(string path = null)
{
WorldList.Items.Clear();
var worlds = new MyLoadWorldInfoListResult(path);
worlds.Task.Wait();
foreach (var world in worlds.AvailableSaves)
{
WorldList.Items.Add(world.Item1);
}
}
}
}