Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
Untitled diff
생성일
7년 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
3 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
57 행
복사
3 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
57 행
복사
public void OnEnterGate(int inGateID, PathData.GateType inGateType)
public void OnEnterGate(int inGateID, PathData.GateType inGateType)
{
{
if (Game.instance.sessionManager.eventDetails.currentSession.sessionType == SessionDetails.SessionType.Race)
if (Game.instance.sessionManager.eventDetails.currentSession.sessionType == SessionDetails.SessionType.Race)
{
{
if (inGateID % 5 == 0)
if (inGateID % 5 == 0)
{
{
this.UpdateDrivingStyleAndEngineModes();
this.UpdateDrivingStyleAndEngineModes();
}
}
if (this.mVehicle.pathController.GetCurrentPath().pathType == PathController.PathType.Track)
if (this.mVehicle.pathController.GetCurrentPath().pathType == PathController.PathType.Track)
{
{
int num = Game.instance.sessionManager.circuit.pitlaneEntryTrackPathID - 5;
int num = Game.instance.sessionManager.circuit.pitlaneEntryTrackPathID - 5;
if (inGateID == num || (inGateType == PathData.GateType.Sector && inGateID != 0))
if (inGateID == num || (inGateType == PathData.GateType.Sector && inGateID != 0))
{
{
if (inGateID == num)
if (inGateID == num)
{
{
RacingVehicle vehicleTeamMate = Game.instance.vehicleManager.GetVehicleTeamMate(this.mVehicle);
RacingVehicle vehicleTeamMate = Game.instance.vehicleManager.GetVehicleTeamMate(this.mVehicle);
복사
복사됨
복사
복사됨
if (!this.mVehicle.performance.IsExperiencingCriticalIssue() && (!vehicleTeamMate.isPlayerDriver || Game.instance.sessionManager.
isUsingAIForPlayerDrivers
) && !vehicleTeamMate.behaviourManager.isOutOfRace && vehicleTeamMate.pathState.IsInPitlaneArea() && vehicleTeamMate.setup.PitTimeLeft() > 20f)
if (!this.mVehicle.performance.IsExperiencingCriticalIssue() && (!vehicleTeamMate.isPlayerDriver || Game.instance.sessionManager.
isUsingAIForPitting
) && !vehicleTeamMate.behaviourManager.isOutOfRace && vehicleTeamMate.pathState.IsInPitlaneArea() && vehicleTeamMate.setup.PitTimeLeft() > 20f)
{
{
this.CancelPit();
this.CancelPit();
return;
return;
}
}
}
}
복사
복사됨
복사
복사됨
if (Game.instance.sessionManager.GetLapsRemaining() > 1 && (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.
isUsingAIForPlayerDrivers
) && this.DoesVehicleNeedToPit(inGateID == num) && !Game.instance.sessionManager.isRollingOut)
if (Game.instance.sessionManager.GetLapsRemaining() > 1 && (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.
isUsingAIForPitting
) && this.DoesVehicleNeedToPit(inGateID == num) && !Game.instance.sessionManager.isRollingOut)
{
{
this.PlanPitstop();
this.PlanPitstop();
}
}
}
}
}
}
}
}
else if (this.mVehicle.pathController.GetCurrentPath().pathType == PathController.PathType.Track)
else if (this.mVehicle.pathController.GetCurrentPath().pathType == PathController.PathType.Track)
{
{
int num2 = Game.instance.sessionManager.circuit.pitlaneEntryTrackPathID - 5;
int num2 = Game.instance.sessionManager.circuit.pitlaneEntryTrackPathID - 5;
if (inGateType == PathData.GateType.Sector || inGateID == num2)
if (inGateType == PathData.GateType.Sector || inGateID == num2)
{
{
bool flag = false;
bool flag = false;
if (this.mVehicle.behaviourManager.currentBehaviour.behaviourType == AIBehaviourStateManager.Behaviour.InOutLap && this.mVehicle.timer.HasSetLapTime())
if (this.mVehicle.behaviourManager.currentBehaviour.behaviourType == AIBehaviourStateManager.Behaviour.InOutLap && this.mVehicle.timer.HasSetLapTime())
{
{
PrefGameAIStrategyDifficulty.Type aistrategyDifficulty = App.instance.preferencesManager.gamePreferences.GetAIStrategyDifficulty();
PrefGameAIStrategyDifficulty.Type aistrategyDifficulty = App.instance.preferencesManager.gamePreferences.GetAIStrategyDifficulty();
if (aistrategyDifficulty == PrefGameAIStrategyDifficulty.Type.Realistic && !Game.instance.challengeManager.IsAttemptingChallenge())
if (aistrategyDifficulty == PrefGameAIStrategyDifficulty.Type.Realistic && !Game.instance.challengeManager.IsAttemptingChallenge())
{
{
if (this.mVehicle.strategy.ShouldPitForDifferentTyreTread(this.mVehicle.setup.currentSetup.tyreSet, 0f, true))
if (this.mVehicle.strategy.ShouldPitForDifferentTyreTread(this.mVehicle.setup.currentSetup.tyreSet, 0f, true))
{
{
flag = true;
flag = true;
}
}
}
}
else if (!this.mVehicle.sessionAIOrderController.IsDriverOnIdealTyreTread())
else if (!this.mVehicle.sessionAIOrderController.IsDriverOnIdealTyreTread())
{
{
flag = true;
flag = true;
}
}
}
}
복사
복사됨
복사
복사됨
if ((this.HasCompletedOrderedLapCount() || flag || this.mVehicle.setup.tyreSet.GetCondition() < 0.2f) && !this.mVehicle.strategy.IsGoingToPit() && (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.
isUsingAIForPlayerDrivers
))
if ((this.HasCompletedOrderedLapCount() || flag || this.mVehicle.setup.tyreSet.GetCondition() < 0.2f) && !this.mVehicle.strategy.IsGoingToPit() && (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.
isUsingAIForPitting
))
{
{
this.ReturnToGarage();
this.ReturnToGarage();
}
}
}
}
}
}
}
}
저장된 비교 결과
원본
파일 열기
public void OnEnterGate(int inGateID, PathData.GateType inGateType) { if (Game.instance.sessionManager.eventDetails.currentSession.sessionType == SessionDetails.SessionType.Race) { if (inGateID % 5 == 0) { this.UpdateDrivingStyleAndEngineModes(); } if (this.mVehicle.pathController.GetCurrentPath().pathType == PathController.PathType.Track) { int num = Game.instance.sessionManager.circuit.pitlaneEntryTrackPathID - 5; if (inGateID == num || (inGateType == PathData.GateType.Sector && inGateID != 0)) { if (inGateID == num) { RacingVehicle vehicleTeamMate = Game.instance.vehicleManager.GetVehicleTeamMate(this.mVehicle); if (!this.mVehicle.performance.IsExperiencingCriticalIssue() && (!vehicleTeamMate.isPlayerDriver || Game.instance.sessionManager.isUsingAIForPlayerDrivers) && !vehicleTeamMate.behaviourManager.isOutOfRace && vehicleTeamMate.pathState.IsInPitlaneArea() && vehicleTeamMate.setup.PitTimeLeft() > 20f) { this.CancelPit(); return; } } if (Game.instance.sessionManager.GetLapsRemaining() > 1 && (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.isUsingAIForPlayerDrivers) && this.DoesVehicleNeedToPit(inGateID == num) && !Game.instance.sessionManager.isRollingOut) { this.PlanPitstop(); } } } } else if (this.mVehicle.pathController.GetCurrentPath().pathType == PathController.PathType.Track) { int num2 = Game.instance.sessionManager.circuit.pitlaneEntryTrackPathID - 5; if (inGateType == PathData.GateType.Sector || inGateID == num2) { bool flag = false; if (this.mVehicle.behaviourManager.currentBehaviour.behaviourType == AIBehaviourStateManager.Behaviour.InOutLap && this.mVehicle.timer.HasSetLapTime()) { PrefGameAIStrategyDifficulty.Type aistrategyDifficulty = App.instance.preferencesManager.gamePreferences.GetAIStrategyDifficulty(); if (aistrategyDifficulty == PrefGameAIStrategyDifficulty.Type.Realistic && !Game.instance.challengeManager.IsAttemptingChallenge()) { if (this.mVehicle.strategy.ShouldPitForDifferentTyreTread(this.mVehicle.setup.currentSetup.tyreSet, 0f, true)) { flag = true; } } else if (!this.mVehicle.sessionAIOrderController.IsDriverOnIdealTyreTread()) { flag = true; } } if ((this.HasCompletedOrderedLapCount() || flag || this.mVehicle.setup.tyreSet.GetCondition() < 0.2f) && !this.mVehicle.strategy.IsGoingToPit() && (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.isUsingAIForPlayerDrivers)) { this.ReturnToGarage(); } } } }
수정본
파일 열기
public void OnEnterGate(int inGateID, PathData.GateType inGateType) { if (Game.instance.sessionManager.eventDetails.currentSession.sessionType == SessionDetails.SessionType.Race) { if (inGateID % 5 == 0) { this.UpdateDrivingStyleAndEngineModes(); } if (this.mVehicle.pathController.GetCurrentPath().pathType == PathController.PathType.Track) { int num = Game.instance.sessionManager.circuit.pitlaneEntryTrackPathID - 5; if (inGateID == num || (inGateType == PathData.GateType.Sector && inGateID != 0)) { if (inGateID == num) { RacingVehicle vehicleTeamMate = Game.instance.vehicleManager.GetVehicleTeamMate(this.mVehicle); if (!this.mVehicle.performance.IsExperiencingCriticalIssue() && (!vehicleTeamMate.isPlayerDriver || Game.instance.sessionManager.isUsingAIForPitting) && !vehicleTeamMate.behaviourManager.isOutOfRace && vehicleTeamMate.pathState.IsInPitlaneArea() && vehicleTeamMate.setup.PitTimeLeft() > 20f) { this.CancelPit(); return; } } if (Game.instance.sessionManager.GetLapsRemaining() > 1 && (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.isUsingAIForPitting) && this.DoesVehicleNeedToPit(inGateID == num) && !Game.instance.sessionManager.isRollingOut) { this.PlanPitstop(); } } } } else if (this.mVehicle.pathController.GetCurrentPath().pathType == PathController.PathType.Track) { int num2 = Game.instance.sessionManager.circuit.pitlaneEntryTrackPathID - 5; if (inGateType == PathData.GateType.Sector || inGateID == num2) { bool flag = false; if (this.mVehicle.behaviourManager.currentBehaviour.behaviourType == AIBehaviourStateManager.Behaviour.InOutLap && this.mVehicle.timer.HasSetLapTime()) { PrefGameAIStrategyDifficulty.Type aistrategyDifficulty = App.instance.preferencesManager.gamePreferences.GetAIStrategyDifficulty(); if (aistrategyDifficulty == PrefGameAIStrategyDifficulty.Type.Realistic && !Game.instance.challengeManager.IsAttemptingChallenge()) { if (this.mVehicle.strategy.ShouldPitForDifferentTyreTread(this.mVehicle.setup.currentSetup.tyreSet, 0f, true)) { flag = true; } } else if (!this.mVehicle.sessionAIOrderController.IsDriverOnIdealTyreTread()) { flag = true; } } if ((this.HasCompletedOrderedLapCount() || flag || this.mVehicle.setup.tyreSet.GetCondition() < 0.2f) && !this.mVehicle.strategy.IsGoingToPit() && (!this.mVehicle.isPlayerDriver || Game.instance.sessionManager.isUsingAIForPitting)) { this.ReturnToGarage(); } } } }
비교하기