mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:43:45 +02:00
Allow and conditionals to be initialized from simple pairs
This commit is contained in:
parent
4c26627622
commit
3eddf8d4a4
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@ class AndConditional : public Conditional {
|
||||||
public:
|
public:
|
||||||
using Pointer = std::shared_ptr<AndConditional>;
|
using Pointer = std::shared_ptr<AndConditional>;
|
||||||
|
|
||||||
AndConditional(Conditional::List children) : _children(children) { }
|
AndConditional(Conditional::List children)
|
||||||
|
: _children(children) {}
|
||||||
|
|
||||||
|
AndConditional(Conditional::Pointer& first, Conditional::Pointer& second)
|
||||||
|
: _children({ first, second }) {}
|
||||||
|
|
||||||
virtual bool satisfied() override;
|
virtual bool satisfied() override;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue