add event conditions in quest visibility

This commit is contained in:
Martin Michelsen
2024-01-30 20:57:09 -08:00
parent 7aa05f39e2
commit 340fbb8ca5
9 changed files with 47 additions and 9 deletions
+10
View File
@@ -20,6 +20,7 @@ public:
const PlayerRecordsBB_Challenge* challenge_records;
std::shared_ptr<const TeamIndex::Team> team;
size_t num_players;
uint8_t event;
};
QuestAvailabilityExpression(const std::string& text);
@@ -150,6 +151,15 @@ protected:
virtual std::string str() const;
};
class EventLookupNode : public Node {
public:
EventLookupNode();
virtual ~EventLookupNode() = default;
virtual bool operator==(const Node& other) const;
virtual int64_t evaluate(const Env& env) const;
virtual std::string str() const;
};
class ConstantNode : public Node {
public:
ConstantNode(bool value);