Esempio n. 1
0
 public override void Execute()
 {
     m_parent.Open();
     m_precondition = ParsePrecondition(m_preconditionString);
     if (m_precondition != null)
     {
         m_stateMachine.ChangeState(1);
         LegacyLogic.Instance.EventManager.RegisterEvent(EEventType.PRECONDITION_EVALUATED, new EventHandler(Validate));
         m_precondition.Trigger();
     }
     else
     {
         StartExecution();
     }
 }