mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Add to_json and from_json script functions
This commit is contained in:
@@ -223,7 +223,10 @@ public:
|
||||
inline ScriptConcatCollection(ScriptValueP a, ScriptValueP b) : a(a), b(b) {}
|
||||
ScriptValueP getMember(const String& name) const override;
|
||||
ScriptValueP getIndex(int index) const override;
|
||||
ScriptValueP makeIterator() const override;
|
||||
ScriptValueP makeIterator() const override;
|
||||
ScriptValueP getA() { return a; }
|
||||
ScriptValueP getB() { return b; }
|
||||
|
||||
int itemCount() const override { return a->itemCount() + b->itemCount(); }
|
||||
/// Collections can be compared by comparing pointers
|
||||
CompareWhat compareAs(String&, void const*& compare_ptr) const override {
|
||||
|
||||
Reference in New Issue
Block a user