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."); } }
internal CompiledCondition(EzSembleContext context, Condition c) { PassCommands = EzSembler.AssembleCommandScript(context, c.PassScript); Evaluator = EzSembler.AssembleExpression(context, c.Evaluator); }
internal CompiledState(EzSembleContext context, State s) { EntryCommands = EzSembler.AssembleCommandScript(context, s.EntryScript); ExitCommands = EzSembler.AssembleCommandScript(context, s.ExitScript); WhileCommands = EzSembler.AssembleCommandScript(context, s.WhileScript); }