public override void ExecuteNow() { IncidentInterceptorUtility.tempGroupList = storage.RebuildList(); IncidentInterceptorUtility.IsIntercepting_GroupSpliter = GeneratorPatchFlag.ReturnTempList; base.ExecuteNow(); IncidentInterceptorUtility.IsIntercepting_GroupSpliter = GeneratorPatchFlag.Generate; }
public override void ExecuteNow() { IncidentInterceptorUtility.tempGroupList = storage.RebuildList(); IncidentInterceptorUtility.IsIntercepting_GroupSpliter = GeneratorPatchFlag.ReturnTempList; IncidentInterceptorUtility.isIntercepting_EdgeDropGroup = false; IncidentInterceptorUtility.IsIntercepting_PawnGeneration = GeneratorPatchFlag.ReturnTempList; IncidentInterceptorUtility.tmpPawnList = this.pawnList; if (this.incidentDef != null && this.parms != null) { this.incidentDef.Worker.TryExecute(this.parms); } else { Log.Error("No IncidentDef or parms in InterceptedIncident!"); } IncidentInterceptorUtility.tmpPawnList = null; IncidentInterceptorUtility.isIntercepting_EdgeDropGroup = true; IncidentInterceptorUtility.IsIntercepting_PawnGeneration = GeneratorPatchFlag.ReturnTempList; IncidentInterceptorUtility.IsIntercepting_GroupSpliter = GeneratorPatchFlag.Generate; }