Exemple #1
0
 public void OnConnectedToMaster()
 {
     if (ConnectedToMaster != null)
     {
         ConnectedToMaster.Invoke(this);
     }
 }
 public override void OnConnectedToMaster()
 {
     base.OnConnectedToMaster();
     ConnectingToMaster = false;
     Debug.Log("Connected to Master!");
     ConnectedToMaster?.Invoke();
 }
Exemple #3
0
 /// <summary>
 /// Connects to Master and loads the Plugins
 /// </summary>
 public void Start(string configFile)
 {
     _client.Started += () => ConnectedToMaster?.Invoke();
     _client.Start(new FileConfigProvider($@"{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}\{configFile}"));
     Lobbies  = _client.GetPlugin <LobbiesPlugin>();
     PeerInfo = _client.GetPlugin <PeerInfoPlugin>();
     Profiles = _client.GetPlugin <ProfilesPlugin>();
     Rooms    = _client.GetPlugin <RoomsPlugin>();
 }
Exemple #4
0
 public void OnConnectedToMasterServer()
 {
     ConnectedToMaster?.Invoke();
 }
Exemple #5
0
 public void OnConnectedToMaster(string regionCode)
 {
     ConnectedToMaster?.Invoke(regionCode);
 }