Adds angelscript wrappers for getting, setting, and clearing status.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6def68cf72
commit
de82bbecf4
|
@ -203,4 +203,13 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) {
|
|||
r = engine->RegisterObjectMethod("Pokemon", "BattleSide@ get_BattleSide() const property",
|
||||
asFUNCTION(GetBattleSideWrapper), asCALL_CDECL_OBJFIRST);
|
||||
Ensure(r >= 0);
|
||||
r = engine->RegisterObjectMethod("Pokemon", "const constString& get_Status() const property",
|
||||
asMETHOD(PkmnLib::Battling::Pokemon, GetStatusName), asCALL_THISCALL);
|
||||
Ensure(r >= 0);
|
||||
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)",
|
||||
asMETHOD(PkmnLib::Battling::Pokemon, SetStatus), asCALL_THISCALL);
|
||||
Ensure(r >= 0);
|
||||
}
|
Loading…
Reference in New Issue