Add angelscript getter for number of hits on an executingmove
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-03-12 13:01:48 +01:00
parent b8f790cb61
commit b6f539b1f7
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ void RegisterExecutingAttack::RegisterExecutingAttackType(asIScriptEngine* engin
GetAttack);
REGISTER_GETTER("ExecutingMove", "MoveData@ get_UseMove() const property", CreatureLib::Battling::ExecutingAttack,
GetUseAttack);
REGISTER_GETTER("ExecutingMove", "uint8 get_NumberOfHits() const property", CreatureLib::Battling::ExecutingAttack,
GetNumberOfHits);
auto r = engine->RegisterObjectMethod("ExecutingMove", "HitData@ GetHitData(Pokemon@ target, uint8 hit) const",
asFUNCTION(GetHitDataWrapper), asCALL_CDECL_OBJFIRST);