From 9fd88f61924bc863c6784ed4854d7ae603294102 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 25 Sep 2021 18:27:27 +0200 Subject: [PATCH] Readds missing function. --- .../AngelScript/TypeRegistry/Battling/RegisterParty.cpp | 1 + .../TypeRegistry/Library/RegisterEffectParameter.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterParty.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterParty.cpp index 6847b3b..6972636 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterParty.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterParty.cpp @@ -22,6 +22,7 @@ void RegisterParty::RegisterPartyClass(asIScriptEngine* engine) { REGISTER_EXPLICIT_GETTER("Party", "const narray@ get_Pokemon() const property", CreatureLib::Battling::CreatureParty, GetParty, const ArbUt::OptionalUniquePtrList&); + REGISTER_GETTER("Party", "uint64 get_Length() const property", CreatureLib::Battling::CreatureParty, GetLength); auto r = engine->RegisterObjectMethod("Party", "Pokemon@ GetAtIndex(int index) const", asFUNCTION(GetAtIndexWrapper), asCALL_CDECL_OBJFIRST); diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Library/RegisterEffectParameter.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Library/RegisterEffectParameter.cpp index a206f80..3a99b2d 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Library/RegisterEffectParameter.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Library/RegisterEffectParameter.cpp @@ -38,4 +38,6 @@ void RegisterEffectParameter::Register(asIScriptEngine* engine) { asFUNCTIONPR(AsString, (const CreatureLib::Library::EffectParameter*), const ArbUt::StringView&), asCALL_CDECL_OBJFIRST); Ensure(r >= 0); + + }