parent
21092eb347
commit
abaee62582
src/ScriptResolving/AngelScript/TypeRegistry/Battling
|
@ -108,10 +108,10 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) {
|
|||
|
||||
REGISTER_GETTER("Pokemon", "float get_Weight() const property", CreatureLib::Battling::Creature, GetWeight);
|
||||
REGISTER_GETTER("Pokemon", "float get_Height() const property", CreatureLib::Battling::Creature, GetHeight);
|
||||
auto r = engine->RegisterObjectMethod("Pokemon", "void set_Weight(float value) const property",
|
||||
auto r = engine->RegisterObjectMethod("Pokemon", "void set_Weight(float value) property",
|
||||
asMETHOD(PkmnLib::Battling::Pokemon, SetWeight), asCALL_THISCALL);
|
||||
Ensure(r >= 0);
|
||||
r = engine->RegisterObjectMethod("Pokemon", "void set_Height(float value) const property",
|
||||
r = engine->RegisterObjectMethod("Pokemon", "void set_Height(float value) property",
|
||||
asMETHOD(PkmnLib::Battling::Pokemon, SetHeight), asCALL_THISCALL);
|
||||
Ensure(r >= 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue