protected override void connectImpl() { this.client = new GalaxySocket(ModCore.multiplayer.protocolVersion); GalaxyInstance.User().GetGalaxyID(); this.client.JoinLobby(this.lobbyId); ModCore.monitor.Log("Success on generating modded galaxy client."); }
public static void Prefix(ref ServerPrivacy ___privacy, GalaxySocket __instance) { if (CoopMenuHolder.PublicCheckBox.IsChecked) { ___privacy = ServerPrivacy.Public; } Console.WriteLine($"TRY CREATE LOBBY GALAXY, PRIVACY = {___privacy.ToString()}"); }
public override void disconnect(bool neatly = true) { if (this.client == null) { return; } Console.WriteLine("Disconnecting from server {0}", (object)this.lobbyId); this.client.Close(); this.client = (GalaxySocket)null; this.connectionMessage = (string)null; }