コード例 #1
0
ファイル: Program.cs プロジェクト: flitzi/acplugins
        protected override void OnCarInfo(MsgCarInfo msg)
        {
            PluginManager.Log(DateTime.Now.TimeOfDay.ToString() + "- CarInfo: " + msg.CarId + ", " + msg.DriverName + "@" + msg.CarModel + ", Connected=" + msg.IsConnected);

            // To prevent a bug in communication we will only send when the Car IsConnected - discos only via the corresponding event please.
            if (msg.IsConnected)
            {
                HandleClientActions(LiveDataServer.RandomCarInfo(CurrentSessionGuid, msg.CarId, msg.CarModel, msg.DriverName, msg.DriverGuid, msg.IsConnected, GetCurrentRaceTimeMS(msg)));
            }
        }
コード例 #2
0
ファイル: AcServerPlugin.cs プロジェクト: flitzi/acplugins
 protected internal virtual void OnCarInfo(MsgCarInfo msg)
 {
 }