#include "helpnode.h" HelpNode::HelpNode() { m_result = new StringResult(); } void HelpNode::run(ExecutionNode* previous) { StringResult* txtResult = dynamic_cast(m_result); if(NULL != previous) { txtResult->setText(toString()); } else { txtResult->setText(previous->getHelp()); } } QString HelpNode::toString()const { return QObject::tr("Rolisteam Dice Parser: Full documentation at: https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md"); } qint64 HelpNode::getPriority() const { return 0; }