Adds support for script owner to clone command.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@ public:
|
||||
|
||||
void TestMethod(int& runCount) { runCount++; }
|
||||
|
||||
BattleScript* Clone() override { return new TestScript(_name); }
|
||||
BattleScript* Clone(const ArbUt::OptionalBorrowedPtr<void>&) override { return new TestScript(_name); }
|
||||
};
|
||||
|
||||
TEST_CASE("Script Aggregator properly iterates containing script.") {
|
||||
|
||||
@@ -15,7 +15,7 @@ public:
|
||||
explicit TestScript(const ArbUt::StringView& name) : BattleScript(nullptr), _name(name){};
|
||||
const ArbUt::StringView& GetName() const noexcept override { return _name; }
|
||||
|
||||
BattleScript* Clone() override { return new TestScript(_name); }
|
||||
BattleScript* Clone(const ArbUt::OptionalBorrowedPtr<void>&) override { return new TestScript(_name); }
|
||||
};
|
||||
|
||||
TEST_CASE("Empty script set count == 0") {
|
||||
|
||||
@@ -15,7 +15,7 @@ public:
|
||||
const ArbUt::StringView& GetName() const noexcept override { return _name; }
|
||||
|
||||
void TestMethod(int& runCount) { runCount++; }
|
||||
BattleScript* Clone() override { return new TestScript(_name); }
|
||||
BattleScript* Clone(const ArbUt::OptionalBorrowedPtr<void>&) override { return new TestScript(_name); }
|
||||
};
|
||||
|
||||
class ScriptSourceWithScriptPtr : public ScriptSource {
|
||||
|
||||
Reference in New Issue
Block a user