/// <summary> /// Connects to Master and loads the Plugins /// </summary> public void Start() { _speedDate.Start(); Lobbies = _speedDate.PluginProver.Get <LobbiesPlugin>(); PeerInfo = _speedDate.PluginProver.Get <PeerInfoPlugin>(); Profiles = _speedDate.PluginProver.Get <ProfilesPlugin>(); Rooms = _speedDate.PluginProver.Get <RoomsPlugin>(); }
/// <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>(); }
public override void Loaded(IPluginProvider pluginProvider) { // Get dependencies SpawnersPlugin = pluginProvider.Get <SpawnersPlugin>(); RoomsPlugin = pluginProvider.Get <RoomsPlugin>(); }