Esempio n. 1
0
 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.");
 }
Esempio n. 2
0
        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()}");
        }
Esempio n. 3
0
 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;
 }