aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libparser/include/diceparser/parsingtoolbox.h
diff options
context:
space:
mode:
authorRenaud Guezennec <renaud@rolisteam.org>2024-10-23 15:44:12 +0200
committerRenaud Guezennec <renaud@rolisteam.org>2024-12-29 14:46:30 +0100
commit3bf6f11939844b2daa7c6555c5c3d828095308d5 (patch)
tree0228150692cca68b847d1949c03c7f1c8777b005 /src/libparser/include/diceparser/parsingtoolbox.h
parentcb1dcb5ee28994a2cd691ad696a5ba4c3c3802ea (diff)
downloadOneRoll-3bf6f11939844b2daa7c6555c5c3d828095308d5.tar.gz
OneRoll-3bf6f11939844b2daa7c6555c5c3d828095308d5.zip
changes
Diffstat (limited to 'src/libparser/include/diceparser/parsingtoolbox.h')
-rw-r--r--src/libparser/include/diceparser/parsingtoolbox.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libparser/include/diceparser/parsingtoolbox.h b/src/libparser/include/diceparser/parsingtoolbox.h
index 207b878..8cd9c25 100644
--- a/src/libparser/include/diceparser/parsingtoolbox.h
+++ b/src/libparser/include/diceparser/parsingtoolbox.h
@@ -132,7 +132,8 @@ public:
void clearUp();
// Build execution tree
- DiceRollerNode* getDiceRollerNode(ExecutionNode* previous);
+ template <typename T>
+ T* getNode(ExecutionNode* previous);
DiceRollerNode* addRollDiceNode(qint64 faces, ExecutionNode*);
ExplodeDiceNode* addExplodeDiceNode(qint64 faces, ExecutionNode* previous);
Dice::CONDITION_STATE isValidValidator(ExecutionNode* previous, ValidatorList* val);
@@ -222,7 +223,7 @@ public:
static QString replaceVariableToValue(const QString& source, QStringList values,
QMap<Dice::ERROR_CODE, QString>& errorMap);
static QString replacePlaceHolderToValue(const QString& source, const QList<ExportedDiceResult>& list,
- bool removeUnhighlighted,
+ bool removeUnhighlighted, QList<std::pair<int, QStringList>> inst2Result,
std::function<QString(const QString&, const QString&, bool)> colorize);
static SubtituteInfo readVariableFromString(const QString& source, int& start);
static SubtituteInfo readPlaceHolderFromString(const QString& source, int& start);