Adds SetType to angelscript
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
175f3dfd81
commit
b8f790cb61
@ -135,6 +135,9 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) {
|
|||||||
r = engine->RegisterObjectMethod("Pokemon", "uint8 GetType(uint64 index) const", asFUNCTION(GetTypeWrapper),
|
r = engine->RegisterObjectMethod("Pokemon", "uint8 GetType(uint64 index) const", asFUNCTION(GetTypeWrapper),
|
||||||
asCALL_CDECL_OBJFIRST);
|
asCALL_CDECL_OBJFIRST);
|
||||||
Ensure(r >= 0);
|
Ensure(r >= 0);
|
||||||
|
r = engine->RegisterObjectMethod("Pokemon", "void SetType(uint8 index, uint8 type)",
|
||||||
|
asMETHOD(PkmnLib::Battling::Pokemon, SetType), asCALL_THISCALL);
|
||||||
|
Ensure(r >= 0);
|
||||||
|
|
||||||
r = engine->RegisterObjectMethod("Pokemon", "void set_Height(float value) property",
|
r = engine->RegisterObjectMethod("Pokemon", "void set_Height(float value) property",
|
||||||
asMETHOD(PkmnLib::Battling::Pokemon, SetHeight), asCALL_THISCALL);
|
asMETHOD(PkmnLib::Battling::Pokemon, SetHeight), asCALL_THISCALL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user