Example #1
0
 public void OnConnectedToMaster()
 {
     if (ConnectedToMaster != null)
     {
         ConnectedToMaster.Invoke(this);
     }
 }
Example #2
0
 public override void OnConnectedToMaster()
 {
     base.OnConnectedToMaster();
     ConnectingToMaster = false;
     Debug.Log("Connected to Master!");
     ConnectedToMaster?.Invoke();
 }
Example #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>();
 }
Example #4
0
 public void OnConnectedToMasterServer()
 {
     ConnectedToMaster?.Invoke();
 }
Example #5
0
 public void OnConnectedToMaster(string regionCode)
 {
     ConnectedToMaster?.Invoke(regionCode);
 }