Map out test functions in astypedef, adds settings
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
17
Scripts/Interfaces/TestFunctions.astypedef
Normal file
17
Scripts/Interfaces/TestFunctions.astypedef
Normal 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);
|
||||
}
|
||||
@@ -62,5 +62,4 @@ void Assurance_DamageWithEventOnDifferentTurn(){
|
||||
script.OverrideDamage(executingMove, mon2, 0x0, damage);
|
||||
RequireEquals(100, damage);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user