Diff
checker
Texto
Texto
Imágenes
Documentos
Excel
Carpetas
Legal
Enterprise
Aplicación de escritorio
Precios
Iniciar sesión
Descargar Diffchecker Desktop
Comparar texto
Encuentra la diferencia entre dos archivos de texto
Herramientas
Historial
Editor live
Ocultar sin cambios
Sin ajuste de línea
Vista
Dividido
Unificado
Nivel de detalle
Inteligente
Palabra
Letra
Resaltado de sintaxis
Elegir sintaxis
Ignorar
Transformar texto
Ir al primer cambio
Editar entrada
Diffchecker Desktop
La forma más segura de usar Diffchecker. ¡Obtén la app de Diffchecker Desktop: tus diffs nunca salen de tu computadora!
Obtener Desktop
Untitled diff
Creado
hace 7 años
El diff nunca expira
Borrar
Exportar
Compartir
Explicar
3 eliminaciones
Líneas
Total
Eliminado
Caracteres
Total
Eliminado
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
57 líneas
Copiar todo
3 adiciones
Líneas
Total
Añadido
Caracteres
Total
Añadido
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
57 líneas
Copiar todo
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);
Copiar
Copiado
Copiar
Copiado
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;
}
}
}
}
Copiar
Copiado
Copiar
Copiado
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;
}
}
}
}
Copiar
Copiado
Copiar
Copiado
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();
}
}
}
}
}
}
}
}
Diferencias guardadas
Texto original
Abrir archivo
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(); } } } }
Texto modificado
Abrir archivo
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(); } } } }
Encontrar la diferencia