Added C Interface for Script.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-25 19:47:37 +01:00
parent 7ce3e6940d
commit b5894ea8f2
6 changed files with 104 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ private:
public:
explicit TestScript(std::string name) : _name(std::move(name)){};
const ConstString& GetName() const override { return _name; }
const ConstString& GetName() const noexcept override { return _name; }
void TestMethod(int& runCount) { runCount++; }
};

View File

@@ -13,7 +13,7 @@ private:
public:
explicit TestScript(std::string name) : _name(std::move(name)){};
const ConstString& GetName() const override { return _name; }
const ConstString& GetName() const noexcept override { return _name; }
};
TEST_CASE("Empty script set count == 0", "[Battling, Scripting]") {

View File

@@ -14,7 +14,7 @@ private:
public:
explicit TestScript(std::string name) : _name(std::move(name)){};
const ConstString& GetName() const override { return _name; }
const ConstString& GetName() const noexcept override { return _name; }
void TestMethod(int& runCount) { runCount++; }
};