aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/switchcasenode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2021-02-13 12:37:44 +0100
committerRenaud G <renaud@rolisteam.org>2021-02-13 12:37:44 +0100
commitde55ac4c76ef3f6dbdc6fd2d03e3484bcfccdb0e (patch)
tree137ae58be5ed6e351221288924ad530adeb3d8f7 /node/switchcasenode.h
parent8a54eb609bd278e87b8a3d6a9be42301778df18d (diff)
downloadOneRoll-de55ac4c76ef3f6dbdc6fd2d03e3484bcfccdb0e.tar.gz
OneRoll-de55ac4c76ef3f6dbdc6fd2d03e3484bcfccdb0e.zip
Add replace value node.
Move definition of CaseInfo struct. Fix small things from switchcasenode.
Diffstat (limited to 'node/switchcasenode.h')
-rw-r--r--node/switchcasenode.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/node/switchcasenode.h b/node/switchcasenode.h
index 719da90..a0f658d 100644
--- a/node/switchcasenode.h
+++ b/node/switchcasenode.h
@@ -21,15 +21,11 @@
#define SWITCHCASENODE_H
#include <memory>
+#include <vector>
#include "executionnode.h"
#include "validatorlist.h"
-struct CaseInfo
-{
- ValidatorList* validatorList;
- ExecutionNode* node;
-};
class StringResult;
class SwitchCaseNode : public ExecutionNode
{
@@ -46,7 +42,7 @@ public:
void insertCase(ExecutionNode* node, ValidatorList* validator);
private:
- std::vector<std::unique_ptr<CaseInfo>> m_branchList;
+ std::vector<std::unique_ptr<Dice::CaseInfo>> m_branchList;
StringResult* m_stringResult;
bool m_stopAtFirst= false;
};