MUTATIONOFJB: Continue implementation of if/else script commands.
This commit is contained in:
parent
f7d5a825a0
commit
3672ea5572
14 changed files with 330 additions and 16 deletions
|
@ -20,10 +20,20 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "seqcommand.h"
|
||||
#include "mutationofjb/commands/seqcommand.h"
|
||||
#include "common/translation.h"
|
||||
|
||||
namespace MutationOfJB {
|
||||
|
||||
void SeqCommandParser::transition(ScriptParseContext &, Command * oldCommand, Command * newCommand) {
|
||||
if (!oldCommand || !newCommand) {
|
||||
warning(_("Unexpected empty command in transition"));
|
||||
return;
|
||||
}
|
||||
|
||||
static_cast<SeqCommand *>(oldCommand)->setNextCommand(newCommand);
|
||||
}
|
||||
|
||||
void SeqCommand::setNextCommand(Command *nextCommand)
|
||||
{
|
||||
_nextCommand = nextCommand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue