Exemplo n.º 1
0
 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);
             }
         }
     }
 }
Exemplo n.º 2
0
 protected override void OnClientLoaded(MsgClientLoaded msg)
 {
     base.OnClientLoaded(msg);
     this.form.BeginInvoke(new Action(this.form.UpdateGui), null);
 }
Exemplo n.º 3
0
 protected internal virtual void OnClientLoaded(MsgClientLoaded msg)
 {
 }
Exemplo n.º 4
0
 protected override void OnClientLoaded(MsgClientLoaded msg)
 {
     HandleClientActions(LiveDataServer.RequestDriverLoaded(CurrentSessionGuid, msg.CarId));
 }