예제 #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);
 }