This commit is contained in:
1 file changed
+5
@@ -203,6 +203,11 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) {
|
||||
asMETHOD(PkmnLib::Battling::Pokemon, SetStatus), asCALL_THISCALL);
|
||||
Ensure(r >= 0);
|
||||
|
||||
r = engine->RegisterObjectMethod(
|
||||
"Pokemon", "void ChangeForme(const constString& name)",
|
||||
asMETHODPR(PkmnLib::Battling::Pokemon, ChangeVariant, (const ArbUt::StringView&), void), asCALL_THISCALL);
|
||||
Ensure(r >= 0);
|
||||
|
||||
r = engine->RegisterObjectMethod("TypeLibrary",
|
||||
"float GetEffectiveness(uint8 attackingType, Pokemon@ defender) const",
|
||||
asFUNCTION(GetEffectivenessHelper), asCALL_CDECL_OBJFIRST);
|
||||
|
||||
Reference in new issue
Block a user