blob: f029bfb365bb36a8c0441a08e19f65c841c495ab (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 | #include <pch.hpp>
#include <test.h>
#include <scriptLoader.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);
 |