Map out test functions in astypedef, adds settings
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-10-24 12:40:32 +02:00
parent af6d582f88
commit c8a43107d9
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
3 changed files with 32 additions and 1 deletions

15
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
"angelscript-languageserver.defines": [
"TESTS"
],
"angelscript-languageserver.engine-settings": {
"asEP_DISALLOW_EMPTY_LIST_ELEMENTS": true,
"asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE": false,
"asEP_ALLOW_UNSAFE_REFERENCES": true,
"asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT": true,
"asEP_AUTO_GARBAGE_COLLECT": false,
"asEP_REQUIRE_ENUM_SCOPE": true,
"asEP_PROPERTY_ACCESSOR_MODE": 2,
"asEP_COMPILER_WARNINGS": 2
}
}

View File

@ -0,0 +1,17 @@
func bool Require(bool expression);
func bool RequireEquals(int expected, int actual);
func bool RequireEquals(const string &in expected, const string &in actual);
func Party@ CreateSimpleParty(const array<constString>&in species, uint8 level);
func Battle@ CreateSimpleBattle(uint seed, const constString&in species1, const constString&in species2, uint8 level);
func Battle@ CreateSimpleBattle(uint seed, Party@ p1, Party@ p2);
func ref@ CreateMoveScript(const constString&in name);
func ExecutingMove@ CreateExecutingMove(const constString&in moveName, Pokemon@ user, Pokemon@ target);
func MoveTurnChoice@ CreateMoveTurnChoice(const constString&in moveName, Pokemon@ user, uint8 targetSide, uint8 target);
type Pokemon {
bool UseMove(const constString&in move, uint8 side, uint8 index);
bool PassTurn();
bool LearnMove(const constString&in move);
}

View File

@ -62,5 +62,4 @@ void Assurance_DamageWithEventOnDifferentTurn(){
script.OverrideDamage(executingMove, mon2, 0x0, damage);
RequireEquals(100, damage);
}
#endif