Fixes SetStatus and ChangeForme Angelscript functions.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-11-21 13:49:48 +01:00
parent 55cebc4802
commit 95e1e32abe
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 2 deletions

View File

@ -199,12 +199,12 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) {
r = engine->RegisterObjectMethod("Pokemon", "void ClearStatus() const",
asMETHOD(PkmnLib::Battling::Pokemon, ClearStatus), asCALL_THISCALL);
Ensure(r >= 0);
r = engine->RegisterObjectMethod("Pokemon", "void SetStatus(const constString& name)",
r = engine->RegisterObjectMethod("Pokemon", "void SetStatus(const constString &in name)",
asMETHOD(PkmnLib::Battling::Pokemon, SetStatus), asCALL_THISCALL);
Ensure(r >= 0);
r = engine->RegisterObjectMethod(
"Pokemon", "void ChangeForme(const constString& name)",
"Pokemon", "void ChangeForme(const constString &in name)",
asMETHODPR(PkmnLib::Battling::Pokemon, ChangeVariant, (const ArbUt::StringView&), void), asCALL_THISCALL);
Ensure(r >= 0);