Fixes Angelscript build.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
99e805dc8e
commit
4d06a1cd04
|
@ -62,7 +62,7 @@ TEST_CASE("Validate Move Name in Script") {
|
||||||
auto mainLib = TestLibrary::GetLibrary();
|
auto mainLib = TestLibrary::GetLibrary();
|
||||||
auto data = GetScript(mainLib, "testName"_cnc);
|
auto data = GetScript(mainLib, "testName"_cnc);
|
||||||
|
|
||||||
auto move = mainLib->GetMoveLibrary()->Get("testMove"_cnc);
|
auto move = mainLib->GetMoveLibrary()->GetByHash("testMove"_cnc);
|
||||||
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
||||||
auto name = move->GetName();
|
auto name = move->GetName();
|
||||||
data.Context->SetArgAddress(1, &name);
|
data.Context->SetArgAddress(1, &name);
|
||||||
|
@ -75,7 +75,7 @@ TEST_CASE("Validate Move Type in Script") {
|
||||||
auto mainLib = TestLibrary::GetLibrary();
|
auto mainLib = TestLibrary::GetLibrary();
|
||||||
auto data = GetScript(mainLib, "testType"_cnc);
|
auto data = GetScript(mainLib, "testType"_cnc);
|
||||||
|
|
||||||
auto move = mainLib->GetMoveLibrary()->Get("testMove"_cnc);
|
auto move = mainLib->GetMoveLibrary()->GetByHash("testMove"_cnc);
|
||||||
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
||||||
data.Context->SetArgByte(1, move->GetType());
|
data.Context->SetArgByte(1, move->GetType());
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ TEST_CASE("Validate Move Category in Script") {
|
||||||
auto mainLib = TestLibrary::GetLibrary();
|
auto mainLib = TestLibrary::GetLibrary();
|
||||||
auto data = GetScript(mainLib, "testCategory"_cnc);
|
auto data = GetScript(mainLib, "testCategory"_cnc);
|
||||||
|
|
||||||
auto move = mainLib->GetMoveLibrary()->Get("testMove"_cnc);
|
auto move = mainLib->GetMoveLibrary()->GetByHash("testMove"_cnc);
|
||||||
|
|
||||||
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
||||||
data.Context->SetArgDWord(1, (asDWORD)move->GetCategory());
|
data.Context->SetArgDWord(1, (asDWORD)move->GetCategory());
|
||||||
|
@ -102,7 +102,7 @@ TEST_CASE("Validate Move BasePower in Script") {
|
||||||
auto mainLib = TestLibrary::GetLibrary();
|
auto mainLib = TestLibrary::GetLibrary();
|
||||||
auto data = GetScript(mainLib, "testBasePower"_cnc);
|
auto data = GetScript(mainLib, "testBasePower"_cnc);
|
||||||
|
|
||||||
auto move = mainLib->GetMoveLibrary()->Get("testMove"_cnc);
|
auto move = mainLib->GetMoveLibrary()->GetByHash("testMove"_cnc);
|
||||||
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
||||||
data.Context->SetArgByte(1, move->GetBasePower());
|
data.Context->SetArgByte(1, move->GetBasePower());
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ TEST_CASE("Validate Move Accuracy in Script") {
|
||||||
auto mainLib = TestLibrary::GetLibrary();
|
auto mainLib = TestLibrary::GetLibrary();
|
||||||
auto data = GetScript(mainLib, "testAccuracy"_cnc);
|
auto data = GetScript(mainLib, "testAccuracy"_cnc);
|
||||||
|
|
||||||
auto move = mainLib->GetMoveLibrary()->Get("testMove"_cnc);
|
auto move = mainLib->GetMoveLibrary()->GetByHash("testMove"_cnc);
|
||||||
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
||||||
data.Context->SetArgByte(1, move->GetAccuracy());
|
data.Context->SetArgByte(1, move->GetAccuracy());
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ TEST_CASE("Validate Move BaseUsages in Script") {
|
||||||
auto mainLib = TestLibrary::GetLibrary();
|
auto mainLib = TestLibrary::GetLibrary();
|
||||||
auto data = GetScript(mainLib, "testBaseUsages"_cnc);
|
auto data = GetScript(mainLib, "testBaseUsages"_cnc);
|
||||||
|
|
||||||
auto move = mainLib->GetMoveLibrary()->Get("testMove"_cnc);
|
auto move = mainLib->GetMoveLibrary()->GetByHash("testMove"_cnc);
|
||||||
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
||||||
data.Context->SetArgByte(1, move->GetBaseUsages());
|
data.Context->SetArgByte(1, move->GetBaseUsages());
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ TEST_CASE("Validate Move Target in Script") {
|
||||||
auto mainLib = TestLibrary::GetLibrary();
|
auto mainLib = TestLibrary::GetLibrary();
|
||||||
auto data = GetScript(mainLib, "testTarget"_cnc);
|
auto data = GetScript(mainLib, "testTarget"_cnc);
|
||||||
|
|
||||||
auto move = mainLib->GetMoveLibrary()->Get("testMove"_cnc);
|
auto move = mainLib->GetMoveLibrary()->GetByHash("testMove"_cnc);
|
||||||
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
||||||
data.Context->SetArgDWord(1, (uint32_t)move->GetTarget());
|
data.Context->SetArgDWord(1, (uint32_t)move->GetTarget());
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ TEST_CASE("Validate Move Priority in Script") {
|
||||||
auto mainLib = TestLibrary::GetLibrary();
|
auto mainLib = TestLibrary::GetLibrary();
|
||||||
auto data = GetScript(mainLib, "testPriority"_cnc);
|
auto data = GetScript(mainLib, "testPriority"_cnc);
|
||||||
|
|
||||||
auto move = mainLib->GetMoveLibrary()->Get("testMove"_cnc);
|
auto move = mainLib->GetMoveLibrary()->GetByHash("testMove"_cnc);
|
||||||
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
data.Context->SetArgObject(0, (void*)move.GetRaw());
|
||||||
data.Context->SetArgByte(1, move->GetPriority());
|
data.Context->SetArgByte(1, move->GetPriority());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue