protected override void OnClientLoaded(MsgClientLoaded msg) { //using (var a = new FileStream("Test.txt", FileMode.Append, FileAccess.Write)) //using (var b = new StreamWriter(a)) //{ // b.WriteLine($"{DateTime.Now.TimeOfDay}: OnClientLoaded Called {msg.CarId}"); //} }
public override void OnClientLoaded(MsgClientLoaded msg) { // Sending conditions directly to all newly connected: if (_weatherCurrent != null && _weatherNext != null) { PluginManager.SendCspCommand(msg.CarId, GetSerializedCspCommand(_weatherCurrent, _weatherNext)); } }
protected override void OnClientLoaded(MsgClientLoaded msg) { DriverInfo driverReport; if (this.PluginManager.TryGetDriverInfo(msg.CarId, out driverReport)) { driverReport.ConnectedTimestamp = DateTime.UtcNow.Ticks; string welcome = CreateWelcomeMessage(driverReport); if (!string.IsNullOrWhiteSpace(welcome)) { foreach (string line in welcome.Split('|')) { this.PluginManager.SendChatMessage(msg.CarId, line); } } } }
public virtual void OnClientLoaded(MsgClientLoaded msg) { }
protected override void OnClientLoaded(MsgClientLoaded msg) { MRBackend.RequestDriverLoadedAsync(msg.CarId); }
public override void OnClientLoaded(MsgClientLoaded msg) { // Sending conditions directly to all newly connected: PluginManager.SendCspCommand(msg.CarId, GetCspCommand()); }
protected override void OnClientLoaded(MsgClientLoaded msg) { base.OnClientLoaded(msg); this.form.BeginInvoke(new Action(this.form.UpdateGui), null); this.form.BeginInvoke(new Action <MsgClientLoaded>(this.form.OnClientLoadedG), msg); }
public void OnClientLoadedG(MsgClientLoaded msg) { DriverInfo Driver = this.pluginManager.GetDriverInfos().Where(d => msg.CarId == d.CarId).First(); listBox_LastConnectedGUID.Items.Add(Driver.DriverGuid + ": " + Driver.DriverName); }
protected internal virtual void OnClientLoaded(MsgClientLoaded msg) { }