Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
Untitled diff
作成日
7 年前
差分は期限切れになりません
クリア
エクスポート
共有
説明
1 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
30 行
すべてコピー
1 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
30 行
すべてコピー
public void OnSafetyCarEvent()
public void OnSafetyCarEvent()
{
{
コピー
コピー済み
コピー
コピー済み
if (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.
isUsingAIForPlayerDrivers
)
if (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.
isUsingAIForPitting
)
{
{
bool flag = false;
bool flag = false;
float mAggressiveness = this.mVehicle.driver.contract.GetTeam().aiWeightings.mAggressiveness;
float mAggressiveness = this.mVehicle.driver.contract.GetTeam().aiWeightings.mAggressiveness;
float num = Mathf.Clamp01(1f - this.mVehicle.pathController.GetRaceDistanceTraveled01());
float num = Mathf.Clamp01(1f - this.mVehicle.pathController.GetRaceDistanceTraveled01());
float num2 = GameUtility.MilesToMeters(Game.instance.sessionManager.eventDetails.circuit.trackLengthMiles) * (float)Game.instance.sessionManager.lapCount;
float num2 = GameUtility.MilesToMeters(Game.instance.sessionManager.eventDetails.circuit.trackLengthMiles) * (float)Game.instance.sessionManager.lapCount;
float num3 = num2 * num;
float num3 = num2 * num;
float num4 = (mAggressiveness >= 0.5f) ? 0.55f : 0.35f;
float num4 = (mAggressiveness >= 0.5f) ? 0.55f : 0.35f;
TyreSet tyreSet = this.mVehicle.setup.currentSetup.tyreSet;
TyreSet tyreSet = this.mVehicle.setup.currentSetup.tyreSet;
if (tyreSet.GetCondition() < num4 && tyreSet.GetOptimalTyreDistance() < num3)
if (tyreSet.GetCondition() < num4 && tyreSet.GetOptimalTyreDistance() < num3)
{
{
flag = true;
flag = true;
}
}
ChampionshipRules rules = this.mVehicle.championship.rules;
ChampionshipRules rules = this.mVehicle.championship.rules;
if (rules.isRefuelingOn)
if (rules.isRefuelingOn)
{
{
float fuelDistance = this.mVehicle.performance.fuel.GetFuelDistance();
float fuelDistance = this.mVehicle.performance.fuel.GetFuelDistance();
if (this.mVehicle.performance.fuel.GetNormalisedFuelLevel() < num4 && fuelDistance < num3)
if (this.mVehicle.performance.fuel.GetNormalisedFuelLevel() < num4 && fuelDistance < num3)
{
{
flag = true;
flag = true;
}
}
}
}
if (flag)
if (flag)
{
{
this.PlanPitstop();
this.PlanPitstop();
}
}
}
}
}
}
保存された差分
原文
ファイルを開く
public void OnSafetyCarEvent() { if (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.isUsingAIForPlayerDrivers) { bool flag = false; float mAggressiveness = this.mVehicle.driver.contract.GetTeam().aiWeightings.mAggressiveness; float num = Mathf.Clamp01(1f - this.mVehicle.pathController.GetRaceDistanceTraveled01()); float num2 = GameUtility.MilesToMeters(Game.instance.sessionManager.eventDetails.circuit.trackLengthMiles) * (float)Game.instance.sessionManager.lapCount; float num3 = num2 * num; float num4 = (mAggressiveness >= 0.5f) ? 0.55f : 0.35f; TyreSet tyreSet = this.mVehicle.setup.currentSetup.tyreSet; if (tyreSet.GetCondition() < num4 && tyreSet.GetOptimalTyreDistance() < num3) { flag = true; } ChampionshipRules rules = this.mVehicle.championship.rules; if (rules.isRefuelingOn) { float fuelDistance = this.mVehicle.performance.fuel.GetFuelDistance(); if (this.mVehicle.performance.fuel.GetNormalisedFuelLevel() < num4 && fuelDistance < num3) { flag = true; } } if (flag) { this.PlanPitstop(); } } }
変更されたテキスト
ファイルを開く
public void OnSafetyCarEvent() { if (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.isUsingAIForPitting) { bool flag = false; float mAggressiveness = this.mVehicle.driver.contract.GetTeam().aiWeightings.mAggressiveness; float num = Mathf.Clamp01(1f - this.mVehicle.pathController.GetRaceDistanceTraveled01()); float num2 = GameUtility.MilesToMeters(Game.instance.sessionManager.eventDetails.circuit.trackLengthMiles) * (float)Game.instance.sessionManager.lapCount; float num3 = num2 * num; float num4 = (mAggressiveness >= 0.5f) ? 0.55f : 0.35f; TyreSet tyreSet = this.mVehicle.setup.currentSetup.tyreSet; if (tyreSet.GetCondition() < num4 && tyreSet.GetOptimalTyreDistance() < num3) { flag = true; } ChampionshipRules rules = this.mVehicle.championship.rules; if (rules.isRefuelingOn) { float fuelDistance = this.mVehicle.performance.fuel.GetFuelDistance(); if (this.mVehicle.performance.fuel.GetNormalisedFuelLevel() < num4 && fuelDistance < num3) { flag = true; } } if (flag) { this.PlanPitstop(); } } }
違いを見つける