Beispiel #1
0
            internal CompiledState(EzSembleContext context, State s)
            {
                try
                {
                    EntryCommands = EzSembler.AssembleCommandScript(context, s.EntryScript);
                }
                catch (Exception ex)
                {
                    context.Debug_StateSaveError(ex, "Failed to compile state entry script.");
                }

                try
                {
                    ExitCommands = EzSembler.AssembleCommandScript(context, s.ExitScript);
                }
                catch (Exception ex)
                {
                    context.Debug_StateSaveError(ex, "Failed to compile state exit script.");
                }

                try
                {
                    WhileCommands = EzSembler.AssembleCommandScript(context, s.WhileScript);
                }
                catch (Exception ex)
                {
                    context.Debug_StateSaveError(ex, "Failed to compile state while script.");
                }
            }
Beispiel #2
0
 internal CompiledCondition(EzSembleContext context, Condition c)
 {
     PassCommands = EzSembler.AssembleCommandScript(context, c.PassScript);
     Evaluator    = EzSembler.AssembleExpression(context, c.Evaluator);
 }
Beispiel #3
0
 internal CompiledState(EzSembleContext context, State s)
 {
     EntryCommands = EzSembler.AssembleCommandScript(context, s.EntryScript);
     ExitCommands  = EzSembler.AssembleCommandScript(context, s.ExitScript);
     WhileCommands = EzSembler.AssembleCommandScript(context, s.WhileScript);
 }