Readds missing function.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2021-09-25 18:27:27 +02:00
parent 8005ad1232
commit 9fd88f6192
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@ void RegisterParty::RegisterPartyClass(asIScriptEngine* engine) {
REGISTER_EXPLICIT_GETTER("Party", "const narray<Pokemon@>@ get_Pokemon() const property", REGISTER_EXPLICIT_GETTER("Party", "const narray<Pokemon@>@ get_Pokemon() const property",
CreatureLib::Battling::CreatureParty, GetParty, CreatureLib::Battling::CreatureParty, GetParty,
const ArbUt::OptionalUniquePtrList<CreatureLib::Battling::Creature>&); const ArbUt::OptionalUniquePtrList<CreatureLib::Battling::Creature>&);
REGISTER_GETTER("Party", "uint64 get_Length() const property", CreatureLib::Battling::CreatureParty, GetLength);
auto r = engine->RegisterObjectMethod("Party", "Pokemon@ GetAtIndex(int index) const", auto r = engine->RegisterObjectMethod("Party", "Pokemon@ GetAtIndex(int index) const",
asFUNCTION(GetAtIndexWrapper), asCALL_CDECL_OBJFIRST); asFUNCTION(GetAtIndexWrapper), asCALL_CDECL_OBJFIRST);

View File

@ -38,4 +38,6 @@ void RegisterEffectParameter::Register(asIScriptEngine* engine) {
asFUNCTIONPR(AsString, (const CreatureLib::Library::EffectParameter*), const ArbUt::StringView&), asFUNCTIONPR(AsString, (const CreatureLib::Library::EffectParameter*), const ArbUt::StringView&),
asCALL_CDECL_OBJFIRST); asCALL_CDECL_OBJFIRST);
Ensure(r >= 0); Ensure(r >= 0);
} }