// September 2015 // Levee Patroller / Dijk Patrouille // This source file is (c) by Deltares. This source file is open source but only available to select users. Do not redistribute without written permission of Stichting Deltares, Delft, The Netherlands. // This header has been automatically generated. class ACTION_IfRelevant extends ScriptedAction; var(Action) name FailureTag; var LeveeTile L; var GeoFeedback G; /// Almar - Modified to support LeveeTile 27-9-2007 function ProceedToNextAction(ScriptedController C) { /// Log("[ScriptTrigger] If relevant: " @ FailureTag); if ( (L == None) && (FailureTag != 'None') ) { ForEach C.AllActors(class'LeveeTile',L,FailureTag) { break; } } C.ActionNum += 1; if (L == None) { ///Nothing found, old failure probably: ProceedToSectionEnd(C); } else { if ( !L.bRelevant ) { ProceedToSectionEnd(C); } else { L.CurrentState=STA_Relevant; ForEach C.AllActors(class'GeoFeedback',G) break; g.logFailureState(L); } } } function bool StartsSection() { return true; } function string GetActionString() { return ActionString@L@FailureTag; } defaultproperties { ActionString="If Relevant" }