Add support for saving and getting the owner of a script in script.
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:
@@ -12,7 +12,7 @@ private:
|
||||
ArbUt::StringView _name;
|
||||
|
||||
public:
|
||||
explicit TestScript(const ArbUt::StringView& name) : _name(name){};
|
||||
explicit TestScript(const ArbUt::StringView& name) : BattleScript(nullptr), _name(name){};
|
||||
|
||||
const ArbUt::StringView& GetName() const noexcept override { return _name; }
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ private:
|
||||
ArbUt::StringView _name;
|
||||
|
||||
public:
|
||||
explicit TestScript(const ArbUt::StringView& name) : _name(name){};
|
||||
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); }
|
||||
|
||||
@@ -11,7 +11,7 @@ private:
|
||||
ArbUt::StringView _name;
|
||||
|
||||
public:
|
||||
explicit TestScript(const ArbUt::StringView& name) : _name(name){};
|
||||
explicit TestScript(const ArbUt::StringView& name) : BattleScript(nullptr), _name(name){};
|
||||
const ArbUt::StringView& GetName() const noexcept override { return _name; }
|
||||
|
||||
void TestMethod(int& runCount) { runCount++; }
|
||||
|
||||
Reference in New Issue
Block a user