public override void initialize() { Console.WriteLine("Starting Galaxy server"); host = GalaxyInstance.User().GetGalaxyID(); galaxyPersonaDataChangedListener = new GalaxyPersonaDataChangedListener(onPersonaDataChanged); server = new GalaxySocket("1.5.1"); server.CreateLobby(Game1.options.serverPrivacy, (uint)(Game1.multiplayer.playerLimit * 2)); }
public override void disconnect(bool neatly = true) { if (client != null) { Console.WriteLine("Disconnecting from server {0}", lobbyId); client.Close(); client = null; connectionMessage = null; } }
protected override void connectImpl() { client = new GalaxySocket("1.5.1"); GalaxyInstance.User().GetGalaxyID(); client.JoinLobby(lobbyId, onReceiveError); }
protected override void connectImpl() { client = new GalaxySocket(Game1.multiplayer.protocolVersion); GalaxyInstance.User().GetGalaxyID(); client.JoinLobby(lobbyId); }