blob: b43cef1be249eee6fdf6a70f989da619a9d3f61d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <pch.hpp>
#include <test.h>
#include <scriptLoader.h>
#include <variables.h>
class GreaterThan : public Test {
public:
GreaterThan(ScriptNodePtr s) :
SourceObject(s),
Test(s),
a(s, "a"),
b(s, "b")
{
}
bool passes(ExecContext * ec) const {
return (a(ec) > b(ec));
}
private:
Variable a, b;
};
DECLARE_LOADER("greaterthan", GreaterThan);
|