Ejemplo n.º 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.");
                }
            }
Ejemplo n.º 2
0
 internal CompiledCondition(EzSembleContext context, Condition c)
 {
     PassCommands = EzSembler.AssembleCommandScript(context, c.PassScript);
     Evaluator    = EzSembler.AssembleExpression(context, c.Evaluator);
 }
Ejemplo n.º 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);
 }