Dedicated server actually works to some extent

Clients can connect and use chat, the sub list isn't synced properly and there's no way to start a game yet
This commit is contained in:
juanjp600
2017-06-19 15:12:19 -03:00
parent 16bc68d768
commit fbe7dfc6fb
10 changed files with 84 additions and 12 deletions
@@ -33,6 +33,18 @@ namespace Barotrauma
}
}
public override void Select()
{
List<Submarine> subsToShow = Submarine.SavedSubmarines.Where(s => !s.HasTag(SubmarineTag.HideInMenus)).ToList();
SelectedSub = subsToShow[0];
SelectedShuttle = subsToShow[0]; //TODO: don't use the same sub as a shuttle by default
DebugConsole.NewMessage("Selected sub: " + SelectedSub.Name, Color.White);
DebugConsole.NewMessage("Selected shuttle: " + SelectedShuttle.Name, Color.White);
}
private List<Submarine> subs = new List<Submarine>();
public List<Submarine> GetSubList()
{