Пример #1
0
 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));
 }
Пример #2
0
 public override void disconnect(bool neatly = true)
 {
     if (client != null)
     {
         Console.WriteLine("Disconnecting from server {0}", lobbyId);
         client.Close();
         client            = null;
         connectionMessage = null;
     }
 }
Пример #3
0
 protected override void connectImpl()
 {
     client = new GalaxySocket("1.5.1");
     GalaxyInstance.User().GetGalaxyID();
     client.JoinLobby(lobbyId, onReceiveError);
 }
Пример #4
0
 protected override void connectImpl()
 {
     client = new GalaxySocket(Game1.multiplayer.protocolVersion);
     GalaxyInstance.User().GetGalaxyID();
     client.JoinLobby(lobbyId);
 }